/* === RESET & BASE === */
*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green-dark: #1D4331;
  --green-mid: #2D6B4F;
  --green-accent: #3A8B5B;
  --green-light: #BFC3BF;
  --cream: #F5F2EC;
  --cream-dark: #EDE9E1;
  --white: #FFFFFF;
  --black: #1a1a1a;
  --gold: #C4A265;
  --font-title: 'Fraunces', serif;
  --font-body: 'Instrument Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --section-pad: 100px 5%;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--black); background: var(--cream); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,67,49,0.2); }
.btn-secondary { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 5%; display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px); background: rgba(245,242,236,0.88); transition: var(--transition);
}
.navbar.scrolled {
  padding: 10px 4%;
  top: 12px; left: 24px; right: 24px;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.nav-logo-img { height: 79px; width: auto; }
/* Logo + title shown next to it in the nav (all pages) */
.astro-nav-left {
  display: flex; align-items: center; gap: 30px;
}
.astro-nav-title {
  font-family: var(--font-title);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--green-dark);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .astro-nav-title { font-size: 0.72rem; white-space: normal; max-width: 120px; line-height: 1.3; }
}
.nav-links {
  list-style: none; display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--green-dark);
  position: relative; transition: opacity 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 2px; background: var(--green-dark); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 101;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--green-dark); transition: var(--transition); }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 5% 80px; background: var(--cream);
}
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 60px; max-width: 1400px; margin: 0 auto; width: 100%;
}
.hero-logo { max-width: 60px; margin-bottom: 24px; }
.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.95;
  color: var(--green-dark); margin-bottom: 20px; letter-spacing: 0.05em;
}
.hero-subtitle {
  font-size: 1.15rem; color: #555; margin-bottom: 36px; max-width: 480px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5; max-height: 620px;
}
.hero-portrait { width: 100%; height: 100%; object-fit: cover; }

/* === SERVICES === */
.services { padding: var(--section-pad); background: var(--white); }
.services-intro {
  font-family: var(--font-title); font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--green-dark); text-align: center; max-width: 700px;
  margin: 0 auto 60px; line-height: 1.4;
}
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 60px;
}
.service-card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(29,67,49,0.1); }
.service-card-image { aspect-ratio: 16/10; overflow: hidden; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-card-image img { transform: scale(1.05); }
.service-card { display: flex; flex-direction: column; }
.service-card-content { padding: 32px 32px 40px; flex: 1; display: flex; flex-direction: column; }
.service-card-content h3 {
  font-size: 1.5rem; color: var(--green-dark); margin-bottom: 12px;
}
.service-card-content p { color: #555; margin-bottom: 14px; font-size: 0.95rem; line-height: 1.7; }
/* Button pinned to the bottom center of each card, so both cards line up */
.service-card-content .btn { margin-top: auto; align-self: center; }
.service-card-content > :nth-last-child(2) { margin-bottom: 24px; }
.service-card-content .service-list-intro { color: var(--green-dark); font-weight: 600; margin-bottom: 10px; }
.service-list { list-style: none; padding: 0; margin: 0 0 20px; }
.service-list li {
  position: relative; padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--cream-dark);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '✦'; position: absolute; left: 0; top: 10px; color: var(--gold);
}
.service-list strong { display: block; color: var(--green-dark); font-size: 0.98rem; }
.service-list span { display: block; color: #666; font-size: 0.9rem; line-height: 1.5; }

/* Clarity Call */
.clarity-call {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; background: var(--cream); border-radius: var(--radius);
  overflow: hidden; margin-top: 20px;
}
.clarity-call-image { aspect-ratio: 16/10; overflow: hidden; }
.clarity-call-image img { width: 100%; height: 100%; object-fit: cover; }
.clarity-call-content { padding: 40px; display: flex; flex-direction: column; }
.clarity-call-content .btn { align-self: center; margin-top: 8px; }
.clarity-label {
  display: inline-block; font-family: var(--font-title); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 2px; color: var(--gold);
  margin-bottom: 16px; font-weight: 600;
}
.clarity-call-content p { color: #555; margin-bottom: 20px; line-height: 1.7; }

/* === ABOUT === */
.about { padding: var(--section-pad); background: var(--cream); }
.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem); color: var(--green-dark);
  margin-bottom: 32px; line-height: 1;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.about-bio p { color: #555; margin-bottom: 18px; max-width: 100%; font-size: 0.98rem; }
.about-highlight {
  font-family: var(--font-title); font-style: italic; font-size: 1.05rem;
  color: var(--green-dark); border-left: 3px solid var(--gold); padding-left: 20px;
  margin-top: 24px;
}
.about-image { border-radius: var(--radius); overflow: hidden; position: sticky; top: 100px; }
.about-image img { width: 100%; border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; }

/* === TESTIMONIALS === */
.testimonials { padding: var(--section-pad); background: var(--green-dark); color: var(--white); }
.testimonials .section-title { color: var(--white); text-align: center; }
.testimonial-carousel { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.testimonial-track {
  display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
  min-width: 100%; padding: 40px 20px; text-align: center;
}
.testimonial-text {
  background: rgba(255,255,255,0.07); border-radius: var(--radius);
  padding: 40px 36px; margin-bottom: 24px; backdrop-filter: blur(4px);
}
.testimonial-text p {
  font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.9);
  font-style: italic; max-width: 100%;
}
.testimonial-author {
  font-family: var(--font-title); font-size: 1.1rem; color: var(--gold);
}
.testimonial-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px;
}
.testimonial-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3);
  background: transparent; color: var(--white); font-size: 1.2rem;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.testimonial-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3);
  cursor: pointer; transition: var(--transition); border: none;
}
.testimonial-dot.active { background: var(--gold); transform: scale(1.2); }

