/* ===================================================
   STYLES FOR ORCHID AND OAK
   Organized top to bottom:
   1. Colors and basics
   2. Header, logo, menu, buttons
   3. Page sections (in the order they appear on pages)
   4. Interactive pieces (FAQ, quiz, calculator)
   5. Movement (transitions, scroll animations, hover)
   6. Phone sizes (always LAST)
   =================================================== */


/* ===================================================
   1. COLORS AND BASICS
   =================================================== */

/* COLORS: change a color here and it changes everywhere */
:root {
  --green: #1F3A2E;
  --plum: #6B2D5C;
  --plum-dark: #4A1D3F;
  --light: #F3F6F2;
  --text: #3B4842;
  --line: #E4E8E3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* Big headline (top of each page) */
h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 56px;
  color: var(--green);
  line-height: 1.1;
}

/* Section headlines */
h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  color: var(--green);
  max-width: 700px;
  margin: 12px 0 40px;
}

/* Box titles */
h3 {
  font-size: 20px;
  color: var(--green);
  margin: 0 0 8px;
}

/* Keeps content from stretching too wide on big screens */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Small purple words above headlines */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0;
}

/* Larger intro paragraph */
.lead {
  font-size: 19px;
  max-width: 600px;
  margin-bottom: 32px;
}


/* ===================================================
   2. HEADER, LOGO, MENU, BUTTONS
   =================================================== */

/* Top strip: stays at the top when scrolling */
header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

/* Logo on the left, menu on the right, lined up with the page */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo img {
  height: 110px;
  width: auto;
  display: block;
}

/* ----- Menu ----- */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

nav a {
  padding: 12px 14px;
  font-weight: 500;
  color: #1E2A24;
  text-decoration: none;
}

nav a:hover {
  color: var(--plum);
}

/* Highlights the page you're on */
nav a.active {
  color: var(--plum);
  font-weight: 600;
}

/* The last menu link ("Let's talk") is a purple button */
nav a:last-child {
  background: var(--plum);
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
}

nav a:last-child:hover {
  background: var(--plum-dark);
  color: white;
}

/* ----- Phone menu button (☰), hidden on computers ----- */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

/* The three lines */
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 16px 28px;
  margin: 0 8px 12px 0;
  background: var(--plum);
  color: white;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  text-decoration: none;
  border: 1.5px solid var(--plum);
  border-radius: 8px;
  cursor: pointer;
}

.btn:hover {
  background: var(--plum-dark);
}

/* White button with green outline */
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: white;
}

/* White button, for use on purple */
.btn-light {
  background: white;
  color: var(--plum);
  border-color: white;
}

.btn-light:hover {
  background: #F3E9F0;
  color: var(--plum-dark);
}

/* White-outline button, for use on purple */
.btn-outline-light {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--plum);
}


/* ===================================================
   3. PAGE SECTIONS
   =================================================== */

/* ----- Section basics ----- */
.section {
  padding: 96px 0;
}

/* Pale green background sections */
.section-light {
  background: var(--light);
}

/* Dark green background sections */
.section-dark {
  background: var(--green);
  color: #E3ECE6;
}

.section-dark h2 {
  color: white;
}

/* Space above a "See all..." button under a section */
.section-more {
  margin-top: 40px;
}

/* ----- Welcome (hero) section ----- */
.hero-section {
  background: var(--light);
  padding: 96px 0;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-text {
  flex: 999 1 520px;
}

/* The dark green box on the right */
.hero-card {
  flex: 1 1 340px;
  background: var(--green);
  color: #E3ECE6;
  border-radius: 16px;
  padding: 40px;
}

.hero-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  line-height: 1.25;
  color: white;
  margin-top: 0;
}

.hero-card li {
  margin-bottom: 10px;
}

.quiz-link {
  margin-top: 12px;
  font-size: 16px;
}

.quiz-link a {
  font-weight: 600;
}

/* ----- Page title banner (top of inside pages) ----- */
.page-banner {
  background: var(--light);
  padding: 80px 0;
}

/* ----- Boxes in rows (services on the home page, values on About) ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}

.card p {
  margin: 0;
}

/* Purple line across the top of each value box (About page) */
.value-card {
  border-top: 4px solid var(--plum);
}

/* ----- Two columns: words left, boxes right ----- */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.split-left {
  flex: 1 1 360px;
}

.split-right {
  flex: 999 1 480px;
}

