/* ═══════════════════════════════════════════════
   KADMIA CONSTRUCTIONS — SHARED STYLES
   Single source of truth for all global styles.
   ═══════════════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0a1628; --navy-mid: #0f2040; --navy-light: #1a3055;
  --gold: #c8a96e; --gold-light: #e0c48a;
  --white: #f5f2ed; --gray: #8a9ab0; --gray-light: #c5cdd8;
  --focus: 0 0 0 3px rgba(224,196,138,0.35);
}
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { background: var(--navy); color: var(--white); font-family: 'Barlow', sans-serif; font-weight: 300; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; box-shadow: var(--focus); }

/* ── VIEW TRANSITIONS ── */
nav { view-transition-name: kadmia-nav; }
::view-transition-old(root) { animation: 0.25s ease-out both vt-out; }
::view-transition-new(root) { animation: 0.25s ease-out 0.08s both vt-in; }
::view-transition-old(kadmia-nav),
::view-transition-new(kadmia-nav) { animation: none; mix-blend-mode: normal; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } to { opacity: 1; } }

/* ── TYPOGRAPHY ── */
.section-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.section-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(48px, 6vw, 88px); letter-spacing: 0.03em; line-height: 0.95; color: var(--white); }
.section-title span, .section-title em { font-style: normal; color: var(--gold); }

/* ── PAGE HEADER ── */
.page-header { padding: 160px 60px 64px; background: var(--navy); border-bottom: 1px solid rgba(200,169,110,0.12); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: 0; left: 60px; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(200,169,110,0.35) 40%, rgba(200,169,110,0.35) 70%, transparent); }
.page-header-inner { max-width: 860px; }
.page-header-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.page-header-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.page-header h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(60px, 8vw, 120px); line-height: 0.92; letter-spacing: 0.02em; color: var(--white); margin-bottom: 28px; }
.page-header h1 span, .page-header h1 em { font-style: normal; color: var(--gold); }
.page-header-sub { font-size: 18px; font-weight: 300; color: var(--gray-light); max-width: 520px; line-height: 1.65; }
.page-header-actions { display: flex; align-items: center; gap: 32px; }

/* ── BUTTONS ── */
.btn-primary { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 16px 36px; text-decoration: none; transition: background 0.2s, transform 0.2s; display: inline-block; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--gold); }
.btn-ghost::after { content: '→'; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 28px 60px; transition: background 0.4s, padding 0.4s; width: 100%; box-sizing: border-box; }
nav.scrolled { background: rgba(10,22,40,0.97); padding: 18px 60px; border-bottom: 1px solid rgba(200,169,110,0.15); }
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 0.12em; color: var(--white); text-decoration: none; display: flex; align-items: center; }
.nav-logo span { color: var(--gold); }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-light); text-decoration: none; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 100%; height: 1px; background: var(--gold); transition: right 0.3s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cta { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 10px 24px; text-decoration: none; transition: background 0.2s; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--gold-light); }
.nav-toggle { display: none; border: 1px solid rgba(200,169,110,0.35); background: transparent; color: var(--white); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.25s ease; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 88px; left: 0; right: 0; z-index: 999; background: rgba(10,22,40,0.98); border-top: 1px solid rgba(200,169,110,0.15); padding: 20px 32px 28px; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.mobile-menu a { color: var(--white); text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ── FOOTER ── */
footer { background: #060e1c; padding: 60px 60px 40px; border-top: 1px solid rgba(200,169,110,0.15); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; gap: 60px; }
.footer-brand { max-width: 300px; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 0.12em; color: var(--white); text-decoration: none; display: block; margin-bottom: 16px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 14px; color: var(--gray); line-height: 1.6; }
.footer-links-group { display: flex; gap: 80px; }
.footer-col-title { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 14px; color: var(--gray); text-decoration: none; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(200,169,110,0.1); gap: 20px; }
.footer-legal, .footer-reg { font-size: 12px; color: var(--gray); }
.footer-reg { text-align: right; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  nav { padding: 24px 32px; } nav.scrolled { padding: 16px 32px; }
  .page-header { padding: 130px 32px 56px; }
  .page-header::before { left: 32px; }
  .nav-links, .nav-actions .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 720px) {
  nav, nav.scrolled { padding-left: 20px; padding-right: 20px; }
  .page-header { padding: 110px 20px 48px; }
  .page-header::before { left: 20px; }
  .page-header h1 { font-size: clamp(44px, 14vw, 72px); }
  .page-header-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-title { font-size: clamp(36px, 10vw, 56px); }
  .footer-links-group, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-reg { text-align: left; }
  footer { padding: 48px 20px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
