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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000000;
  background: #f5f0e6;
}

.page-overlay {
  min-height: 100vh;
}

/* -------------------------------------------------------
   HEADER
   ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 230, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo area */

.logo-block {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

/* Brand lockup */

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: contain;
}

.brand-word {
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
}

.brand-o {
  letter-spacing: -0.06em; /* brings the o's closer, like a custom wordmark */
  display: inline-block;
}

/* Desktop nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.76);
  padding: 0.35rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #1a1a1a;
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #000000;
  color: #f5f0e6;
  font-weight: 500;
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover,
.nav-link-cta:focus-visible {
  background: #171717;
}

/* Mobile toggle */

.nav-toggle {
  display: none; /* hidden on desktop */
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #000000;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 4px;
}

/* -------------------------------------------------------
   LAYOUT
   ------------------------------------------------------- */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* -------------------------------------------------------
   HERO
   ------------------------------------------------------- */

.hero {
  padding: 0.5rem 0 0.5rem;
}

.hero-content {
  max-width: 100%;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Blinking cursor for typed hero text */
.hero-typing::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.8s steps(2, start) infinite;
  opacity: 0.7;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media (min-width: 1024px) {
  .hero h1 {
    white-space: nowrap;
  }
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 40rem;
  margin-top: 1.25rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero highlights under main heading */

.hero-highlights {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  font-size: 0.9rem;
}

.hero-highlight-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

/* -------------------------------------------------------
   BUTTONS
   ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #000000;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn.primary {
  background: #000000;
  color: #ffffff;
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: #000000;
}

.btn.ghost:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn.full {
  width: 100%;
}

/* -------------------------------------------------------
   SECTIONS / CARDS
   ------------------------------------------------------- */

.section {
  padding: 2.5rem 0;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-light {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  margin-top: 1rem;
}

.section-intro {
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------
   PARTNER CHIPS (legacy)
   ------------------------------------------------------- */

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.partner-card {
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px dashed rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  background: #ffffff;
}

/* -------------------------------------------------------
   PARTNER STRIP (home page)
   ------------------------------------------------------- */

.partner-strip {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.partner-strip-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.partner-strip-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.85rem;
}

.partner-strip-logos span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

/* -------------------------------------------------------
   WHY COCONUT / OUTCOMES
   ------------------------------------------------------- */

.why-cards .card,
.outcomes-cards .card {
  /* uses base .card styling */
}

.outcomes h2 {
  margin-bottom: 1.5rem;
}

.outcome-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* -------------------------------------------------------
   CONTACT SECTION – ENHANCED BRANDING (SIMPLIFIED LAYOUT)
   ------------------------------------------------------- */

/* Keep consistent with other sections */
.contact-section {
  margin-top: 3rem;
}

/* This section still lives inside <main>, but we give it its own vertical padding */
section#contact.contact-section {
  padding: 3.5rem 0;
}

/* Outer pill, centered within the same width as the rest of the site */
section#contact.contact-section .contact-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.75rem 2.25rem;
  border-radius: 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 253, 247, 0.96),
    rgba(245, 240, 230, 0.96)
  );
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.08);

  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

/* Align contact box more closely with other sections */
section#contact.contact-section .contact-inner {
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Subtle Coconut logo watermark */
section#contact.contact-section .contact-inner::before {
  content: "";
  position: absolute;
  right: 1.75rem;
  top: 1.75rem;
  width: 80px;
  height: 80px;
  background-image: url("assets/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.06;
  filter: grayscale(100%);
  pointer-events: none;
}

/* -------------- LEFT COLUMN -------------- */

section#contact.contact-section .contact-copy {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: relative;
  z-index: 1; /* above watermark */
}

section#contact.contact-section .contact-copy h2 {
  position: relative;
  font-size: 2.1rem;
  line-height: 1.1;
  font-weight: 700;
  padding-left: 0;
}

/* Previously had a vertical accent line here – now removed
section#contact.contact-section .contact-copy h2::before {
  ...
}
*/

section#contact.contact-section .contact-copy p {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 38rem;
}

/* Branded bullet list with coconut-style markers */
section#contact.contact-section .contact-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

