/* -------------------------
   Style.css — The Word Garden
   ------------------------- */

/* Import Lexend font */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

/* Root variables */
:root {
  --bg-1: white;
  --bg-2: white;
  --muted: #143805;
  --accent: #143805;
  --header-h: 64px;
  --max-w: 1100px;
  --radius: 16px;
}

/* ----------------------- */
/* MOBILE HEADER FIXES     */
/* ----------------------- */
@media (max-width: 700px) {

  .site-header {
    height: auto;
    padding: 0.6rem 0;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
  }

  .page-main {
    padding-top: calc(var(--header-h) + 20px);
  }
}

/* Body / general */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lexend", "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--muted);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

/* Container utility */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20, 56, 5, 0.1);
  z-index: 60;
  display: flex;
  align-items: center;
}

.main-nav {
  width: 100%;
}
.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: .4rem .6rem;
  border-radius: 8px;
  transition: all .18s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: #1b5e20;
  background: rgba(20, 56, 5, 0.05);
}

/* Page main */
.page-main {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--header-h) + 8px);
  padding-bottom: 10px;
  box-sizing: border-box;
}

/* Home Section Hero */
.home-section {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  box-sizing: border-box;
  margin: 0;
}

/* ----------------------- */
/* MOBILE HEADER FIXES     */
/* ----------------------- */
@media (max-width: 700px) {

  .site-header {
    height: auto;
    padding: 0.6rem 0;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
  }

  .page-main {
    padding-top: calc(var(--header-h) + 20px);
  }
}


/* Home image */
.home-logo {
  width: clamp(200px, 20vw, 350px);
  height: auto;
  display: block;
  border-radius: 40px;
  object-fit: cover;
  aspect-ratio: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-logo:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

/* Headline & subheadline */
.home-headline {
  margin-top: 0.6rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
  color: var(--accent);
}

.home-subheadline {
  margin-top: 0.25rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  opacity: 0.95;
}

/* Social links */
.social-links {
  display: flex;
  gap: .8rem;
  margin-top: .8rem;
  justify-content: center;
  align-items: center;
}
.social-links a {
  width: 38px;
  height: 38px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  color: var(--accent);
  background: rgba(20, 56, 5, 0.06);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  color: #fff;
  background: #143805;
}

@media (max-width: 600px) {
  .home-logo {
    width: 70vw;
    max-width: 340px;
  }
}

/* About Section */
/* ABOUT PAGE — clean modern layout */
.about-page {
  padding: 5rem 1.5rem 3rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.about-wrapper {
  max-width: 750px;
  margin: 0 auto;
}

.about-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1rem;
  opacity: 0.95;
}

/* RESPONSIVE — smaller screens */
@media (max-width: 700px) {
  .about-page {
    padding: 4rem 1.2rem 2.5rem;
  }

  .about-text {
    font-size: 1.05rem;
  }
}


/* Footer */
.site-footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

/* Appear animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.appear { opacity: 0; transform: translateY(6px); }
.appear.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp .6s cubic-bezier(.2,.9,.25,1) both;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .main-nav ul { gap: .8rem; padding: 0 .5rem; }
  .home-logo { width: clamp(140px, 48vw, 240px); max-height: 34vh; }
  .home-headline { font-size: 1.5rem; }
  .home-subheadline { font-size: 1rem; }
  .social-links a { width: 34px; height: 34px; font-size: .95rem; }
  .about-card { padding: 1.5rem 1rem; border-radius: 40px; }
}

/* Large screens */
@media (min-width: 1200px) {
  .page-main {
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 28px);
  }
  .home-section { margin-top: 2.5vh; }
}

