/* ==========================================================================
   GEN GROW STUDIO — SERVICES PAGE STYLESHEET
   ========================================================================== */

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

:root {
  --primary: #1E6B45;       /* Forest Green */
  --secondary: #4A8C65;     /* Sage Green */
  --accent: #A8D4B8;        /* Soft Mint */
  --bg-cream: #F0EDE6;      /* Warm Cream */
  --bg-surface: #F8F6F1;    /* Off White */
  --text-primary: #2C4A38;  /* Deep Moss */
  --text-secondary: #6B8F78;/* Muted Sage */
  --border: #D4E6DC;        /* Pale Green */

  --font-primary: "Fredoka", sans-serif;
  --font-secondary: "Nunito", sans-serif;
  --font-body: "Quicksand", sans-serif;

  --font-display: var(--font-primary);
  --font-mono: var(--font-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 100px;
  border: 2px solid var(--bg-cream);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  background: var(--bg-cream);
  color: var(--text-primary);
  overflow-x: hidden;
}

body.inner-page section:first-of-type {
  padding-top: 140px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  mix-blend-mode: normal;
  transition: background .3s, backdrop-filter .3s;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -.02em;
  z-index: 101;
  line-height: 1.1;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: .02em;
  opacity: .7;
  transition: opacity .2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  opacity: 1;
  color: var(--primary);
}

.nav-links a.nav-cta.active {
  color: var(--bg-cream) !important;
  background: var(--primary) !important;
}

.nav-cta {
  background: var(--text-primary);
  color: var(--bg-cream) !important;
  opacity: 1 !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background .2s !important;
}

.nav-cta:hover {
  background: var(--primary) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ==========================================================================
   SECTION COMMONS
   ========================================================================== */
section {
  padding: 120px 48px;
}

.section-eyebrow {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  display: block;
}

.section-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
  background: var(--text-primary);
  color: var(--bg-cream);
}

.services .section-eyebrow {
  color: var(--text-secondary);
}

.services .section-title {
  color: var(--bg-cream);
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(212, 230, 220, 0.15);
  border: 1px solid rgba(212, 230, 220, 0.15);
  border-radius: 24px;
  overflow: hidden;
  max-width: 1200px;
}

.service-card {
  background: var(--text-primary);
  padding: 40px 36px;
  transition: background .25s;
  cursor: default;
}

.service-card:hover {
  background: rgba(30, 107, 69, 0.25);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--text-primary);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
  transition: background .25s, color .25s;
  color: var(--bg-cream);
}

.service-name {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 17px;
  color: var(--bg-cream);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 13px;
  color: var(--border);
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}

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

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
footer {
  background: #1B382B !important;
  color: #F0EDE6 !important;
  padding: 48px 48px !important;
  border-top: 1px solid rgba(212, 230, 220, 0.15) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 32px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.footer-col-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1 !important;
}

.footer-logo {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  letter-spacing: -.02em !important;
  line-height: 1.15 !important;
  color: #F0EDE6 !important;
}

.footer-logo span {
  color: #A8D4B8 !important;
}

.footer-copy {
  font-size: 12.5px !important;
  color: #D4E6DC !important;
  opacity: 0.85 !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 500 !important;
}

.footer-col-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 1.2 !important;
}

.footer-contact {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.footer-contact-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 13px !important;
  font-family: 'Nunito', sans-serif !important;
  color: #D4E6DC !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  text-align: left !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-contact-item:hover {
  opacity: 0.85 !important;
  color: #A8D4B8 !important;
  text-decoration: none !important;
}

.footer-contact-item.footer-address {
  align-items: flex-start !important;
}

.footer-contact-item span {
  color: #D4E6DC !important;
  text-decoration: none !important;
}

.footer-contact-icon-box {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(168, 212, 184, 0.22) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #A8D4B8 !important;
  overflow: hidden !important;
}

.footer-address .footer-contact-icon-box {
  margin-top: 2px !important;
}

.footer-contact-icon {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  fill: #A8D4B8 !important;
  color: #A8D4B8 !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.footer-col-right {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex: 1 !important;
}

.footer-socials {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

.footer-socials .social-link {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #A8D4B8 !important;
  text-decoration: none !important;
  border: 1px solid rgba(168, 212, 184, 0.22) !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.footer-socials .social-link:hover {
  transform: translateY(-2px) !important;
  background: rgba(168, 212, 184, 0.15) !important;
  border-color: #A8D4B8 !important;
}

.footer-socials .social-link svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  fill: #A8D4B8 !important;
  color: #A8D4B8 !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  nav {
    padding: 18px 24px;
  }

  /* Backdrop Overlay for 15% Left / 15% Right empty spaces */
  nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(27, 56, 43, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  nav.nav-open::before,
  .nav-open nav::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Centered 70% Width Mobile & Tablet Menu Panel */
  .nav-links {
    position: fixed;
    top: 0;
    left: 15%;
    width: 70%;
    height: 100vh;
    height: 100dvh;
    background: rgba(248, 246, 241, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 80px 24px 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(212, 230, 220, 0.6);
    border-right: 1px solid rgba(212, 230, 220, 0.6);
    border-radius: 20px;
    box-sizing: border-box;
    z-index: 99;
    overflow-y: auto;
    text-align: center;

    /* Expand Outward from Center, Growing Top-to-Bottom */
    transform-origin: top center;
    transform: translateY(-40px) scaleX(0.85) scaleY(0.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  }

  nav.nav-open .nav-links,
  .nav-open .nav-links {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

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

  .nav-links a {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: clamp(18px, 4.5vw, 24px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text-primary);
    opacity: 1;
    padding: 8px 16px;
    transition: color 0.2s;
    line-height: 1.2;
    text-align: center;
  }

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

  .nav-links .nav-cta {
    display: inline-block;
    width: auto;
    min-width: 160px;
    background: var(--text-primary);
    color: var(--bg-cream) !important;
    margin-top: 8px;
    padding: 12px 28px;
    font-size: 15px !important;
    text-align: center;
  }

  .nav-cta:hover {
    background: var(--primary) !important;
  }

  .nav-toggle {
    display: flex;
  }

  nav.nav-open .nav-toggle span:nth-child(1),
  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  nav.nav-open .nav-toggle span:nth-child(2),
  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  nav.nav-open .nav-toggle span:nth-child(3),
  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  section {
    padding: 80px 24px;
  }

  body.inner-page section:first-of-type {
    padding-top: 100px;
  }

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

  footer {
    flex-direction: column !important;
    text-align: center !important;
    gap: 28px !important;
    padding: 40px 24px !important;
  }

  .footer-col-left,
  .footer-col-center,
  .footer-col-right {
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    flex: none !important;
  }

  .footer-contact {
    align-items: flex-start !important;
  }
}
