/* ═══════════════════════════════════════════════════════════
   FORTRESS ROOF CO. — FORM, MODAL & COMPONENT STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── SECTION UTILITIES ── */
.section { padding: var(--sp-16) 0; }
.section:first-of-type { padding-top: var(--sp-20); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12) !important; }
.reveal, .reveal-left, .reveal-right { opacity: 0; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { animation: reveal-fade .8s ease-out forwards; }
.reveal-left.visible { animation: reveal-left .8s ease-out forwards; }
.reveal-right.visible { animation: reveal-right .8s ease-out forwards; }
.d1 { --delay: 0ms; animation-delay: var(--delay); }
.d2 { --delay: 100ms; animation-delay: var(--delay); }
.d3 { --delay: 200ms; animation-delay: var(--delay); }
.d4 { --delay: 300ms; animation-delay: var(--delay); }
.d5 { --delay: 400ms; animation-delay: var(--delay); }
.d6 { --delay: 500ms; animation-delay: var(--delay); }
@keyframes reveal-fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* ── TYPOGRAPHY ── */
.deco-display { font-family: var(--font-display); font-weight: 900; letter-spacing: .05em; }
.d-xl { font-size: clamp(2.4rem, 5vw, 4rem); }
.d-lg { font-size: clamp(2rem, 4vw, 3rem); }
.d-md { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.body-xl { font-size: 1.125rem; font-weight: 300; line-height: 1.8; }
.body-md { font-size: 1rem; font-weight: 300; line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ── DECO DIVIDER ── */
.deco-divider-center { display: flex; align-items: center; gap: var(--sp-3); justify-content: center; margin-bottom: var(--sp-5); }
.deco-divider-bar { height: 1.5px; flex: 0 0 48px; background: linear-gradient(90deg, var(--gold-500), transparent); }
.deco-divider-gem { width: 6px; height: 6px; background: var(--gold-500); transform: rotate(45deg); flex-shrink: 0; box-shadow: var(--gold-glow-sm); }

/* ── BADGES ── */
.badge { display: inline-block; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full); font-family: var(--font-condensed); font-size: .5rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.badge-gold { background: rgba(212,168,50,.15); color: var(--gold-300); border: 1px solid var(--bdr-gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6); border: none;
  border-radius: var(--r-lg); cursor: pointer;
  font-family: inherit; font-size: .875rem; font-weight: 600;
  letter-spacing: .08em; transition: all var(--dur-base) var(--ease-deco);
  text-decoration: none; white-space: nowrap;
  user-select: none;
}
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: .75rem; }
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: .9375rem; }
.btn-xl { padding: var(--sp-5) var(--sp-10); font-size: 1rem; }
.btn-gold {
  background: var(--gold-shimmer); background-size: 200%; color: var(--bg-void);
  border: 1px solid transparent; box-shadow: var(--gold-glow-sm);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212,168,50,0.3), var(--gold-glow); }
.btn-gold:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--bdr-gold);
}
.btn-outline:hover { color: var(--text-primary); border-color: var(--bdr-bright); background: rgba(212,168,50,.08); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover { color: var(--gold-300); }
.btn-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── FORMS ── */
.form-group { margin-bottom: var(--sp-5); }
.form-label { display: block; font-family: var(--font-heading); font-size: .875rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--sp-2); }
.req { color: var(--crimson-lt); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body); font-size: .9375rem; color: var(--text-primary);
  background: var(--bg-card); border: 1px solid var(--bdr-faint);
  border-radius: var(--r-lg); outline: none;
  transition: border-color var(--dur-fast) var(--ease-deco);
  line-height: 1.6;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--bdr-gold); box-shadow: 0 0 0 2px rgba(212,168,50,.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-check { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: .875rem; color: var(--text-secondary); cursor: pointer; }
.form-check-box { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--gold-500); cursor: pointer; flex-shrink: 0; }
.form-check-text { line-height: 1.6; }
.form-check-text a { color: var(--gold-400); text-decoration: none; }
.form-check-text a:hover { text-decoration: underline; }

