:root {
  --bone: #f5f1e9;
  --slate: #313f3f;
  --sage: #5d726d;
}

body {
  background-color: var(--bone);
  color: var(--slate);
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.legal-page {
  padding: 160px 10% 120px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 80px;
}

.legal-label {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.75rem;
  opacity: 0.6;
  display: block;
  margin-bottom: 15px;
}

.legal-title {
  font-family: "Georgia", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 400;
}

.legal-title span {
  font-style: italic;
  font-weight: 300;
}

.last-updated {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 20px;
  letter-spacing: 1px;
}

.legal-content {
  border-top: 1px solid rgba(49, 63, 63, 0.1);
  padding-top: 40px;
}

.legal-section {
  margin-bottom: 60px;
}

.section-num {
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  color: var(--sage);
  display: block;
  margin-bottom: 10px;
}

.legal-section h2 {
  font-family: "Georgia", serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.legal-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 20px;
}

.legal-footer {
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid var(--slate);
}

.legal-footer a {
  color: var(--slate);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 100px 5% 60px;
  }
}

/* Variable Palette */
:root {
  --bone: #f5f1e9;
  --sand: #d4c9b1;
  --taupe: #9e8f7a;
  --sage: #5d726d;
  --slate: #313f3f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bone);
  color: var(--slate);
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
}

h2 {
  font-size: 2.5rem;
  font-weight: 500;
  font-style: italic;
  padding: 1rem;
  margin-top: 5%;
}
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1rem 5%;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  letter-spacing: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding-top: 2%;
}

.nav-links a {
  text-decoration: none;
  color: var(--bone);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--slate);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10%;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  font-style: italic;
}

.subtitle {
  letter-spacing: 5px;
  font-size: 0.7rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  padding: 1rem 2.5rem;
  border: 1px solid var(--slate);
  text-decoration: none;
  color: var(--slate);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 2px;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: var(--slate);
  color: var(--bone);
}

/* Content Sections */
.section {
  padding: 1rem 10%;
  text-align: center;
}
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Keeps the image within bounds */
  color: var(
    --bone
  ); /* Switching hero text to Bone for contrast against the dark car image */
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-car-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the car fills the screen without stretching */
  object-position: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Using a gradient of your Slate color (#313F3F) to create the spotlight feel */
  background: radial-gradient(
    circle,
    rgba(49, 63, 63, 0.2) 0%,
    rgba(49, 63, 63, 0.7) 100%
  );
}

.hero-content {
  z-index: 10;
  text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Adds depth to the high-end typography */
}

/* Ensure the button stays visible against the image */
.btn-primary {
  border: 1px solid var(--bone);
  color: var(--bone);
}

.btn-primary:hover {
  background-color: var(--bone);
  color: var(--slate);
}

.site-footer {
  background-color: var(--slate); /* #313F3F from brand palette */
  padding: 80px 5% 40px;
  color: var(--bone); /* #F5F1E9 */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Navigation Links */
.footer-nav {
  display: flex;
  gap: 60px;
  margin-bottom: 40px;
}

.nav-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: var(--bone);
  text-decoration: none;
  font-family: "sans-serif";
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--sand); /* #D4C9B1 */
}

/* Legal text styling */
.legal a {
  opacity: 0.6;
  font-size: 0.75rem;
}

.footer-copyright {
  font-family: "serif";
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

/* Logo Alignment */
.footer-right {
  display: flex;
  align-items: center;
}

.footer-logo img {
  max-width: 140px; /* Adjust based on your logo shape */
  height: auto;
  margin-left: -10%;
  margin-top: -10%;
}

/* Responsive Scaling */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 50px;
    align-items: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 20px;
  }
}
/* --- Mobile Refinement (768px and below) --- */
@media (max-width: 768px) {
  /* Global Adjustments */
  h1,
  .brand-title,
  .section-title,
  .cta-hook {
    font-size: 1.8rem !important; /* Scale down large headlines */
    line-height: 1.3;
  }

  /* Services Grid Overlay */
  #solutions.services-grid {
    margin: -40px auto 0; /* Softer overlap for mobile */
    width: 95%;
    padding: 40px 20px;
    gap: 20px;
  }

  /* About & Why Section Flex Fix */
  .about-container,
  .why-container {
    flex-direction: column !important;
    text-align: center;
    gap: 30px;
  }

  .about-content,
  .why-content,
  .about-visual,
  .why-image-area {
    flex: none;
    width: 100%;
  }

  /* Case Studies (Impact) Section */
  .case-studies-box {
    margin: -60px auto 0; /* Reduced pull-up */
    padding: 0 0 40px 0;
    width: 95%;
  }

  .spotlight-wrapper {
    height: 250px; /* Shorter image height for mobile viewports */
  }

  .stats-grid {
    grid-template-columns: 1fr; /* Stack stats vertically */
    gap: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Philosophy Section */
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-row {
    flex-direction: column; /* Stack the 3 sage-background rectangles */
    gap: 15px;
  }

  .gallery-item img {
    height: 200px; /* Slightly shorter for vertical stacking */
  }

  /* CTA & Footer */
  .cta-bottom {
    padding: 80px 20px;
  }

  .footer-container {
    flex-direction: column-reverse; /* Put logo on top, links below */
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 25px;
  }

  .footer-logo img {
    max-width: 140px;
  }
}