section#contact.contact-section .contact-bullets li {
  position: relative;
  padding-left: 1.5rem;
}

section#contact.contact-section .contact-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f8f5ec 0, #f8f5ec 40%, #7c563a 40%, #7c563a 100%);
  box-shadow: 0 0 0 1px rgba(52, 43, 36, 0.4);
}

section#contact.contact-section .contact-bullets li + li {
  margin-top: 0.45rem;
}

/* -------------- RIGHT COLUMN (CARD FORM) -------------- */

section#contact.contact-section .contact-form-wrapper {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem 2rem 1.7rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Tune to feel closer to cards */
section#contact.contact-section .contact-form-wrapper {
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

section#contact.contact-section .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

section#contact.contact-section .contact-form label {
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #111827;
}

/* Inputs & textarea */
section#contact.contact-section .contact-form input,
section#contact.contact-section .contact-form textarea,
section#contact.contact-section .contact-form select {
  border-radius: 10px;
  border: 1px solid #d4d4d4;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-color: #ffffff;
  resize: vertical;
}

section#contact.contact-section .contact-form input:focus,
section#contact.contact-section .contact-form textarea:focus,
section#contact.contact-section .contact-form select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
  outline: none;
  background-color: #f9fffe;
}

section#contact.contact-section .contact-form .btn.full {
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* direct email text */
section#contact.contact-section .direct-email {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.3rem;
}

section#contact.contact-section .direct-email a {
  color: #0f766e;
  text-decoration: none;
}

section#contact.contact-section .direct-email a:hover {
  text-decoration: underline;
}

/* Error styling for JS validation */
.input-error {
  border-color: #b91c1c !important;
  background-color: #fef2f2 !important;
}

.field-error {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

/* -------------------------------------------------------
   FOOTER SITEMAP
   ------------------------------------------------------- */

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
  font-size: 0.85rem;
  opacity: 0.95;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.footer-brand {
  max-width: 260px;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  line-height: 1.6;
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.75rem;
  flex: 1;
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li + li {
  margin-top: 0.3rem;
}

.footer-column a {
  text-decoration: none;
  color: #000000;
  opacity: 0.8;
}

.footer-column a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0.8;
}

/* -------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------- */

.about-hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 2.6rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

.about-main p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-main h2 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-highlight ul {
  list-style: none;
  margin-top: 0.5rem;
}

.about-highlight li {
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.about-highlight li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

/* -------------------------------------------------------
   SOLUTIONS / ACCORDION
   ------------------------------------------------------- */

/* Solutions section: make cards single-column so accordion expansion doesn't leave side gaps */
#services .cards {
  grid-template-columns: minmax(0, 1fr);
}

/* Accordion styling */
.solution-card {
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.solution-toggle {
  width: 100%;
  padding: 1.1rem 1.4rem;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.solution-card:hover .solution-toggle {
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}

.solution-toggle span {
  text-align: left;
}

.solution-toggle-icon {
  margin-left: 1rem;
  font-size: 1.3rem;
}

.solution-body {
  padding: 0 1.4rem 1.25rem;
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.solution-card.solution-open .solution-body {
  display: block;
}

.solution-more {
  margin-top: 0.75rem;
}

.solution-more a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #000000;
  font-weight: 600;
}

.solution-more a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------- */

@media (max-width: 900px) {
  section#contact.contact-section {
    padding: 3.5rem 0;
  }

  section#contact.contact-section .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 2.4rem 1.6rem;
    gap: 2.5rem;
  }

  section#contact.contact-section .contact-inner::before {
    /* hide watermark on small screens */
    display: none;
  }

  section#contact.contact-section .contact-form-wrapper {
    padding: 1.8rem 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Header: show burger, dropdown nav */
  .header-inner {
    padding: 0.5rem 1rem;
  }

  .brand-word {
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .main-nav {
    position: absolute;
    inset-inline: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: #f5f0e6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .main-nav .nav-link {
    width: 100%;
  }

  .main-nav .nav-link-cta {
    align-self: stretch;
    text-align: center;
  }

  /* Animated burger → X */
  .site-header.is-open .nav-toggle-line:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle-line:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .hero {
    padding-top: 2.25rem;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}
