/* ===================================
   CROWN REMODELING — Global Styles
   "Bold Regalia" — Charcoal + Gold
   Shared across all pages
   =================================== */

/* ===================================
   CSS VARIABLES
   =================================== */

:root {
  /* Crown Palette — from the logo */
  --dark: #141414;
  --charcoal: #1E1E1E;
  --graphite: #2A2A2A;
  --iron: #3A3A3A;

  /* Gold — the crown's color */
  --gold: #C9A84C;
  --gold-dark: #A88B30;
  --gold-light: #D4BC6A;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-subtle: rgba(201, 168, 76, 0.06);

  /* Light tones */
  --white: #ffffff;
  --cream: #FAFAF7;
  --pearl: #F2F1EC;
  --smoke: #E5E4DF;
  --text: #2A2A2A;
  --text-light: #6B6B6B;
  --text-muted: #999999;

  /* Effects */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.10);
  --shadow-gold: 0 8px 30px rgba(201, 168, 76, 0.20);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   RESET
   =================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  min-width: 0;
}

main { overflow-x: clip; }

/* Regal headings — Cormorant Garamond */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }
a { color: var(--gold-dark); text-decoration: none; transition: all 0.3s var(--ease); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ===================================
   CROWN SVG MOTIFS
   =================================== */

/* Inline crown divider between sections */
.crown-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.crown-divider svg {
  width: 48px;
  height: 32px;
  color: var(--gold);
  opacity: 0.5;
}

.crown-divider--dark svg { color: var(--gold-light); opacity: 0.3; }

/* Crown-point top border on cards */
.crown-border-top { position: relative; }

.crown-border-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
}

/* Triple-dot crown finials (decorative) */
.crown-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.crown-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.crown-dots span:nth-child(2) {
  width: 8px; height: 8px;
  position: relative;
  top: -3px;
}

/* ===================================
   SECTION LABELS
   =================================== */

.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-tag--light { color: var(--gold-light); }

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ===================================
   HEADER — Dark, regal, premium
   =================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  transition: all 0.4s var(--ease);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.99);
  border-bottom-color: rgba(201, 168, 76, 0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.4s var(--ease);
}

.header.scrolled .header-inner { height: 68px; }

.logo img { height: 44px; width: auto; transition: height 0.4s var(--ease); }
.header.scrolled .logo img { height: 38px; }

/* ===================================
   NAV LINKS
   =================================== */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold); }

/* ===================================
   DROPDOWN
   =================================== */

.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
}

.nav-dropdown-trigger svg {
  width: 10px; height: 10px;
  transition: transform 0.3s var(--ease);
  stroke: currentColor;
}

.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--white); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #1a1a1a;
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 220px;
  opacity: 0; visibility: hidden;
  transition: all 0.25s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.84rem;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
}

.nav-dropdown-menu a:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}

/* ===================================
   HEADER CTA AREA
   =================================== */

.header-cta { display: flex; align-items: center; gap: 12px; }

/* Phone — clean, no wrap */
.header-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
}

.header-phone:hover { color: var(--gold-light); }
.header-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Vertical divider */
.header-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* Header CTA button override */
.header-btn {
  white-space: nowrap;
  padding: 12px 28px;
  font-size: 0.82rem;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  border: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  gap: 8px;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.25);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  width: 200%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transition: left 0.5s var(--ease);
  pointer-events: none;
}

.btn-gold:hover::before { left: 100%; }

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--graphite);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.btn-lg { padding: 18px 48px; font-size: 0.92rem; }

/* ===================================
   HAMBURGER TOGGLE
   =================================== */

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}

.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================================
   MOBILE NAV — Premium slide-in panel
   =================================== */

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 340px;
  max-width: 85vw;
  background: var(--dark);
  z-index: 999;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: none;
  border-left: 1px solid rgba(201, 168, 76, 0.1);
}

.mobile-nav.active { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,0.5); }

/* Overlay behind the panel */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(4px);
}

.mobile-overlay.active { opacity: 1; pointer-events: auto; }

/* Phone bar at top of mobile nav */
.mobile-nav-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  background: rgba(201, 168, 76, 0.08);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.mobile-nav-phone svg { width: 18px; height: 18px; flex-shrink: 0; }
.mobile-nav-phone:hover { color: var(--gold-light); }

/* Navigation links */
.mobile-nav-links {
  padding: 12px 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 28px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  border: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}

.mobile-nav-links a svg {
  width: 18px; height: 18px;
  color: rgba(201, 168, 76, 0.4);
  flex-shrink: 0;
}

.mobile-nav-links a:hover svg { color: var(--gold); }

