/* Cotswolds Growth Partners — Design System */

:root {
  --stone-50: #f8f6f3;
  --stone-100: #ede9e3;
  --stone-200: #d9d3ca;
  --stone-300: #c4bcb0;
  --stone-600: #6b6359;
  --stone-700: #4a443c;
  --stone-800: #3d3832;
  --stone-900: #2a2622;

  --green-950: #0f1f18;
  --green-900: #1a3428;
  --green-800: #234a38;
  --green-700: #2d5c47;
  --green-600: #3a7359;
  --green-500: #4a8f6f;

  --accent: #a67c52;
  --accent-light: #c9a882;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 72rem;
  --nav-height: 4.5rem;
  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 3px rgba(42, 38, 34, 0.06);
  --shadow-md: 0 4px 20px rgba(42, 38, 34, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 38, 34, 0.1);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--stone-800);
  background-color: var(--stone-50);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > .site-footer {
  margin-top: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-900);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--stone-900);
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p + p { margin-top: 1rem; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--stone {
  background-color: var(--stone-100);
}

.section--green {
  background-color: var(--green-900);
  color: var(--stone-100);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--white);
}

.section--green p {
  color: var(--stone-200);
}

.section-header {
  max-width: 42rem;
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.section--green .section-label {
  color: var(--accent-light);
}

.section-intro {
  font-size: 1.1875rem;
  color: var(--stone-600);
  margin-top: 1rem;
}

.section--green .section-intro {
  color: var(--stone-200);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.btn--primary:hover {
  background-color: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}

.btn--secondary:hover {
  background-color: var(--green-800);
  color: var(--white);
}

.btn--light {
  background-color: var(--white);
  color: var(--green-900);
  border-color: var(--white);
}

.btn--light:hover {
  background-color: var(--stone-100);
  border-color: var(--stone-100);
  color: var(--green-900);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 246, 243, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 211, 202, 0.5);
  height: var(--nav-height);
  box-shadow: 0 4px 30px rgba(42, 38, 34, 0.01);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--stone-900);
  letter-spacing: -0.02em;
}

.logo__tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.logo:hover .logo__name {
  color: var(--green-800);
}

.site-header .logo {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stone-700);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--green-800);
}

.nav__cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--stone-800);
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, var(--stone-50) 0%, var(--stone-100) 100%);
}

.hero__content {
  max-width: 44rem;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 1.5rem;
}

.hero__label::before {
  content: "";
  width: 2rem;
  height: 1px;
  background-color: var(--accent);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero__subline {
  font-size: 1.25rem;
  color: var(--stone-600);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__image {
  display: block;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, var(--stone-50) 0%, var(--stone-100) 100%);
  border-bottom: 1px solid var(--stone-200);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero__intro {
  font-size: 1.1875rem;
  color: var(--stone-600);
  max-width: 40rem;
}

.page-hero__promise {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.4375rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--stone-900);
  max-width: 40rem;
}

.page-hero__note {
  margin-top: 1.25rem;
  color: var(--stone-600);
  max-width: 38rem;
  border-left: 2px solid var(--green-600);
  padding-left: 1rem;
}

/* Problem block */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.problem-grid__stat {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  color: var(--green-800);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.problem-grid__stat-label {
  font-size: 1rem;
  color: var(--stone-600);
}

/* Engine / Pillars */
.engine-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.engine-steps::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, var(--stone-200), var(--green-600), var(--stone-200));
}

.engine-step {
  text-align: center;
  position: relative;
}

.engine-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--stone-200);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--green-800);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.engine-step--featured .engine-step__number {
  background-color: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}

.engine-step h3 {
  margin-bottom: 0.75rem;
}

.engine-step p {
  font-size: 0.9375rem;
  color: var(--stone-600);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  box-shadow: 0 20px 45px rgba(42, 38, 34, 0.05);
  transform: translateY(-4px);
}

.card .fd-viewport-screenshot {
  height: 200px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card .fd-viewport-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .fd-viewport-screenshot img {
  transform: scale(1.04);
}

.card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card__result {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--green-800);
  line-height: 1.4;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--stone-200);
}

.card p {
  font-size: 0.9375rem;
  color: var(--stone-600);
  margin-bottom: 1.25rem;
}

.card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.card__link::after {
  content: "→";
  transition: transform var(--transition);
}

.card:hover .card__link::after {
  transform: translateX(3px);
}

/* Service pillars */
.pillar {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--stone-200);
}

.pillar:last-child {
  border-bottom: none;
}

.pillar--featured {
  background-color: var(--white);
  margin: 0 -1.5rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(42, 38, 34, 0.03);
}

.pillar--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--green-600));
}

.pillar__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--green-800);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.pillar__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--stone-200);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pillar h2 {
  margin-bottom: 0.5rem;
}

.pillar__subtitle {
  font-size: 1rem;
  color: var(--stone-600);
  font-style: italic;
}

.pillar__content p {
  color: var(--stone-700);
}

.pillar__features {
  list-style: none;
  margin-top: 1.5rem;
}

.pillar__features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--stone-700);
}

.pillar__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green-600);
}

/* Case study detail */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
  margin-bottom: 3rem;
}

.case-meta__item {
  flex: 1;
  min-width: 10rem;
}

.case-meta__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 0.375rem;
}

.case-meta__value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--stone-900);
}

.case-section {
  margin-bottom: 3rem;
}

.case-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--green-800);
}

.result-highlight {
  background-color: var(--green-900);
  color: var(--stone-100);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin-top: 3rem;
}

