/*
Theme Name: ECG Landing
Theme URI: https://example.com/
Author: Site Owner
Description: A responsive, non-scrolling ECG animation landing page with an editable logo and secure contact form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ecg-landing
*/

:root { --ecg-logo-width: 180px; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }

.ecg-home {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}
.ecg-animation-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.ecg-overlay {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 3vw, 36px);
  pointer-events: none;
}
.ecg-site-logo,
.ecg-contact-link { pointer-events: auto; }
.ecg-site-logo img {
  display: block;
  width: min(var(--ecg-logo-width), 55vw);
  height: auto;
  max-height: 18vh;
  object-fit: contain;
  object-position: left top;
}
.ecg-contact-link {
  color: #111;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
}
.ecg-contact-link:hover,
.ecg-contact-link:focus-visible { text-decoration: underline; }

.ecg-contact-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  color: #111;
  padding: clamp(24px, 6vw, 72px) 20px;
}
.ecg-contact-wrap { width: min(100%, 620px); margin: 0 auto; }
.ecg-contact-top { margin-bottom: 42px; }
.ecg-contact-top a { color: #111; text-decoration: none; font-weight: 600; }
.ecg-contact-top a:hover,
.ecg-contact-top a:focus-visible { text-decoration: underline; }
.ecg-contact-page h1 { margin: 0 0 28px; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.ecg-field { margin-bottom: 22px; }
.ecg-field label { display: block; margin-bottom: 8px; font-weight: 600; }
.ecg-field input,
.ecg-field textarea {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
  color: #111;
  font: inherit;
}
.ecg-field textarea { min-height: 180px; resize: vertical; }
.ecg-field input:focus,
.ecg-field textarea:focus { outline: 2px solid #111; outline-offset: 2px; }
.ecg-submit {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: #fff;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ecg-submit:hover { opacity: .84; }
.ecg-notice { margin: 0 0 24px; padding: 14px 16px; border-radius: 6px; }
.ecg-notice-success { background: #eaf8ee; border: 1px solid #75b985; }
.ecg-notice-error { background: #fff0f0; border: 1px solid #d88; }
.ecg-help { color: #555; font-size: 14px; line-height: 1.5; }
.ecg-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 480px) {
  .ecg-overlay { padding: 18px; }
  .ecg-contact-page { padding-top: 30px; }
}
