/* ========= Base ========= */
:root {
  --section-max-width: 9999px;
  --spx-stopper-max: 9999px;
  --spx-stopper-min: 0px;
  --browser-zoom: 1;
  --mint-50: #e2f6f0;
  --mint-100: #d2f0ea;
  --mint-200: #c2eae3;
  --mint-300: #b0e3db;
  --mint-400: #a0ddd4;
  --sage-50: #eef2ef;
  --sage-100: #e9efec;
  --sage-200: #e2ebe7;
  --ink: #1c1c1c;
  --ink-60: rgba(28, 28, 28, 0.6);
  --ink-40: rgba(28, 28, 28, 0.4);
  --border: #e6e6e6;
  --bg: #ffffff;
  --max: 1200px;
  --font_0: normal normal normal 22px/1.4em "Playfair Display", serif; /* alt for Didot */
  --font_1: normal normal normal 16px/1.4em "Roboto Condensed", sans-serif; /* alt for DIN Next */
  --font_3: normal normal normal 60px/1.4em "Montserrat", sans-serif; /* alt for Proxima Nova */
  --font_4: normal normal normal 49px/1.4em "Libre Baskerville", serif;
  --font_7: normal normal normal 16px/1.4em "Lato", sans-serif; /* alt for Avenir LT */
  --font_8: normal normal normal 16px/1.4em "Open Sans", sans-serif; /* alt for Avenir LT */
  --wix-ads-height: 0px;
  --sticky-offset: 0px;
  --wix-ads-top-height: 0px;
  --site-width: 980px;
  --above-all-z-index: 100000;
  --portals-z-index: 100001;
  --wix-opt-in-direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --minViewportSize: 320;
  --maxViewportSize: 1920;
  --theme-spx-ratio: 1px;
  --full-viewport: 100 * var(--one-unit) * var(--browser-zoom);
  --scaling-factor: min(var(--full-viewport), var(--section-max-width));
  --customScaleViewportLimit: clamp(
    var(--minViewportSize) * 1px,
    var(--full-viewport),
    min(var(--section-max-width), var(--maxViewportSize) * 1px)
  );
}

.libre-baskerville-regular {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-style: normal;
}

/* .libre-baskerville-bold {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-style: normal;
} */

.libre-baskerville-regular-italic {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-style: italic;
}

body {
  background-color: var(--wst-color-fill-background-primary);
  color: var(--wst-color-text-primary);
}

h1,
h2,
h3 {
  color: var(--wst-color-title);
}

.btn-primary {
  background: var(--wst-button-color-fill-primary);
  border: 1px solid var(--wst-button-color-border-primary);
  color: var(--wst-button-color-text-primary);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: var(--wst-button-color-fill-primary-hover);
  border-color: var(--wst-button-color-border-primary-hover);
  color: var(--wst-button-color-text-primary-hover);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Playfair Display", "libre baskerville", "Source Sans 3",
    system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.display,
.h1,
.h2,
.h3 {
  font-family: "Playfair Display", "libre baskerville", "Source Sans 3",
    system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.display {
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 600;
}
.h1 {
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 600;
}
.h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
}
.h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
}
.italic {
  font-style: italic;
}

p {
  margin: 0 0 1rem;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: wavy;
  color: #71a39a;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}
.narrow {
  max-width: 900px;
}
.center {
  text-align: center;
}
.max-650 {
  max-width: 650px;
  margin-inline: auto;
}
.max-750 {
  max-width: 750px;
  margin-inline: auto;
}
.muted {
  color: var(--ink-60);
}
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-40);
  margin-bottom: 0.5rem;
}

/* ========= Header / Nav ========= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  font-family: "Playfair Display", "libre baskerville", "Source Sans 3",
    system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 22px;
  white-space: nowrap;
}
.menu {
  display: flex;
  gap: 28px;
  align-items: center;
}
.menu a {
  padding: 8px 0;
  position: relative;
}
.menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--mint-300);
}
.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  margin: 5px 0;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.mobile-menu a {
  padding: 10px 0;
}

/* ========= Hero ========= */
.hero {
  margin: 90px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 75vh;
}
.hero-left {
  background: var(--mint-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw 4vw;
}
.hero-inner {
  max-width: 600px;
}
.lead {
  font-size: 18px;
  color: var(--ink-60);
}
.down-arrow {
  font-size: 32px;
  margin-top: 24px;
}
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========= Services cards ========= */
.services-cards {
  margin: 90px;
  padding: 50px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* .card {
  padding: 48px 36px 56px;
  border-radius: 8px;
  border: 1px solid var(--border);
} */
.card h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--ink-60);
}
.card .btn {
  margin-top: 16px;
}