/* Services Page */
.services-page {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}
.services-hero {
  min-height: calc(50vh - var(--header-h));
  display: flex;
  align-items: center;
  color: var(--muted);
  padding: 0;
}
.services-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.25rem 1rem;
  box-sizing: border-box;
}
.services-content { max-width: 700px; margin-left: 0; }
.services-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.services-top-title {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  margin: 0;
  color: var(--accent);
}
.services-accent { display:flex; align-items:center; gap:.6rem; position:relative; }
.services-accent .accent-line {
  width: 1px;
  height: 58px;
  background: rgba(20,56,5,0.2);
}
.services-accent .accent-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(20,56,5,0.3);
  display:flex;
  align-items:center;
  justify-content:center;
}
.services-accent .accent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.services-copy p {
  margin: 0;
  font-size: clamp(0.98rem, 1.7vw, 1.05rem);
  line-height: 1.9;
  color: var(--muted);
  max-width: 560px;
  text-align: left;
}
.services-underline {
  width: 120px;
  height: 2px;
  background: rgba(20,56,5,0.2);
  margin-top: 2.25rem;
  border-radius: 2px;
}
/* Services Cards Section */
.services-cards-section {
  padding: 1rem 1rem;
}
.services-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.service-card {
  flex: 1 1 280px;
  max-width: 320px;
  background: rgba(20,56,5,0.05);
  border-radius: 20px;
  padding: 1.8rem 1.2rem;
  text-align: left;
  color: var(--muted);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.service-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.service-card p {
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  line-height: 1.6;
  opacity: 0.9;
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .services-cards {
    flex-direction: column;
    gap: 1.2rem;
  }
  .service-card {
    max-width: 100%;
  }
  .services-cards-section {
    padding: 2rem 1rem;
  }
}


/* -------------------------
   Testimonials Page
   ------------------------- */

.testimonials-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 5rem 1rem 2rem;
}

.testimonials-hero {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.testimonials-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonials-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  opacity: 0.88;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto;
}

.testimonials-underline {
  width: 120px;
  height: 2px;
  background: rgba(20,56,5,0.25);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

/* Grid */
.testimonials-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 1rem 1rem 3rem;
}

/* Card */
.testimonial-card {
  background: rgba(20, 56, 5, 0.05);
  border-radius: 24px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.testimonial-text {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  opacity: 0.95;
}

.testimonial-author {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
}
/* Adjust top padding on mobile */
@media (max-width: 720px) {
  .testimonials-page {
    padding-top: 3rem; /* instead of 5rem */
    padding-bottom: 2rem;
  }
  .testimonials-grid {
    gap: 1rem;
    padding: 1rem 0 2rem;
  }
  .testimonial-card {
    padding: 1.5rem 1rem;
  }
  .testimonials-subtitle {
    font-size: 1rem;
    max-width: 90%;
  }
}

/* FAQs Page */
.open-style {
  font-size: clamp(1.8rem, 4vw, 2.1rem);
  margin: auto;
  padding: 60px 20px;
}

.open-style h1 {
  font-size: 2.1rem;
  margin-bottom: 40px;
  color: var(--accent);
  text-align: center;
  font-weight: 600;
}

.faq-item {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(20, 56, 5, 0.2);
}

.faq-question {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.faq-answer {
  color: #2d5e2d;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  letter-spacing: 0.2px;
}

@media (max-width: 480px) {
  .open-style {
    padding: 40px 15px;
  }
  .faq-item {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }
}


/* -------------------------
   Contact Page Styling (FIXED)
------------------------- */

.contact-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1rem 3rem; /* reduce horizontal padding */
  box-sizing: border-box;   /* include padding in width calculations */
}

.contact-intro {
  text-align: center;
  margin-bottom: 1.2rem;
}

.contact-text {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted);
  opacity: 0.9;
  line-height: 1.6;
}

/* FORM FIX — perfectly aligned */

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;   
  gap: 1.8rem;
  width: 100%;
}

/* Form fields */
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;  /* ensures padding and border are included in width */
}


/* force top row full alignment */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / 3;
}

/* labels */
label {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--accent);
}

/* input fields */
input,
textarea {
  background: var(--bg-2);
  border: 1px solid #3b3b3b;
  color: var(--muted);
  padding: 0.7rem;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

textarea {
  min-height: 100px;
}

/* focus effect */
input:focus,
textarea:focus {
  border: 1px solid var(--accent);
  box-shadow: 0 0 6px var(--accent);
  outline: none;
}

/* submit button */
.submit-button {
  grid-column: 1 / 3;
  justify-self: center;
  margin-top: .5rem;
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--accent);
  color: #eee8e8;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Mobile adjustments */
@media screen and (max-width: 700px) {
  .contact-form {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-group.full-width {
    grid-column: 1;
  }

  textarea {
    min-height: 110px;
    max-height: 110px;
    resize: vertical;
  }

  .submit-button {
    grid-column: 1;
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .contact-page {
    padding: 3rem 0.8rem 2rem; /* slightly less horizontal padding on tiny screens */
  }
}

.form-message {
  display: none;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  text-align: center;
}

.success-message {
  background: #204b20;
  color: #b9ffb9;
  border: 1px solid #2f7a2f;
}

.error-message {
  background: #5a1d1d;
  color: #ffb4b4;
  border: 1px solid #993232;
}






