:root {
  --th-bg: #f6f8f7;
  --th-surface: #ffffff;
  --th-ink: #0f1620;
  --th-muted: #4c5a69;
  --th-accent: #0e5f5d;
  --th-accent-soft: #e2f0ec;
  --th-border: #dce3e8;
  --th-max: 1120px;
  --th-radius: 18px;
  --th-radius-sm: 12px;
  --th-shadow: 0 10px 28px rgba(10, 20, 30, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--th-ink);
  background: radial-gradient(1200px 420px at 20% -10%, #edf4f2 0%, var(--th-bg) 52%, var(--th-bg) 100%);
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.th-wrap { width: min(var(--th-max), 100% - 2rem); margin-inline: auto; }

.th-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(194, 155, 212, 0.95);
  border-bottom: 1px solid var(--th-border);
}

.th-nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.th-brand { text-decoration: none; font-weight: 800; color: var(--th-ink); font-size: 1.85rem; letter-spacing: 0.01em; }

.th-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.th-nav-list li a {
  text-decoration: none;
  color: var(--th-ink);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.th-nav-list li a.is-active,
.th-nav-list li a:hover {
  background: #ffffff;
  border: 1px solid var(--th-border);
}

.th-main { padding: 2rem 0 3.2rem; }
.th-page-content { display: grid; gap: 1.2rem; }

.th-hero {
  background: linear-gradient(140deg, #ffffff 0%, #f0f7f4 100%);
  border: 1px solid var(--th-border);
  border-radius: 24px;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  box-shadow: var(--th-shadow);
}

.th-kicker {
  margin: 0 0 0.55rem;
  color: var(--th-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
}

.th-title {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(2rem, 5vw, 3.45rem);
  letter-spacing: -0.02em;
}

.th-sub {
  max-width: 760px;
  color: var(--th-muted);
  font-size: 1.05rem;
  margin: 0.85rem 0 0;
}

.th-hero-image-wrap {
  margin-top: 1.1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--th-border);
}

.th-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.th-btns { margin-top: 1.15rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

.th-btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.67rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--th-border);
  font-weight: 700;
  font-size: 0.94rem;
}

.th-btn--primary { color: #ffffff; background: var(--th-accent); border-color: var(--th-accent); }
.th-btn--ghost { color: var(--th-ink); background: #ffffff; }

.th-section-title { margin: 1.1rem 0 0.45rem; font-size: clamp(1.25rem, 2.5vw, 1.7rem); }

.th-flare-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.th-flare-strip span {
  display: inline-flex;
  align-items: center;
  background: #fff4dd;
  color: #6f4c13;
  border: 1px solid #f0d9a5;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 0.42rem 0.72rem;
}

.th-quote-card {
  background: linear-gradient(120deg, #0e5f5d 0%, #1f7a77 100%);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  box-shadow: var(--th-shadow);
}

.th-quote-card p {
  margin: 0;
  color: #f1fffd;
  font-size: 1.04rem;
  line-height: 1.55;
  font-weight: 600;
}

.th-photo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  grid-auto-flow: dense;
}

.th-photo-card {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--th-border);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(12, 18, 28, 0.08);
}

.th-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.85rem 0.72rem 0.68rem;
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0) 0%, rgba(8, 14, 24, 0.8) 58%, rgba(8, 14, 24, 0.92) 100%);
}

.th-photo-card figcaption a {
  color: inherit;
  text-decoration: none;
}

.th-photo-card figcaption a:hover {
  text-decoration: underline;
}

.th-photo-card--tall {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}

.th-photo-card--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.th-stories-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--th-border);
  box-shadow: 0 3px 10px rgba(12, 18, 28, 0.08);
  max-width: 860px;
  margin-inline: auto;
}

.th-stories-track {
  display: flex;
  gap: 0;
  width: 100%;
  transition: transform 420ms ease;
}

.th-stories-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

.th-stories-slide img {
  display: block;
  width: 100%;
  height: clamp(320px, 48vw, 500px);
  object-fit: cover;
  object-position: center;
}

.th-stories-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(10, 18, 30, 0.55);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.th-stories-arrow:hover {
  background: rgba(10, 18, 30, 0.75);
}

.th-stories-arrow--prev {
  left: 0.6rem;
}

.th-stories-arrow--next {
  right: 0.6rem;
}

.th-stories-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.82rem 0.7rem 0.65rem;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0) 0%, rgba(8, 14, 24, 0.82) 62%, rgba(8, 14, 24, 0.94) 100%);
}