.step {
  font-size: 24px;
  color: var(--ink-40);
  margin: 0 0 10px;
}

/* ========= Blog preview ========= */
.blog-preview {
  padding: 70px 0;
}
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.post img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.post-body {
  padding: 18px;
}
.post-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  margin: 0 0 8px;
}
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-40);
  font-size: 14px;
}
.meta .like {
  margin-left: auto;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 18px;
}

/* ========= Page hero ========= */
.page-hero {
  padding: 80px 0 60px;
}
.page-hero.pale {
  background: var(--sage-50);
}

/* ========= About page grid ========= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  padding: 50px 0 90px;
}
.about-photo img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* ========= Services grid ========= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 30px 0 80px;
}
.svc {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

/* ========= CTA bar ========= */
.cta-bar {
  background: var(--mint-100);
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid #222;
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
}
.btn:hover {
  text-decoration: none;
}

/* ========= Contact ========= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 100px 0 100px;
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.map-placeholder {
  width: 100%;
  height: 500px;
  background: var(--sage-100);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-40);
}

/* ========= Footer ========= */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 18px;
}
.footer-nav a.active {
  text-decoration: underline;
}

/* ========= Blog masonry (simple) ========= */
.masonry {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.masonry .post.large img {
  aspect-ratio: 16 / 8;
}

/* ========= Utilities ========= */
.pale {
  background: var(--sage-50);
}

/* Desktop Menu */
.desktop-menu {
  display: flex;
  gap: 20px;
}

/* Hide hamburger + mobile menu on desktop */
.hamburger,
.mobile-menu {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .desktop-menu {
    display: none; /* hide desktop menu */
  }

  .hamburger {
    display: block; /* show hamburger */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
}

/* ========= Responsive ========= */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-right {
    order: -1;
    height: 42vh;
  }
  .cards,
  .posts,
  .services-grid,
  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .cards,
  .posts,
  .services-grid,
  .masonry {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== About Section ===== */

.about-section {
  margin: 90px;
  text-align: center;
  padding: 4rem 1rem 8rem; /* add bottom space for floating look */
  background: var(--sage-100, #e9efec);
  /* max-width: 1200px;  */
  /* prevent it from stretching too much */
}

.about-section h3 {
  font: var(--font_0, serif);
  font-style: italic;
  margin: 0;
  font-size: 1rem;
  color: var(--ink-60, rgba(28, 28, 28, 0.6));
}

.about-section h2 {
  font: var(--font_4, "Libre Baskerville", serif);
  margin: 0.5rem 0 1.5rem;
  font-size: 2.5rem;
  font-weight: normal;
  color: var(--ink, #1c1c1c);
}

.about-section p {
  max-width: 650px;
  margin: 0 auto 2rem;
  font: var(--font_8, "Open Sans", sans-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-60, rgba(28, 28, 28, 0.6));
}

.about-section .arrow-link {
  display: inline-block;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--ink, #1c1c1c);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.about-section .arrow-link:hover {
  transform: translateX(5px);
}

.about-section img {
  display: block;
  margin: 0 auto;
  width: 100%; /* always scale relative to parent */
  max-width: 400px; /* limit max size for large screens */
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* ===== About Page ===== */
.about-section {
  /* background: #f2f2f2; */
  text-align: center;
  /* padding: 60px 20px 60px; */
  /* normal padding, not extra */
  position: relative;
}

.about-section h3 {
  font-style: italic;
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.about-section h2 {
  font-size: 36px;
  margin: 0 0 20px;
  color: #222;
  font-family: "Playfair Display", serif;
}

.about-section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.about-section .arrow {
  margin: 20px 0;
  font-size: 20px;
  color: #666;
}

.about-image {
  margin: 40px auto -300px;
  /* image floats into the about section */
  width: 600px;
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  display: block;
}

.experience-section {
  background: var(--mint-100);
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;

  /* 👇 push section down so image doesn't overlap */
  margin-top: 320px;
  /* adjust slightly more than -300px */
}

/* ===== Experience Section ===== */
.experience-section {
  background: var(--mint-100);
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.experience-left h3,
.experience-right h3 {
  font-style: italic;
  margin: 0;
  font-size: 1rem;
  color: var(--ink-60);
}

.experience-left h2 {
  font: var(--font-0);
  font-size: 2rem;
  font-weight: normal;
  margin: 0.5rem 0 1.5rem;
}

.experience-left p {
  font-size: 1rem;
  color: var(--ink-60);
}

.experience-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-right li {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-60);
}

.experience-right strong {
  display: block;
  font-weight: bold;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2rem;
  background: #fff;
  font-size: 0.85rem;
  color: var(--ink-60);
}

/* Fix overlap of about-image with services section on index page */
.about-section + .services-cards {
  margin-top: 320px; /* compensate for -300px */
}

.services-cards .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

/* Card wrapper sets perspective */
.card-wrapper {
  perspective: 1000px;
}

.card {
  width: 100%;
  height: 360px;
  position: relative;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* ✅ Flip only the hovered card */
.card-wrapper:hover .card-inner {
  transform: rotateY(180deg);
}

/* Front & back */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid #888787;
}

/* Back side */
.card-back {
  transform: rotateY(180deg);
  font-size: 1rem;
}

/* Responsive text */
.step {
  font-size: 1.2rem;
  color: #999;
}

.h1 {
  font-size: 3rem;
  margin: 0.5rem 0;
}

h3 a:hover {
  text-decoration:  wavy; /* adds wavy underline */
  text-decoration-color: #303231;  /* makes underline the same hover color */
  color: #303231 !important;       /* text turns to this color */
}

@media (max-width: 768px) {
  .card {
    height: 320px;
  }
  .h1 {
    font-size: 1.2rem;
  }
  .step {
    font-size: 1rem;
  }
}

/* Card A - Soft Pink */
.card-a .card-front {
  background-color: rgb(226, 246, 205);
}
.card-a .card-back {
  background-color: rgb(198, 229, 166);
}

/* Card B - Mint Green */
.card-b .card-front {
  background-color: rgb(234, 234, 232);
}
.card-b .card-back {
  background-color: rgb(205, 205, 205);
}

/* Card C - Light Cream */
.card-c .card-front {
  background-color: rgb(207, 244, 236);
}
.card-c .card-back {
  background-color: rgb(150, 240, 220);
}

/* Card D - Lavender Blue */
.card-d .card-front {
  background-color: rgb(226, 246, 205);
}
.card-d .card-back {
  background-color: rgb(198, 229, 166);
}

/* Service Page */
.services-styled {
  display: flex;
  flex-direction: column;
  /* spacing between blocks */
}

.svc-block {
  text-align: center;
  padding: 100px 20px;
  background: #e9f9e4; /* light mint background, change per block */
}

.svc-num {
  display: block;
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.svc-title {
  font-size: 2.5rem;
  margin: 0 0 20px;
  font-family: "Libre Baskerville", serif;
  font-weight: normal;
  color: #111;
}

.svc-block p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Alternate background colors */
/* 1st, 4th, 7th... (mint) */
.svc-block:nth-child(4n + 1),
.svc-block:nth-child(4n) {
  background: rgb(226, 246, 205); /* light mint */
}

/* 2nd, 6th, 10th... (light grey) */
.svc-block:nth-child(4n + 2) {
  background: rgb(234, 234, 232); /* light grey */
}

/* 3rd, 7th, 11th... (aqua) */
.svc-block:nth-child(4n + 3) {
  background: rgb(207, 244, 236); /* aqua */
}

/* Responsive */
@media (max-width: 768px) {
  .svc-title {
    font-size: 2rem;
  }
  .svc-block {
    padding: 60px 15px;
  }
}