/* === CONTACT === */
.contact { padding: var(--section-pad); background: var(--white); }
.contact .section-title { text-align: center; }
.contact-subtitle {
  text-align: center; max-width: 650px; margin: 0 auto 50px;
  color: #555; font-size: 1.05rem; line-height: 1.7;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
  max-width: 1000px; margin: 0 auto; align-items: start;
}
.contact-info { padding-top: 10px; }
.contact-detail { margin-bottom: 28px; }
.contact-label {
  display: block; font-size: 0.8rem; font-weight: 700; color: var(--green-dark);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px;
}
.contact-detail a { color: #555; transition: color 0.3s; font-size: 1rem; }
.contact-detail a:hover { color: var(--green-dark); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--green-dark);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--green-light);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem;
  background: var(--cream); transition: border-color 0.3s; outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green-dark); }
.form-success { display: none; margin-top: 16px; color: var(--green-mid); font-weight: 600; text-align: center; }
.form-success.show { display: block; }

/* === MARQUEE === */
.marquee { overflow: hidden; background: var(--green-dark); padding: 18px 0; white-space: nowrap; }
.marquee-content { display: inline-flex; animation: scroll-marquee 25s linear infinite; }
.marquee-content span {
  font-family: var(--font-title); font-size: 1.2rem; color: var(--green-light);
  padding: 0 16px; letter-spacing: 0.05em;
}
.marquee-dot { color: var(--gold) !important; font-size: 0.8rem !important; }
@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === FOOTER === */
.footer { background: var(--green-dark); color: var(--green-light); padding: 60px 5% 40px; text-align: center; }
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { height: 60px; width: auto; margin-bottom: 8px; }
.footer-name { font-family: var(--font-title); font-size: 1.4rem; color: var(--white); letter-spacing: 0.1em; }
.footer-copy { font-size: 0.85rem; opacity: 0.6; }

/* === SCROLL ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === MOBILE === */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
    background: var(--cream); flex-direction: column; justify-content: center;
    align-items: center; gap: 28px; transition: right 0.4s; z-index: 99;
    list-style: none; padding: 0;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; }
  .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); }

  .hero { padding-top: 140px; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { max-height: 400px; aspect-ratio: 4/3; }
  .hero-logo { max-width: 40px; }

  .services-grid { grid-template-columns: 1fr; }
  .clarity-call { grid-template-columns: 1fr; }
  .clarity-call-content { padding: 24px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { position: static; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .testimonial-text { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
  .hero-title { font-size: 2.5rem; }
  .services-intro { font-size: 1.3rem; }
}