.th-stories-dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 4;
}

.th-stories-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.th-stories-dot.is-active {
  width: 22px;
  background: #ffffff;
}

.th-photo-wall--uniform {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.th-photo-wall--uniform .th-photo-card,
.th-photo-wall--uniform .th-photo-card--wide,
.th-photo-wall--uniform .th-photo-card--tall {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 4 / 3;
}

.th-photo-card > a {
  display: block;
  width: 100%;
  height: 100%;
}

.th-photo-card > a img {
  transition: transform 260ms ease;
}

.th-photo-card:hover > a img {
  transform: scale(1.03);
}

.th-grid { display: grid; gap: 1rem; }
.th-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.th-featured-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 0;
  background: transparent;
  padding: 0.95rem 2.25rem;
}

.th-featured-track {
  display: flex;
  transition: transform 420ms ease;
}

.th-featured-slide {
  flex: 0 0 33.3333%;
  min-width: 33.3333%;
  padding: 0 0.45rem;
}

.th-featured-slide .th-card {
  height: 100%;
}

.th-featured-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--th-border);
  background: #ffffff;
  color: var(--th-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(12, 18, 28, 0.08);
}

.th-featured-arrow:hover {
  background: #f7fafb;
}

.th-featured-arrow--prev { left: 0.4rem; }
.th-featured-arrow--next { right: 0.4rem; }

.th-featured-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.th-featured-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #c7d2db;
  cursor: pointer;
}

.th-featured-dot.is-active {
  width: 22px;
  background: var(--th-accent);
}

.th-contact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.th-contact-tile {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  box-shadow: 0 2px 8px rgba(12, 18, 28, 0.04);
  text-align: center;
  padding: 1.2rem 1rem;
}

.th-contact-tile__icon {
  width: auto;
  height: auto;
  margin: 0 auto 0.45rem;
  border: 0;
  background: transparent;
  color: var(--th-accent);
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.th-contact-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 1.22rem;
  line-height: 1.3;
}

.th-contact-tile p {
  margin: 0;
  color: var(--th-muted);
  font-size: 1rem;
}

.th-contact-tile a {
  color: inherit;
  text-decoration: none;
}

.th-contact-tile a:hover {
  text-decoration: underline;
}

.th-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(12, 18, 28, 0.04);
}

.th-card-media {
  margin: -1rem -1rem 0.8rem;
  border-bottom: 1px solid var(--th-border);
}

.th-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #eef2f6;
}

.th-tag {
  display: inline-flex;
  background: var(--th-accent-soft);
  color: var(--th-accent);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.th-card h3 { margin: 0 0 0.4rem; line-height: 1.35; font-size: 1.04rem; }
.th-card p { margin: 0 0 0.8rem; color: var(--th-muted); font-size: 0.93rem; }

.th-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.th-list li a {
  display: block;
  text-decoration: none;
  color: var(--th-ink);
  background: #ffffff;
  border: 1px solid var(--th-border);
  border-radius: 12px;
  padding: 0.74rem 0.8rem;
  font-weight: 600;
}

.th-list li a:hover {
  border-color: #c9d4dc;
  transform: translateY(-1px);
}

.th-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.th-metric {
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-sm);
  background: #ffffff;
  padding: 0.85rem;
}

.th-metric strong { display: block; line-height: 1; margin-bottom: 0.36rem; font-size: 1.36rem; }

.th-site-footer {
  border-top: 1px solid var(--th-border);
  padding: 1.2rem 0 2.1rem;
  color: var(--th-muted);
  font-size: 0.92rem;
}

/* Form styling aligned to theme design tokens */
.wpforms-container-full {
  margin: 0;
}

.wpforms-container-full .wpforms-form {
  background: linear-gradient(140deg, #ffffff 0%, #f0f7f4 100%);
  border: 1px solid var(--th-border);
  border-radius: 24px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--th-shadow);
}