/* Section labels in mobile nav */
.mobile-nav-section {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(201, 168, 76, 0.4);
  padding: 20px 28px 8px;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.04);
  margin: 4px 28px;
}

/* CTA area at bottom */
.mobile-nav-cta {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  margin-top: 8px;
}

.mobile-nav-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 0.88rem;
}

.mobile-nav-cta .btn + .btn { margin-top: 10px; }

/* ===================================
   HERO OFFER BADGE
   =================================== */

.hero-offer {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px; padding: 10px 20px; margin-bottom: 32px;
}

.hero-offer-badge {
  background: var(--gold); color: var(--dark); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 2px;
  white-space: nowrap; flex-shrink: 0;
}

.hero-offer-text {
  color: var(--white); font-size: 1.05rem; font-weight: 500;
}

.hero-offer-text strong {
  color: var(--gold); font-size: 1.3rem; font-weight: 700;
}

/* ===================================
   VIDEO FEATURE
   =================================== */

.video-feature { padding: 100px 0; background: var(--cream); }
.video-header { text-align: center; margin-bottom: 40px; }
.video-header .section-subtitle { margin: 0 auto; }

.video-wrapper {
  max-width: 800px; margin: 0 auto; position: relative;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.video-wrapper iframe {
  width: 100%; height: 100%; border: none;
}

/* ===================================
   PAGE HERO — Service page style
   =================================== */

.page-hero {
  position: relative;
  padding: 180px 0 100px;
  background: var(--dark);
  overflow: hidden;
}

.page-hero-bg { position: absolute; inset: 0; }

.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.6) 0%, rgba(20,20,20,0.9) 100%);
}

.page-hero .container { position: relative; z-index: 2; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: rgba(255,255,255,0.6); }

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero h1 em { font-style: italic; color: var(--gold); }

.page-hero-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.page-hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

.page-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; color: var(--gold-light);
  margin-bottom: 20px;
}

/* ===================================
   FOOTER — Near-black, minimal
   =================================== */

.footer {
  background: #0A0A0A;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-logo { height: 42px; width: auto; }

.footer-links h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  padding: 8px 0;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

.footer-contact h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-contact a { color: var(--gold); font-weight: 600; font-size: 1.05rem; }
.footer-contact p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 8px; line-height: 1.6; }

.social-links { display: flex; gap: 10px; margin-top: 20px; }

.social-links a {
  width: 44px; height: 44px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}

.social-links a:hover { background: var(--gold); border-color: var(--gold); }
.social-links svg { width: 16px; height: 16px; color: rgba(255,255,255,0.5); }
.social-links a:hover svg { color: var(--dark); }

.btn-pay-now {
  display: inline-block; margin-top: 16px; padding: 10px 28px;
  background: var(--gold); color: var(--dark);
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; border-radius: 3px;
  text-decoration: none; transition: all 0.3s var(--ease);
}

.btn-pay-now:hover {
  background: var(--gold-light); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }

.footer-licenses {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  margin-top: 12px;
  text-align: center;
}

/* ===================================
   FAQ — Shared accordion
   =================================== */

.faq { padding: 120px 0; background: var(--white); }
.faq-header { text-align: center; margin-bottom: 56px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--smoke); }
.faq-item:first-child { border-top: 1px solid var(--smoke); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: left;
  gap: 24px;
  transition: color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.faq-question:hover { color: var(--gold-dark); }

.faq-icon {
  width: 30px;
  height: 30px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gold);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.faq-item.active .faq-icon {
  background: var(--gold);
  color: var(--dark);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.active .faq-answer { max-height: 500px; }

.faq-answer p {
  padding: 0 0 22px 0;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ===================================
   CTA — Shared dark section
   =================================== */

.cta {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-crown-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  max-width: 400px;
  opacity: 0.025;
  pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: var(--white); margin-bottom: 16px; }
.cta-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cta-phone {
  margin-top: 24px;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}
.cta-phone a { color: var(--gold); font-weight: 600; }

/* ===================================
   RESPONSIVE — Header / Nav / Footer
   =================================== */

@media (max-width: 1200px) {
  .container { padding: 0 32px; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav-links { display: none; }
  .header-phone, .header-divider, .header-btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
  .mobile-overlay { display: block; }

  .header-inner { height: 70px; }
  .header.scrolled .header-inner { height: 65px; }

  .page-hero { padding: 130px 0 70px; }
  .page-hero-buttons { flex-direction: column; }
  .page-hero-buttons .btn { width: 100%; justify-content: center; }

  .faq { padding: 80px 0; }
  .faq-question { font-size: 1.1rem; padding: 22px 0; }

  .cta { padding: 80px 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
