@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&family=Quicksand:wght@500;600;700&display=optional');

/*--------------------------------------------------------------
# Meadow - BWG original theme
# Friendly, rounded, approachable light theme.
# Soft warm-green-tinted white, pill buttons, 20-28px radii,
# diffuse shadows, organic blob accents.
--------------------------------------------------------------*/

:root {
  --bwg-header-h: 78px;

  /* Design Tokens */
  --primary-color: #047857;
  --primary-rgb: 4, 120, 87;
  --secondary-color: #a16207;
  --secondary-rgb: 161, 98, 7;
  --background-color: #f6faf6;
  --surface-color: #ffffff;
  --surface-border: #e3ede3;
  --text-color: #4b5d52;
  --heading-color: #14271d;
  --contrast-color: #ffffff;

  --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);

  --font-default: 'Nunito', system-ui, sans-serif;
  --font-heading: 'Quicksand', sans-serif;

  /* Meadow shape language */
  --radius-card: 24px;
  --radius-pill: 9999px;
  --shadow-soft: 0 18px 40px rgba(20, 39, 29, 0.07);
  --shadow-rest: 0 8px 24px rgba(20, 39, 29, 0.05);

  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-default);
  font-size: 16.5px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

a:hover {
  color: var(--heading-color);
}

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 6px;
}

section,
.section {
  padding: 88px 0;
  background-color: var(--background-color);
  scroll-margin-top: calc(var(--bwg-header-h) + 16px);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--bwg-header-h);
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

body.scrolled .header {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(20, 39, 29, 0.06);
}

.header .logo {
  gap: 10px;
}

.header .logo i {
  font-size: 28px;
  color: var(--primary-color);
  line-height: 1;
}

.header .logo h1,
.header .logo .sitename {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .btn-getstarted {
  background: var(--primary-color);
  color: var(--on-primary, var(--contrast-color));
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  margin-left: 24px;
  box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.22);
}

.header .btn-getstarted:hover {
  background: var(--secondary-color);
  color: var(--on-secondary, var(--contrast-color));
  transform: translateY(-1px);
}

/*--------------------------------------------------------------
# Navigation menu (desktop)
--------------------------------------------------------------*/
.navmenu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 26px;
}

.navmenu a {
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 600;
  padding: 8px 4px;
  display: inline-block;
}

.navmenu a:hover,
.navmenu .active {
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# Mobile navigation (binds to main.js: .mobile-nav-toggle,
# body.mobile-nav-active)
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--heading-color);
  line-height: 1;
  padding: 4px;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navmenu {
    display: none;
  }

  body.mobile-nav-active .navmenu {
    display: block;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 22px;
    z-index: 9999;
    box-shadow: var(--shadow-soft);
  }

  body.mobile-nav-active .navmenu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  body.mobile-nav-active .navmenu a {
    font-size: 17px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
  }

  body.mobile-nav-active .navmenu a:hover,
  body.mobile-nav-active .navmenu a.active {
    background: rgba(var(--primary-rgb), 0.08);
  }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  padding: calc(var(--bwg-header-h) + 70px) 0 90px 0;
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -160px;
  background: rgba(var(--primary-rgb), 0.07);
}

.hero-blob-2 {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: -140px;
  background: rgba(var(--secondary-rgb), 0.07);
}