.wpforms-container-full .wpforms-field-label {
  color: var(--th-ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.wpforms-container-full .wpforms-required-label {
  color: #c73535;
  font-weight: 800;
}

.wpforms-container-full input[type='text'],
.wpforms-container-full input[type='email'],
.wpforms-container-full input[type='url'],
.wpforms-container-full input[type='tel'],
.wpforms-container-full input[type='number'],
.wpforms-container-full textarea,
.wpforms-container-full select {
  width: 100%;
  background: #ffffff;
  color: var(--th-ink);
  border: 1px solid var(--th-border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  min-height: 52px;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.wpforms-container-full textarea {
  min-height: 180px;
  resize: vertical;
}

.wpforms-container-full input::placeholder,
.wpforms-container-full textarea::placeholder {
  color: #77889a;
}

.wpforms-container-full input:focus,
.wpforms-container-full textarea:focus,
.wpforms-container-full select:focus {
  outline: none;
  border-color: var(--th-accent);
  box-shadow: 0 0 0 3px rgba(14, 95, 93, 0.18);
  background: #ffffff;
}

.wpforms-container-full .wpforms-field {
  padding: 0;
  margin-bottom: 1.05rem;
}

.wpforms-container-full .wpforms-submit-container {
  padding-top: 0.35rem;
}

.wpforms-container-full button[type='submit'],
.wpforms-container-full .wpforms-submit {
  appearance: none;
  border: 1px solid var(--th-accent);
  background: var(--th-accent);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.wpforms-container-full button[type='submit']:hover,
.wpforms-container-full .wpforms-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(14, 95, 93, 0.24);
}

.wpforms-container-full button[type='submit']:active,
.wpforms-container-full .wpforms-submit:active {
  transform: translateY(0);
}

.wpforms-container-full .wpforms-error {
  color: #b4232d;
  font-size: 0.86rem;
  margin-top: 0.36rem;
}

.wpforms-container-full input.wpforms-error,
.wpforms-container-full textarea.wpforms-error,
.wpforms-container-full select.wpforms-error {
  border-color: #d64550;
  box-shadow: 0 0 0 3px rgba(214, 69, 80, 0.15);
}

.wpforms-container-full .wpforms-confirmation-container-full {
  border: 1px solid #b9dbce;
  background: #edf8f3;
  color: #22573f;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

/* Fallback styling for standard form markup outside WPForms */
.th-page-content form {
  background: linear-gradient(140deg, #ffffff 0%, #f0f7f4 100%);
  border: 1px solid var(--th-border);
  border-radius: 24px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--th-shadow);
}

.th-page-content form label {
  display: block;
  color: var(--th-ink);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.th-page-content form input[type='text'],
.th-page-content form input[type='email'],
.th-page-content form input[type='url'],
.th-page-content form input[type='tel'],
.th-page-content form textarea,
.th-page-content form select {
  width: 100%;
  background: #ffffff;
  color: var(--th-ink);
  border: 1px solid var(--th-border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  min-height: 52px;
  font: inherit;
  margin-bottom: 1rem;
}

.th-page-content form textarea {
  min-height: 180px;
  resize: vertical;
}

/* Quote styling to match preview: full-width block with left bar and serif italic text */
.th-page-content blockquote,
.wp-block-quote {
  margin: 1.2rem 0;
  padding: 1.05rem 1.25rem;
  background: var(--th-accent-soft);
  border-left: 6px solid var(--th-ink);
  color: var(--th-ink);
  font-size: 1.12rem;
  line-height: 1.45;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
}

.th-page-content blockquote p,
.wp-block-quote p {
  margin: 0;
}

.th-page-content form input:focus,
.th-page-content form textarea:focus,
.th-page-content form select:focus {
  outline: none;
  border-color: var(--th-accent);
  box-shadow: 0 0 0 3px rgba(14, 95, 93, 0.18);
}

.th-page-content form button[type='submit'],
.th-page-content form input[type='submit'] {
  border: 1px solid var(--th-accent);
  background: var(--th-accent);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 980px) {
  .th-grid--3,
  .th-metrics { grid-template-columns: 1fr; }
  .th-photo-wall { grid-template-columns: 1fr 1fr; }
  .th-photo-wall--uniform { grid-template-columns: 1fr 1fr; }
  .th-photo-card--wide { grid-column: auto; }
  .th-photo-card--tall { grid-row: auto; }
  .th-photo-card,
  .th-photo-card--wide,
  .th-photo-card--tall { aspect-ratio: 4 / 3; }
  .th-nav-list { gap: 0.12rem; flex-wrap: wrap; justify-content: flex-end; }
  .th-featured-slide {
    flex: 0 0 50%;
    min-width: 50%;
  }
  .th-contact-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .th-photo-wall--uniform { grid-template-columns: 1fr; }
  .th-featured-carousel {
    padding: 0.95rem 2rem;
  }
  .th-featured-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .th-contact-strip {
    grid-template-columns: 1fr;
  }
  .th-contact-tile h3 {
    font-size: 1.15rem;
  }
  .th-contact-tile p {
    font-size: 0.95rem;
  }
}
