@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Libre+Franklin:wght@300;400;500&display=swap');

:root {
  --navy: #1a2540;
  --navy-light: #2c3d60;
  --warm: #c17a3a;
  --warm-light: #d4a87a;
  --warm-pale: #f5eee6;
  --stone: #f8f7f4;
  --stone-dark: #ede9e3;
  --gray: #9a9ea8;
  --gray-dark: #4a5068;
  --border: #e2ddd6;
  --white: #ffffff;
}

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

body {
  font-family: 'Libre Franklin', sans-serif;
  background: var(--stone);
  color: var(--navy);
  line-height: 1.6;
}

/* NAV */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-letters {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
}
.logo-divider {
  width: 1px;
  height: 38px;
  background: var(--gray);
}
.logo-main {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.3;
}
.logo-sub {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--gray);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--gray-dark);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links .nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 3px;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  transition: background 0.2s !important;
}
.nav-links .nav-cta:hover { background: var(--navy-light) !important; }

/* BUTTONS */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--navy-light); }

.btn-warm {
  background: var(--warm);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-warm:hover { background: #a8661f; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 12px 24px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--navy); }

/* SECTION LABELS */
.section-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 500;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-dark);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* CARDS */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.card:hover { border-color: var(--navy); transform: translateY(-2px); }

.card-icon {
  width: 42px;
  height: 42px;
  background: var(--warm-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 18px; height: 18px; stroke: var(--warm); fill: none; stroke-width: 1.5; }
.card h3 { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 13px; font-weight: 300; color: var(--gray-dark); line-height: 1.75; }
.card-link { margin-top: 14px; font-size: 12px; font-weight: 500; color: var(--warm); display: inline-block; border-bottom: 1px solid var(--warm-light); padding-bottom: 1px; }

/* STATS BAR */
.stats-bar {
  background: var(--navy);
  padding: 32px 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { text-align: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--white); display: block; }
.stat-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); font-weight: 300; margin-top: 4px; }

/* FOOTER */
footer {
  background: var(--navy);
  padding: 48px 2.5rem 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-letters { color: var(--white); font-size: 24px; }
.footer-brand .logo-main { color: rgba(255,255,255,0.8); }
.footer-brand .logo-sub { color: var(--gray); }
.footer-brand .logo-divider { background: rgba(255,255,255,0.2); }
.footer-desc { font-size: 13px; font-weight: 300; color: var(--gray); line-height: 1.75; margin-top: 14px; max-width: 240px; }
.footer-col h4 { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; font-weight: 300; color: var(--gray); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); font-weight: 300; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-legal a:hover { color: var(--gray); }

/* WARM ACCENT BAR */
.warm-bar { height: 4px; background: var(--warm); }

/* PAGE HERO (interior pages) */
.page-hero {
  background: var(--navy);
  padding: 64px 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  background: rgba(193,122,58,0.08);
}
.page-hero-badge { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--warm-light); font-weight: 500; margin-bottom: 14px; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 400; color: var(--white); line-height: 1.2; margin-bottom: 16px; max-width: 640px; }
.page-hero p { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.65); max-width: 540px; line-height: 1.8; }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-dark); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 16px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* UTILITY */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.section-pad { padding: 72px 2.5rem; }
.warm-accent { color: var(--warm); }

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .page-hero h1 { font-size: 30px; }
  .section-title { font-size: 26px; }
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.lang-btn {
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  text-decoration: none;
  line-height: 1;
}
.lang-btn:hover, .lang-btn.active { opacity: 1; }

/* AFFILIATE SECTION */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.affiliate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.affiliate-card h3 { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.affiliate-card p { font-size: 13px; font-weight: 300; color: var(--gray-dark); line-height: 1.7; flex: 1; }
.affiliate-badge {
  font-size: 10px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--warm);
  background: var(--warm-pale); border: 1px solid var(--warm-light);
  padding: 3px 10px; border-radius: 2px;
  display: inline-block; margin-bottom: 12px; width: fit-content;
}
.affiliate-link {
  display: inline-block; margin-top: 14px;
  background: var(--navy); color: var(--white);
  padding: 9px 18px; border-radius: 3px;
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.2s;
}
.affiliate-link:hover { background: var(--navy-light); }
.affiliate-disclaimer {
  font-size: 11px; font-weight: 300; color: var(--gray);
  margin-top: 20px; line-height: 1.65;
}