/* ----- "Who we help" small boxes (home page) ----- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.mini-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
}

.mini-card h3 {
  font-size: 18px;
}

.mini-card p {
  margin: 0;
  font-size: 15px;
}

/* ----- Team teaser (home page) ----- */
.teaser {
  text-align: center;
}

.teaser h2,
.teaser .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ----- Detail rows (Services and Clients pages) ----- */
.service-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.service-row:first-child {
  border-top: none;
  padding-top: 0;
}

.service-row h2 {
  font-size: 32px;
  margin: 0 0 12px;
}

/* Checkmark bullet lists */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--plum);
  font-weight: 700;
}

/* ----- About page ----- */
/* Keeps the story at a comfortable reading width */
.story {
  max-width: 760px;
}

.story p {
  font-size: 18px;
}

/* "What's in a name" heading inside the story */
.story-subhead {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 30px;
  margin: 48px 0 12px;
}

/* Team photos: square, centered, green border, black and white */
.photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 4px solid var(--green);
  background: var(--line);
  filter: grayscale(100%);
  transition: filter 0.4s;
}

/* Photo fades to color when you hover */
.photo:hover {
  filter: grayscale(0%);
}

/* Clickable team cards */
.person-card {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.person-card .photo {
  margin-bottom: 16px;
}

/* Photo turns to color and the arrow nudges right on hover */
.person-card:hover .photo {
  filter: grayscale(0%);
}

.read-bio {
  color: var(--plum);
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s ease;
}

.person-card:hover .read-bio {
  transform: translateX(6px);
}

/* The bio pop-up window */
.bio-popup {
  max-width: 820px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  border: none;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

/* Darkens and blurs the page behind the pop-up */
.bio-popup::backdrop {
  background: rgba(23, 44, 35, 0.6);
  backdrop-filter: blur(4px);
}

/* Pop-up glides in when it opens */
.bio-popup[open] {
  animation: popup-in 0.35s ease;
}

/* Photo on the left, bio on the right (stacks on phones) */
.bio-popup-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  align-items: start;
}

/* Quote in the bio pop-up */
.bio-quote {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  line-height: 1.4;
  color: var(--green);
  border-left: 4px solid var(--plum);
  padding-left: 18px;
  margin: 24px 0;
}

/* "A few favorites" list in the bio pop-up */
.favorites-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 12px;
}

.favorites {
  list-style: none;
  padding: 18px 20px;
  margin: 0;
  background: var(--light);
  border-radius: 12px;
}

.favorites li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.favorites li:last-child {
  margin-bottom: 0;
}

.favorites strong {
  color: var(--green);
  white-space: nowrap;
}

.fav-icon {
  flex: none;
}

/* The × close button */
.close-popup {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  font-size: 32px;
  color: var(--green);
  cursor: pointer;
  border-radius: 50%;
}

.close-popup:hover {
  background: var(--light);
}

/* Title under each name, in purple */
.role {
  color: var(--plum);
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 12px;
}

/* ----- Contact page ----- */
.contact-link {
  color: white;
  font-size: 18px;
  text-decoration: none;
}

/* The white box the form sits in */
.form {
  background: white;
  color: #1E2A24;
  border-radius: 16px;
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* The titles above each box */
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* The boxes people type in */
.form input,
.form textarea {
  padding: 12px 14px;
  border: 1px solid #B9C3BD;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
}

/* Purple outline when someone clicks into a box */
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--plum);
  border-color: var(--plum);
}

/* Message box stretches across the full width */
.form .full {
  grid-column: 1 / -1;
}

.form button {
  justify-self: start;
}

/* Booking calendar */
.calendar-box {
  min-width: 320px;
  height: 720px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

/* ----- Purple call-to-action band ----- */
.cta-band {
  background: var(--plum);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 {
  color: white;
  margin: 0 auto 16px;
}

.cta-band p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 18px;
}

/* ----- Footer ----- */
footer {
  background: #172C23;
  color: #C5D2CA;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
}

footer a {
  color: #C5D2CA;
}

footer a:hover {
  color: white;
}


/* ===================================================
   4. INTERACTIVE PIECES
   =================================================== */

/* ----- FAQ dropdowns ----- */
.faq-list {
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

/* The question you click */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--green);
  position: relative;
}

/* Hide the browser's built-in arrow */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* The + sign on the right */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 400;
  color: var(--plum);
  transition: transform 0.3s ease;
}