/* ── GRID UTILITIES ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.w-full { width: 100% !important; }

/* ── MODAL ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; visibility: hidden;
  transition: opacity var(--dur-slow) ease, visibility var(--dur-slow) ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg-mid); border: 1px solid var(--bdr-gold);
  border-radius: var(--r-3xl); padding: var(--sp-12);
  width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  transform: scale(.9);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.modal-backdrop.open .modal-box { transform: scale(1); }
.modal-header { position: relative; margin-bottom: var(--sp-8); }
.modal-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900; color: var(--text-primary); margin-bottom: var(--sp-2);
}
.modal-subtitle { font-size: .9375rem; color: var(--text-secondary); font-weight: 300; }
.modal-close {
  position: absolute; top: -12px; right: -12px;
  width: 44px; height: 44px; border: none; background: transparent;
  color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
  border-radius: 50%; transition: all var(--dur-base);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(212,168,50,.1); color: var(--text-primary); }
.modal-body { margin-bottom: var(--sp-6); }
.modal-form { display: flex; flex-direction: column; gap: var(--sp-4); }

/* ── NAVIGATION ── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-base); border-bottom: 1px solid transparent;
  transition: all var(--dur-base) ease;
}
.topnav.scrolled { background: var(--bg-base); border-bottom-color: var(--bdr-faint); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.topnav .container { display: flex; height: var(--nav-h); align-items: center; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-8); width: 100%; flex-wrap: wrap;
}
.nav-logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex-shrink: 0; }
.nav-logo-emblem {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--gold-shimmer); background-size: 200%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; color: var(--bg-void);
  font-size: .9rem; box-shadow: var(--gold-glow-sm);
}
.nav-logo-name { font-family: var(--font-display); font-size: .75rem; font-weight: 700; color: var(--text-primary); letter-spacing: .1em; }
.nav-logo-tagline { font-family: var(--font-condensed); font-size: .4rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); }
.nav-links { display: flex; align-items: center; gap: var(--sp-6); list-style: none; margin: 0; flex: 1; }
.nav-link {
  font-family: var(--font-body); font-size: .875rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: color var(--dur-fast);
}
.nav-link:hover, .nav-link.active { color: var(--gold-300); }
.nav-dd-btn {
  background: none; border: none; color: var(--text-secondary);
  font-family: inherit; font-size: .875rem; font-weight: 500;
  display: flex; align-items: center; gap: var(--sp-1);
  cursor: pointer; transition: color var(--dur-fast);
  padding: 0;
}
.nav-dd-btn:hover { color: var(--gold-300); }
.nav-dd-chevron { transition: transform var(--dur-base); }
.nav-dd-btn[aria-expanded="true"] .nav-dd-chevron { transform: rotate(180deg); }
.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 220px;
  background: var(--bg-surface); border: 1px solid var(--bdr-gold);
  border-radius: var(--r-lg); padding: var(--sp-3); margin-top: var(--sp-2);
  display: none; flex-direction: column; gap: var(--sp-2);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  z-index: 1000;
}
.nav-dd-panel.open { display: flex; opacity: 1; pointer-events: all; }
.nav-dd:hover .nav-dd-panel { display: flex; }
.nav-dd:hover .nav-dd-chevron { transform: rotate(180deg); }
.dd-item {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); color: var(--text-secondary); text-decoration: none;
  font-size: .875rem; transition: all var(--dur-fast);
}
.dd-item:hover { background: rgba(212,168,50,.1); color: var(--text-primary); }
.dd-thumb {
  width: 72px; height: 56px; overflow: hidden; border-radius: var(--r-md);
  flex-shrink: 0; background: #111;
}
.dd-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.dd-copy {
  display: flex; flex-direction: column; min-width: 0;
}
.dd-title {
  font-weight: 700; color: var(--text-primary); display: block;
}
.dd-subtitle {
  font-size: .775rem; color: var(--text-secondary); line-height: 1.35;
  margin-top: calc(var(--sp-1) / 2);
}
.dd-icon { font-size: 1rem; flex-shrink: 0; }
.nav-end { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-phone {
  font-family: var(--font-condensed); font-size: .65rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400);
  text-decoration: none; transition: color var(--dur-fast);
}
.nav-phone:hover { color: var(--gold-300); }
.hamburger { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg-base); border-right: 1px solid var(--bdr-gold);
  display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6);
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  transform: translateX(-100%); transition: transform var(--dur-slow) var(--ease-deco);
  z-index: 99;
}
.mobile-menu.open { transform: translateX(0); }
.mob-link {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg); color: var(--text-secondary); text-decoration: none;
  font-size: .9375rem; transition: all var(--dur-fast);
  border: 1px solid transparent;
}
.mob-link:hover, .mob-link.active { background: rgba(212,168,50,.1); color: var(--text-primary); border-color: var(--bdr-gold); }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-void); border-top: 1px solid var(--bdr-gold);
  padding: var(--sp-16) 0 var(--sp-8); margin-top: var(--sp-20);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-10); margin-bottom: var(--sp-10); }
.footer-desc { font-size: .875rem; color: var(--text-secondary); line-height: 1.7; font-weight: 300; margin-bottom: var(--sp-5); }
.footer-col-title { font-family: var(--font-heading); font-size: .9375rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-4); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.footer-link { color: var(--text-secondary); text-decoration: none; font-size: .875rem; transition: color var(--dur-fast); }
.footer-link:hover { color: var(--gold-300); }
.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(212,168,50,.1);
  border: 1px solid var(--bdr-gold); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  text-decoration: none; transition: all var(--dur-fast);
}
.footer-social a:hover { background: rgba(212,168,50,.18); color: var(--gold-300); box-shadow: var(--gold-glow-sm); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); padding-top: var(--sp-8); border-top: 1px solid var(--bdr-faint); flex-wrap: wrap; }
.footer-copy { font-size: .75rem; color: var(--text-muted); font-weight: 300; }
.footer-legal { display: flex; gap: var(--sp-6); }
.footer-legal a { font-size: .75rem; color: var(--text-muted); text-decoration: none; transition: color var(--dur-fast); }
.footer-legal a:hover { color: var(--gold-300); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-deep); border-top: 1px solid var(--bdr-gold);
  padding: var(--sp-5) var(--sp-6); display: flex; align-items: center; gap: var(--sp-5);
  justify-content: space-between; z-index: 999;
  transform: translateY(100%); transition: transform var(--dur-slow) ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: .8125rem; color: var(--text-secondary); font-weight: 300; line-height: 1.6; flex: 1; }
.cookie-text a { color: var(--gold-400); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-btns { display: flex; gap: var(--sp-3); flex-shrink: 0; }

/* ── TOAST NOTIFICATIONS ── */
.toast {
  position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%);
  background: var(--bg-surface); border: 1px solid var(--bdr-gold);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-6);
  font-size: .875rem; color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; z-index: 10000;
  transition: opacity var(--dur-base) ease, visibility var(--dur-base) ease;
}
.toast.show { opacity: 1; visibility: visible; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { gap: var(--sp-4); }
  .nav-phone { display: none; }
  .btn-xl { padding: var(--sp-4) var(--sp-6); }
}
@media (max-width: 768px) {
  .hamburger {
    display: flex; width: 32px; height: 32px;
    border: none; background: none; cursor: pointer;
    flex-direction: column; justify-content: center;
    align-items: center; gap: 4px;
  }
  .hamburger span {
    width: 22px; height: 2px; background: var(--text-primary);
    transition: all var(--dur-base) var(--ease-deco);
    border-radius: var(--r-sm);
  }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }
  .nav-links { display: none; }
  .nav-end { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-wrap: wrap; }
  .grid-2 { grid-template-columns: 1fr; }
  .modal-box { width: 95%; max-height: 95vh; padding: var(--sp-8); }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .cookie-btns { width: 100%; }
  .cookie-btns .btn { flex: 1; justify-content: center; }
  .cta-banner-actions { flex-direction: column; }
  .cta-banner-actions .btn { width: 100%; }
}
