/* ============================================================
   HUNG FRAMING CO.
   ============================================================ */

@font-face {
  font-family: 'Birdie';
  src: url('../fonts/TAYBirdieRegular.woff2') format('woff2'),
       url('../fonts/TAYBirdieRegular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:          #f0ebe0;
  --ink:         #1c1c1a;
  --ink-mid:     #555550;
  --ink-light:   #999990;
  --green:       #2d4a3e;
  --green-hover: #1e3329;
  --card-bg:     #faf8f3;
  --border:      #ddd8cc;
  --input-bg:    #ffffff;

  --f-brand:  'Birdie', sans-serif;
  --f-body:   -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --max-w:    1160px;
  --nav-h:    84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}
.nav-link {
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--ink-mid); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 40px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-location {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
  margin-bottom: 16px;
  font-family: var(--f-body);
}

.hero-logo {
  margin-bottom: 16px;
  margin-top: -8px;
}
.hero-logo img {
  width: min(380px, 68vw);
  height: auto;
  margin: 0 auto;
}

.hero-heading {
  font-family: var(--f-brand);
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 780px;
  letter-spacing: -0.01em;
}

.hero-body {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  font-family: var(--f-body);
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-email {
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-mid);
}
.btn-email:hover { color: var(--ink-mid); }

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 40px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px 32px;
}
.card-icon {
  margin-bottom: 22px;
}
.card h3 {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-mid);
  margin-top: auto;
}
.footer-divider { display: none; }
.footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
}
.footer a:hover { text-decoration-color: var(--ink); }

/* ============================================================
   CONTACT / FORM PAGE
   ============================================================ */
.form-page {
  flex: 1;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
  padding: 60px 40px 80px;
}

.form-eyebrow {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-mid);
  margin-bottom: 14px;
  font-family: var(--f-body);
  letter-spacing: 0.02em;
}

.form-heading {
  font-family: var(--f-brand);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.form-subhead {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 44px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin-bottom: 32px;
  max-width: 900px;
}
.field-full { grid-column: 1 / -1; }

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--f-body);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--f-body);
}
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea { font-size: 16px; }
}
input::placeholder, textarea::placeholder { color: var(--ink-light); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,74,62,0.08);
}
textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.upload-note {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.7;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
}

.form-actions { margin-bottom: 18px; }

.form-footnote {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 520px;
}

.form-error {
  font-size: 0.85rem;
  color: #c0392b;
  margin-top: 12px;
  line-height: 1.6;
}
.form-error a { color: #c0392b; text-decoration: underline; }

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thankyou-page {
  flex: 1;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
  padding: 80px 40px 80px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  :root { --nav-h: 72px; }
  .nav { padding: 0 20px; }
  .nav-logo img { height: 52px; }

  .hero { padding: 28px 20px 36px; }
  .hero-logo img { width: min(280px, 75vw); }
  .hero-heading { font-size: 1.4rem; }
  .hero-body { font-size: 0.88rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 14px; }
  .btn-primary, .btn-email { text-align: center; width: 100%; }

  .cards { grid-template-columns: 1fr; padding: 0 20px 44px; gap: 12px; }
  .card { padding: 22px 20px; }

  .footer { padding: 14px 20px; }

  .form-page { padding: 40px 20px 60px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-heading { font-size: 2rem; }
  .form-subhead { margin-bottom: 28px; }

  .thankyou-page { padding: 48px 20px; }
}

@media (max-width: 480px) {
  .hero-heading br { display: none; }
}