.result-highlight h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.result-highlight p {
  color: var(--stone-200);
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.result-metric__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.result-metric__label {
  font-size: 0.875rem;
  color: var(--stone-300);
}

.case-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--stone-600);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.values-list {
  list-style: none;
}

.values-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--stone-200);
}

.values-list li:first-child {
  padding-top: 0;
}

.values-list h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.values-list p {
  font-size: 0.9375rem;
  color: var(--stone-600);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--stone-600);
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--stone-200);
  padding-top: 1.25rem;
}

/* Contact — what to expect */
.contact-info .expect-lead {
  margin-bottom: 0.75rem;
}

.expect-list {
  list-style: none;
  margin: 0 0 2rem;
}

.expect-list li {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.4;
  color: var(--stone-900);
  padding: 0.5rem 0;
}

.expect-list__num {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green-600);
  flex-shrink: 0;
}

.expect-callout {
  background-color: var(--stone-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.contact-info .expect-callout p {
  margin-bottom: 0;
}

/* Contact page rhythm */
.page-contact .page-hero {
  padding-bottom: 4.5rem;
}

.contact-details__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 0.25rem;
}

.contact-details a {
  font-size: 1.0625rem;
  color: var(--green-800);
  font-weight: 600;
}

.booking-card {
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.booking-card h3 {
  margin-bottom: 0.75rem;
}

.booking-card > p {
  color: var(--stone-600);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.cal-embed {
  min-height: 28rem;
  background-color: var(--stone-50);
  border: 1px dashed var(--stone-300);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}

.cal-embed p {
  color: var(--stone-600);
  font-size: 0.875rem;
}

/* CTA Band */
.cta-band {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band p {
  font-size: 1.125rem;
  color: var(--stone-200);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background-color: var(--stone-900);
  color: var(--stone-300);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.footer-main p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 22rem;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
  }

  .footer-main .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-main .footer-socials {
    justify-content: center;
  }
}

.footer-email {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--stone-300);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.footer-email:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-brand .logo__name {
  color: var(--white);
  font-size: 1.25rem;
}

.footer-brand .logo__tag {
  color: var(--stone-400, var(--stone-600));
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 20rem;
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-400, var(--stone-600));
  margin-bottom: 1.25rem;
}

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

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--stone-300);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: var(--stone-600);
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Problem section lead lines (home) */
.problem-lead {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--stone-800);
  margin-top: 1.25rem;
}

/* About page rhythm */
.page-about .page-hero {
  padding-bottom: 4.5rem;
}

.page-about .about-grid {
  gap: 5rem;
}

.page-about .about-grid h2 {
  margin-bottom: 1.25rem;
}

.about-grid__tagline {
  margin-top: 1.5rem;
  color: var(--green-700);
  font-style: italic;
}

.page-about .values-list li {
  padding: 2.25rem 0;
}

.page-about .values-list li:first-child {
  padding-top: 0;
}

/* Coming-soon dialog */
.cs-dialog {
  margin: auto;
  max-width: 26rem;
  width: calc(100% - 3rem);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background-color: var(--stone-50);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.cs-dialog::backdrop {
  background-color: rgba(26, 52, 40, 0.45);
}

.cs-dialog h3 {
  margin-bottom: 0.75rem;
}

.cs-dialog > p:not(.section-label) {
  color: var(--stone-600);
  font-size: 0.9375rem;
}

.cs-dialog__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .problem-grid,
  .about-grid,
  .contact-grid,
  .pillar {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-about .about-grid {
    gap: 3rem;
  }

  .engine-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .engine-steps::before {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .result-metrics {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pillar--featured {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .nav__list {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav__cta {
    margin-left: auto;
    margin-right: 0.75rem;
  }

  .nav__cta .btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .logo__mark {
    width: 30px;
    height: 30px;
  }

  .nav--open .nav__list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--stone-50);
    border-bottom: 1px solid var(--stone-200);
    padding: 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .nav--open .nav__list li {
    width: 100%;
  }

  .nav--open .nav__link {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--stone-200);
  }

  .nav {
    position: relative;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .booking-card {
    padding: 1.5rem 1rem;
  }

  .cal-embed {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }

  .cs-dialog {
    padding: 1.75rem 1.5rem;
  }
}

/* ============================================================
   Interactive case study — FrontDoor / BeforeAfter
   Extends the tokens in :root above; one self-contained block.
   ============================================================ */

:root {
  --fd-frame-border: var(--stone-200);
  --fd-chrome-bg: var(--stone-100);
  --fd-viewport-bg: var(--white);
  /* The system had no "problem/negative" hue — muted terracotta,
     warm enough to sit with stone/green without alarming red. */
  --fd-leak: #b4472e;
  --fd-leak-bg: rgba(180, 71, 46, 0.08);
  --fd-leak-border: rgba(180, 71, 46, 0.28);
  --fd-focus-ring: var(--green-600);
}

/* --- Global keyboard focus (quality floor: was missing site-wide) --- */
:focus-visible {
  outline: 2px solid var(--fd-focus-ring);
  outline-offset: 2px;
}

/* --- Step scaffolding --- */
.cs-step__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.9rem;
}
.section--green .cs-step__eyebrow { color: var(--accent-light); }

/* Scroll animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.fade-in-up--active {
  opacity: 1;
  transform: translateY(0);
}

/* High-fidelity screenshot viewport for "After" comparisons */
.fd-viewport-screenshot {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(42, 38, 34, 0.08);
  box-shadow: var(--shadow-md);
  background: var(--white);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fd-viewport-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer social icons */
.footer-socials {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--stone-300);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-socials svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
