/* --- CSS Variables & Reset --- */
:root {
  /* Color Palette - Modern, warm, luxurious tones */
  --bg-body: #fafaf8; /* A very soft off-white/cream */
  --bg-light: #f2f0ed; /* Slightly darker section background */
  --bg-dark: #1a1a1a; /* Almost black for footer */

  --text-main: #333333; /* Dark charcoal for easier reading than pure black */
  --text-muted: #666666;
  --text-light: #ffffff;
  --text-light-muted: #cccccc;

  /* Accent Color - A sophisticated warm terracotta/clay tone */
  --accent: #c47c5d;
  --accent-hover: #a8694d;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing units */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Borders & Shadows */
  --radius: 8px;
  --shadow-subtle: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography & Utilities --- */
h1,
h2,
h3,
.logo,
.btn,
.nav-links a {
  font-family: var(--font-heading);
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

h2.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

/* Add a small accent line under headings */
h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 10px;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.overline {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  max-width: 600px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: var(--space-xl) 0;
}

.text-center {
  text-align: center;
}
.mb-large {
  margin-bottom: var(--space-lg);
}
.mb-medium {
  margin-bottom: var(--space-md);
}
.bg-light {
  background-color: var(--bg-light);
}
.bg-dark {
  background-color: var(--bg-dark);
}
.text-light {
  color: var(--text-light);
}
.text-light-muted {
  color: var(--text-light-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.btn-text {
  background: none;
  color: var(--text-main);
  padding-left: var(--space-sm);
}

.btn-text:hover {
  color: var(--accent);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

.btn-accent:hover {
  background-color: white;
  color: var(--text-main);
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: absolute; /* Sit on top of hero */
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -1px;

  span {
    color: #a8694d;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* A distinct style for the contact button in nav */
.nav-cta {
  border: 2px solid var(--text-main);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
}

.nav-cta:hover {
  background-color: var(--text-main);
  color: white !important;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 90vh; /* Fill most of the screen */
  display: flex;
  align-items: center;
  padding-top: 80px; /* Space for navbar */
  margin-top: 2rem;
}

.hero-image-container {
  position: relative;
}

/* A subtle decorative element behind the hero image */
.decorative-box {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  z-index: -1;
  border-radius: var(--radius);
  opacity: 0.3;
}

.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  object-fit: cover;
  max-height: 750px;
}

/* --- Grid Layouts (Reused) --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* A slightly skewed grid for the About section for visual interest */
.grid-2-skewed {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

.image-block.relative {
  position: relative;
}

/* Decorative square behind about image */
.image-block.relative::before {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 60%;
  height: 60%;
  background-color: var(--bg-light);
  z-index: -1;
  border-radius: var(--radius);
}

.about-img,
.lifestyle-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
}

.pt-large {
  padding-top: var(--space-lg);
}
.pt-medium {
  padding-top: var(--space-md);
}

/* --- Philosophy Banner --- */
.philosophy-banner {
  background-color: var(--accent);
  color: white;
  padding: var(--space-xl) 0;
}

.philosophy-banner h2,
.philosophy-banner p {
  color: white;
}

.quote {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.quote-author {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-subtle);
  border-color: var(--bg-light);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

/* --- Contact Footer --- */
.contact-footer h2 {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.copyright {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-light-muted);
}

/* --- Responsive Design (Media Queries) --- */

@media (max-width: 968px) {
  .grid-2,
  .grid-2-skewed {
    grid-template-columns: 1fr; /* Stack columns on smaller screens */
    gap: var(--space-md);
  }

  .hero-section {
    text-align: center;
    flex-direction: column-reverse; /* Image on top on mobile */
    padding-top: 100px;
    gap: var(--space-lg);
  }

  .lead-text {
    margin: 0 auto var(--space-md);
  }

  /* Reorder the inspiration section so image is on top on mobile */
  .reverse-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-md);
  }

  .decorative-box,
  .image-block.relative::before {
    display: none; /* Hide decorative elements on mobile for cleanliness */
  }

  .pt-large,
  .pt-medium {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide navigation on very small screens for now (would need a JS burger menu) */
  }

  h2.section-title::after {
    margin: 10px auto 0; /* Center the underline */
  }

  .section-header.text-center h2.section-title::after {
    margin: 10px auto 0;
  }
}

/* --- New Interactivity & Section Styles --- */

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.mobile-nav-toggle .bar {
  width: 30px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Logo Bar / Social Proof */
.logo-bar {
  padding: var(--space-md) 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.small-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.logo-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  opacity: 0.6;
}

.brand-placeholder {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Expanded Services Item */
.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.service-item .number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  display: block;
  line-height: 1;
}

/* Testimonial Section */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.testimonial-card {
  padding: var(--space-md);
  border-left: 3px solid var(--accent);
  background: #fff;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* --- Mobile Menu Media Query --- */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: white;
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  #about {
    display: flex;
    flex-direction: column-reverse !important;
  }
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;

  a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;

    img {
      width: 50%;
      height: 50%;
    }

    &:hover {
      background-color: var(--accent);
    }
  }
}