.hero .subtitle {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero .description {
  font-size: 1.15rem;
  margin-bottom: 34px;
  max-width: 540px;
}

.hero-visual {
  position: relative;
  padding: 10px;
}

.hero-visual img,
.hero-visual svg {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

@media (max-width: 991px) {
  .hero {
    padding-top: calc(var(--bwg-header-h) + 44px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-pill {
  background: var(--primary-color);
  color: var(--on-primary, var(--contrast-color));
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.25);
}

.btn-pill:hover {
  background: var(--secondary-color);
  color: var(--on-secondary, var(--contrast-color));
  transform: translateY(-2px);
}

.btn-text {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-left: 22px;
  padding: 10px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

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

/*--------------------------------------------------------------
# Section titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# Soft rounded cards (Meadow signature: no hard borders,
# diffuse shadows, big radii)
--------------------------------------------------------------*/
.card-soft {
  background: var(--surface-color);
  border: 0;
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-rest);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  height: 100%;
}

.card-soft:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .lead-text {
  font-size: 1.1rem;
  margin-bottom: 26px;
}

.about .info-content h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.about .check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about .check-list li {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.about .check-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(var(--primary-rgb), 0.1);
}

.about .check-icon i {
  color: var(--primary-color);
  font-size: 1.4rem;
}

.about .check-list li h3 {
  font-size: 1.15rem;
  margin: 0 0 4px 0;
}

.about-visual img,
.about-visual svg {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.service-card {
  text-align: left;
  padding: 38px 32px;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(var(--primary-rgb), 0.1);
  margin-bottom: 22px;
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.services .row > div:nth-child(even) .service-icon {
  background: rgba(var(--secondary-rgb), 0.1);
}

.services .row > div:nth-child(even) .service-icon i {
  color: var(--secondary-color);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Portfolio / work cards
--------------------------------------------------------------*/
.work-card {
  background: var(--surface-color);
  border-radius: var(--radius-card);
  padding: 14px 14px 24px 14px;
  box-shadow: var(--shadow-rest);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.work-image {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.work-image img,
.work-image svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  transition: transform 0.4s ease;
}

.work-card:hover .work-image img,
.work-card:hover .work-image svg {
  transform: scale(1.03);
}

.work-info {
  padding: 18px 12px 0 12px;
}

.work-meta {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  /* accent text on white card: var stays AA (#047857 = 5.4:1) */
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-info h3 {
  font-size: 1.3rem;
  margin: 6px 0 0 0;
}

/*--------------------------------------------------------------
# Why us / metrics
--------------------------------------------------------------*/
.metric-card {
  text-align: center;
  padding: 44px 26px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 12px;
}

.metric-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.metric-card p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonial-card {
  padding: 38px 34px;
  position: relative;
}

.quote-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(var(--secondary-rgb), 0.1);
  margin-bottom: 18px;
}

.quote-mark i {
  color: var(--secondary-color);
  font-size: 1.3rem;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.testimonial-user img,
.testimonial-user svg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.testimonial-user h3 {
  font-size: 1.05rem;
  margin: 0;
}

.testimonial-user span {
  font-size: 13.5px;
  color: var(--text-color);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding: 28px;
  height: auto;
}

.contact-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(var(--primary-rgb), 0.1);
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-info-block h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.contact-info-block p {
  margin: 0;
}

.contact-form {
  padding: 40px;
}

.contact-form input,
.contact-form textarea {
  background: var(--background-color);
  border: 2px solid var(--surface-border);
  color: var(--heading-color);
  padding: 13px 20px;
  border-radius: 18px;
  width: 100%;
  font-family: var(--font-default);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
  border-radius: 20px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-color);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
  outline: none;
  background: var(--surface-color);
}

.contact-form button {
  background: var(--primary-color);
  color: var(--on-primary, var(--contrast-color));
  border: none;
  padding: 14px 38px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.25);
}

.contact-form button:hover {
  background: var(--secondary-color);
  color: var(--on-secondary, var(--contrast-color));
  transform: translateY(-2px);
}

.contact-form button:focus-visible {
  outline: 3px solid var(--heading-color);
  outline-offset: 3px;
}

/*--------------------------------------------------------------
# Page title (inner pages)
--------------------------------------------------------------*/
.page-title {
  padding: calc(var(--bwg-header-h) + 52px) 0 36px 0;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--primary-rgb), 0) 100%), var(--background-color);
  position: relative;
}

.page-title .breadcrumbs {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-title .breadcrumb {
  margin-bottom: 14px;
  font-size: 14.5px;
}

.page-title .breadcrumb a {
  color: var(--primary-color);
  font-weight: 600;
}

.page-title .breadcrumb a:hover {
  color: var(--heading-color);
}

.page-title .breadcrumb .active,
.page-title .breadcrumb-item.current {
  color: var(--text-color);
}

.page-title .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-color);
}

.page-title .title-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-title h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.page-title p {
  font-size: 1.1rem;
  margin: 0;
  max-width: 640px;
}

/*--------------------------------------------------------------
# Starter section + detail pages
--------------------------------------------------------------*/
.starter-section {
  padding-top: 44px;
}

.starter-section .container {
  font-size: 1.05rem;
}

.service-menu h2,
.project-facts h2 {
  margin-bottom: 18px;
}

.service-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-menu li {
  margin-bottom: 6px;
}

.service-menu a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--text-color);
  font-weight: 600;
}

.service-menu a:hover,
.service-menu a.active {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
}

.detail-illustration {
  border-radius: 18px;
  margin-bottom: 28px;
  display: block;
}

.service-detail-body h2,
.portfolio-detail-body h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.project-facts ul {
  list-style: none;
  margin: 0 0 26px 0;
  padding: 0;
}

.project-facts li {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-border);
}