/* Turns the + into an × when open */
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--plum);
}

.faq-answer {
  padding: 0 48px 24px 0;
}

/* The answer slides in when opened */
.faq-item[open] .faq-answer {
  animation: fade-in-up 0.35s ease;
}

/* ----- Quiz ----- */
.quiz-section {
  min-height: 80vh;
}

.quiz-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.quiz-intro .lead {
  margin: 0 auto;
}

/* The white quiz card */
.quiz-box {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 16px 40px rgba(31, 58, 46, 0.1);
  text-align: center;
}

/* Progress bar */
.quiz-progress {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 36px;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--plum);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.quiz-count {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 12px;
}

.quiz-question {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  line-height: 1.2;
  color: var(--green);
  margin: 0 0 32px;
}

/* Big Yes / No buttons */
.quiz-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quiz-buttons .btn {
  min-width: 140px;
  font-size: 18px;
  margin: 0;
}

/* Back / Start over */
.quiz-back {
  display: block;
  margin: 24px auto 0;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 12px;
}

.quiz-back:hover {
  color: var(--plum);
}

/* Each question/result slides in */
.quiz-animate {
  animation: fade-in-up 0.4s ease;
}

/* Result cards */
.results-list {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
  text-align: left;
}

.result-card {
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 20px rgba(31, 58, 46, 0.1);
}

.result-card p {
  margin: 0 0 6px;
}

.result-card span {
  color: var(--plum);
  font-weight: 600;
  font-size: 15px;
}

/* ----- Calculator ----- */
/* Sliders on the left, results on the right */
.calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-weight: 500;
  color: var(--green);
}

.calc-value {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--plum);
}

/* The sliders themselves */
.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--plum);
  height: 6px;
  cursor: pointer;
}

/* The dark green results box (stays in view while sliding) */
.calc-results {
  background: var(--green);
  color: #E3ECE6;
  border-radius: 20px;
  padding: 44px;
  position: sticky;
  top: 160px;
}

.calc-result-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #C9A6C0;
  margin: 0 0 4px;
}

.calc-big {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  line-height: 1.1;
  color: white;
  margin: 0 0 24px;
}

.calc-small {
  font-size: 14px;
  margin: -18px 0 24px;
}

.calc-savings {
  color: #E8C9DF;
}

.calc-pitch {
  margin: 8px 0 24px;
  font-size: 17px;
}


/* ===================================================
   5. MOVEMENT
   =================================================== */

/* ----- Smooth fade between pages ----- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.3s ease forwards;
}

::view-transition-new(root) {
  animation: fade-in-up 0.45s ease;
}

/* ----- Scroll animations (script.js adds these name tags) ----- */
/* Starting point: invisible and a little lower */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Once it scrolls into view: visible and in its normal spot */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Hover effects ----- */
/* Boxes lift up and get a soft shadow */
.card,
.mini-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease;
}

.card.visible:hover,
.mini-card.visible:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(31, 58, 46, 0.12);
}

/* Buttons lift slightly */
.btn,
nav a:last-child {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.7s ease;
}

.btn:hover,
nav a:last-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 45, 92, 0.25);
}

/* ----- Movement shapes used above ----- */
@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes menu-slide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Stay still for people who turn off motion in their settings ----- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ===================================================
   6. PHONE SIZES (keep this section LAST)
   =================================================== */

/* Phones and small tablets: tuck the menu behind the ☰ button */
@media (max-width: 760px) {

  .menu-toggle {
    display: flex;
  }

  /* Hide the menu until the button is tapped */
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-bottom: 8px;
  }

  /* When open: show the menu and slide it down */
  header.menu-open nav {
    display: flex;
    animation: menu-slide 0.3s ease;
  }

  nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  /* "Let's talk" button stretches across */
  nav a:last-child {
    text-align: center;
    margin-top: 8px;
    border-bottom: none;
  }

  /* Turn the three lines into an X when open */
  header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Phones: smaller headlines, spacing and logo */
@media (max-width: 700px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }

  .section,
  .hero-section,
  .page-banner { padding: 64px 0; }

  .container { padding: 0 20px; }
  .logo img { height: 80px; }

  .quiz-box,
  .calc-results,
  .bio-popup { padding: 32px 24px; }
  .calc-results { position: static; }
  .calc-big { font-size: 42px; }
}