/* FOOTER DISCLAIMER */
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 0;
}
.footer-disclaimer p {
  font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.75; max-width: 800px; margin-bottom: 12px;
}
.footer-bottom-row {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-copy { font-size: 11px; color: rgba(255,255,255,0.3); font-weight: 300; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 11px; color: rgba(255,255,255,0.3);
  text-decoration: none; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ===========================
   MOBILE RESPONSIVE - FULL
   =========================== */
@media (max-width: 768px) {

  /* NAV */
  nav {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
  }
  .nav-links { display: none; }
  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  /* HERO - stack columns */
  section[style*="grid-template-columns:1fr 1fr"] {
    display: block !important;
  }
  .hero-right,
  section > div[style*="background:var(--navy)"][style*="align-items:center"] {
    display: none !important;
  }

  /* GRIDS */
  .grid-3, .grid-2, .affiliate-grid { grid-template-columns: 1fr !important; }
  .stats-bar { grid-template-columns: repeat(2,1fr) !important; gap: 16px; padding: 24px 16px; }
  .footer-top { grid-template-columns: 1fr !important; gap: 24px; }

  /* SECTION PADDING */
  .section-pad { padding: 40px 16px !important; }
  nav + * { padding-left: 16px !important; padding-right: 16px !important; }

  /* PAGE HERO */
  .page-hero { padding: 40px 16px !important; }
  .page-hero h1 { font-size: 26px !important; }
  .section-title { font-size: 24px !important; }

  /* HERO TEXT */
  section > div[style*="padding:72px 56px"],
  section > div[style*="padding:64px 52px"],
  section > div[style*="padding:64px 56px"] {
    padding: 36px 16px !important;
  }

  /* HERO SPLIT - navy side hidden on mobile */
  section[style*="min-height:540px"] > div:last-child,
  section[style*="min-height:380px"] > div:last-child {
    display: none !important;
  }
  section[style*="min-height:540px"],
  section[style*="min-height:380px"] {
    display: block !important;
  }

  /* BUTTONS */
  .hero-btns, div[style*="display:flex; gap:14px; flex-wrap:wrap"] {
    flex-direction: column !important;
  }
  .btn-primary, .btn-warm, .btn-ghost {
    text-align: center !important;
    width: 100% !important;
  }

  /* CTA BANNER */
  section[style*="display:flex; align-items:center; justify-content:space-between"] {
    flex-direction: column !important;
    padding: 36px 16px !important;
    gap: 20px !important;
  }

  /* TABLES */
  table { font-size: 11px !important; }
  table td, table th { padding: 8px 10px !important; }

  /* DRIVEWAY / PAVER TYPES 2-col grids */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:1.2fr 1fr"],
  div[style*="grid-template-columns:1fr 1.6fr"],
  div[style*="grid-template-columns:1.5fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr; gap:48px"],
  div[style*="grid-template-columns:1fr 1fr; gap:32px"] {
    display: block !important;
  }
  div[style*="grid-template-columns:1fr 1fr"] > div,
  div[style*="grid-template-columns:1.2fr 1fr"] > div,
  div[style*="grid-template-columns:1fr 1.6fr"] > div {
    margin-bottom: 20px !important;
  }

  /* STEPS - concrete methods */
  div[style*="grid-template-columns:60px 1fr"] {
    grid-template-columns: 44px 1fr !important;
    gap: 12px !important;
  }

  /* FINISH OPTIONS - marble page */
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* FOOTER */
  footer { padding: 36px 16px 24px !important; }
  .footer-bottom-row { flex-direction: column !important; align-items: flex-start !important; }

  /* CALCULATOR */
  div[style*="grid-template-columns:1fr 1fr; gap:32px"] {
    display: block !important;
  }

  /* ALERT BANNER */
  div[style*="display:flex; align-items:center; gap:20px"] {
    flex-wrap: wrap !important;
    padding: 16px !important;
  }
  .alert-link { margin-left: 0 !important; }

  /* CONTACT GRID */
  div[style*="grid-template-columns:1fr 1.4fr"],
  div[style*="grid-template-columns:1fr 1.6fr"] {
    display: block !important;
  }

  /* LANG SWITCHER */
  .lang-btn { font-size: 22px !important; }
}

/* SMALL PHONES */
@media (max-width: 380px) {
  .page-hero h1 { font-size: 22px !important; }
  .section-title { font-size: 20px !important; }
  .stat-num { font-size: 26px !important; }
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
  padding: 4px 8px;
  line-height: 1;
}

@media (max-width: 768px) {
  .hamburger { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--warm);
    flex-direction: column;
    padding: 12px 0;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 14px !important;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-cta {
    margin: 12px 24px;
    text-align: center;
    border-radius: 3px;
    border-bottom: none !important;
  }

  nav {
    position: relative;
  }
}