.project-facts li:last-child {
  border-bottom: 0;
}

.project-facts strong {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

/*--------------------------------------------------------------
# Footer (theme footer on inner pages)
--------------------------------------------------------------*/
.footer {
  background: var(--surface-color);
  border-top: 1px solid var(--surface-border);
  color: var(--text-color);
  padding: 56px 0 28px 0;
  position: relative;
  font-size: 15px;
}

.footer .footer-top {
  padding-bottom: 24px;
}

.footer .logo {
  gap: 10px;
  margin-bottom: 14px;
}

.footer .logo i {
  font-size: 26px;
  color: var(--primary-color);
}

.footer .sitename {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
}

.footer .footer-tagline {
  max-width: 360px;
}

.footer .footer-contact p {
  margin-bottom: 4px;
}

.footer .footer-links h2,
.footer .footer-links h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer .footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer .footer-links li {
  margin-bottom: 8px;
}

.footer .footer-links a {
  color: var(--text-color);
  display: inline-block;
  padding: 2px 0;
}

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

.footer .copyright {
  border-top: 1px solid var(--surface-border);
  padding-top: 22px;
}

.footer .copyright p {
  margin: 0;
}

/*--------------------------------------------------------------
# Scroll top button (binds to main.js: .scroll-top, .active)
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--on-primary, var(--contrast-color));
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.3);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.scroll-top i {
  font-size: 26px;
  line-height: 0;
}

.scroll-top:hover {
  background: var(--secondary-color);
  color: var(--on-secondary, var(--contrast-color));
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Accessibility / QA safety blocks
--------------------------------------------------------------*/

/* Safety pin: if any AOS-marked content ever lands on a page,
   keep it fully opaque so text contrast never drops. */
[data-aos] {
  opacity: 1 !important;
}

/* Icon-only links: ensure >= 40px touch targets (WCAG 2.2 AA
   24px minimum, with comfortable margin). */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 18px;
  color: var(--text-color);
}

.social-links a:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

/* Visible focus for nav + footer links */
.navmenu a:focus-visible,
.footer a:focus-visible,
.btn-pill:focus-visible,
.btn-getstarted:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/*--------------------------------------------------------------
# Global footer overrides (engine-injected .spec-site-global-footer)
# Harmonized with Meadow: light surface, AA-contrast text/links.
--------------------------------------------------------------*/
.spec-site-global-footer {
  background: #ffffff !important;
  border-top: 1px solid var(--surface-border) !important;
  color: #4b5d52 !important;
  font-family: var(--font-default) !important;
}

.spec-site-global-footer p,
.spec-site-global-footer span,
.spec-site-global-footer li {
  color: #4b5d52 !important;
}

.spec-site-global-footer h1,
.spec-site-global-footer h2,
.spec-site-global-footer h3,
.spec-site-global-footer h4 {
  color: var(--heading-color) !important;
  font-family: var(--font-heading) !important;
}

.spec-site-global-footer a {
  color: var(--primary-color) !important;
}

.spec-site-global-footer a:hover {
  color: var(--heading-color) !important;
}

/*--------------------------------------------------------------
# Misc / responsive polish
--------------------------------------------------------------*/
@media (max-width: 767px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .page-title h1 {
    font-size: 2.1rem;
  }

  .contact-form {
    padding: 28px;
  }

  .btn-text {
    margin-left: 14px;
  }
}

@media (max-width: 575px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .hero .description {
    font-size: 1.05rem;
  }

  .card-soft {
    padding: 28px;
  }
}

/* Compact header on phones: long injected site names (h1.sitename) must not
   wrap into the hero, and the header CTA can't fit beside the nav toggle. */
@media (max-width: 575px) {
  .header .logo h1.sitename,
  .header .logo .sitename {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62vw;
  }
  .header .btn-getstarted {
    display: none;
  }
}