/* --- Small Mobile (480px and below) --- */
@media (max-width: 480px) {
  .btn-initiate,
  .why-cta,
  .cta-button {
    width: 100%; /* Full-width buttons for easier tapping */
    padding: 18px 20px;
    box-sizing: border-box;
  }

  .about-visual {
    margin-left: -10%;
  }

  .card-image {
    margin-left: -2.5%;
  }
}

/* --- Sticky & Transparent Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;

  /* Sticky Logic */
  position: fixed; /* Fixes it to the top of the viewport */
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;

  transition: all 0.3s ease;
}

/* Ensure the links are legible over the dark hero and light sections */
.nav-links a {
  text-decoration: none;
  color: var(--bone); /* Starts as light for the hero section */
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Optional: If you find the text hard to see on light sections, 
   the glass blur usually handles it, but you can also use a text-shadow */
.nav-links a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#nav-check {
  display: none;
}

/* --- Mobile "X" and Full Screen Pop-up --- */
@media (max-width: 768px) {
  /* 1. Force the label to be visible and give it dimensions */
  .hamburger-label {
    display: flex !important; /* Overrides any desktop hidden state */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 3001;
    cursor: pointer;
  }

  /* 2. Ensure the individual lines have color and size */
  .hamburger-label span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--bone); /* #f5f1e9 - contrast against the drapes */
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  }

  /* 3. The Full Screen Menu */
  .nav-links {
    display: flex; /* Ensure flex is active for vertical stacking */
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--slate); /* #313f3f */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .nav-links li {
    margin: 20px 0;
  }

  /* 4. Open State Logic */
  .nav-checkbox:checked ~ .nav-links {
    right: 0;
  }

  /* 5. The "X" Animation */
  .nav-checkbox:checked ~ .hamburger-label span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--bone);
  }

  .nav-checkbox:checked ~ .hamburger-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-checkbox:checked ~ .hamburger-label span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--bone);
  }
}

:root {
  --bone: #f5f1e9;
  --slate: #313f3f;
  --sage: #5d726d;
  --sand: #d4c9b1;
}

body {
  background-color: var(--bone);
  color: var(--slate);
  margin: 0;
  font-family:
    "Helvetica Neue", Helvetica, Arial, sans-serif; /* Your Sans-Serif */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Legal Page Layout */
.legal-page {
  padding: 160px 10% 120px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 80px;
  text-align: left;
}

.legal-label {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.75rem;
  opacity: 0.6;
  display: block;
  margin-bottom: 15px;
}

.legal-title {
  font-family: "Georgia", serif; /* Your Serif */
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 400;
}

.legal-title span {
  font-style: italic;
  font-weight: 300;
}

.last-updated {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 20px;
  font-family: "Helvetica Neue", sans-serif;
  letter-spacing: 1px;
}

/* Content Sections */
.legal-content {
  border-top: 1px solid rgba(49, 63, 63, 0.1);
  padding-top: 40px;
}

.legal-section {
  margin-bottom: 60px;
}

.section-num {
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  color: var(--sage);
  display: block;
  margin-bottom: 10px;
  opacity: 0.8;
}

.legal-section h2 {
  font-family: "Georgia", serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--slate);
}

.legal-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 20px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
}

.legal-section ul li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  opacity: 0.85;
}

.legal-section ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sage);
}

/* Footer / Contact within Legal */
.legal-footer {
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid var(--slate);
}

.legal-footer p {
  font-style: italic;
  font-size: 0.95rem;
}

.legal-footer a {
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.3s;
}

.legal-footer a:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 100px 5% 60px;
  }
}
