/* ==========================================================================
   Editorial design style (Site Settings → Brand & design → Design style).
   Loaded after style.css + tsg-extra.css only on sites using this style, so
   nothing here touches the Classic look. Colours still come from the brand
   colour settings; this file changes type, shapes and section layouts.
   ========================================================================== */

:root {
  --font-heading:  'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --radius-card:   0;
  --radius-btn:    0;
  --radius-pill:   0;
  --radius-sm:     0;
  --radius-md:     0;
  --shadow-sm:     none;
  --shadow-card:   none;
  --shadow-hover:  none;
  --shadow-accent: none;
  --color-offwhite: #F3F0E8;
  --color-border:  #DDD8CC;
  --header-height: 96px;
}

/* ── Type ──────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-title {
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-title em,
.hero-headline .text-accent,
.page-hero-title em {
  font-style: italic;
  font-weight: 500;
}

/* Plain textures: no dot grid or diamond pattern. */
.texture-dots::before,
.texture-dots::after,
.faq-section::before { display: none; }

/* ── Section headers: left aligned, title left / intro right, ruled ─────── */
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 64px;
  align-items: end;
  text-align: left;
  max-width: none;
  margin: 0 0 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}
.section-header > * { grid-column: 1; }
.section-header .section-title { margin-bottom: 0; }
.section-header .section-subtitle {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
}
.section-dark .section-header,
.section-forest .section-header { border-bottom-color: rgba(255, 255, 255, 0.14); }

.section-tag,
.section-tag--light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  justify-self: start;
}
.section-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* ── Buttons: square, accent fill with dark text ───────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn-primary,
.btn-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-forest);
}
.btn-primary:hover,
.btn-accent:hover {
  background: var(--color-forest);
  border-color: var(--color-forest);
  color: #fff;
  transform: none;
  box-shadow: none;
}
.section-forest .btn-primary:hover,
.section-dark .btn-primary:hover,
.section-forest .btn-accent:hover,
.section-dark .btn-accent:hover,
.hero .btn-primary:hover,
.page-hero .btn-primary:hover,
.cta-final-section .btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--color-forest);
}
.btn svg { transition: transform var(--transition-base); }
.btn:hover svg { transform: translateX(3px); }

/* ── Header: always solid, ruled, no blur ──────────────────────────────── */
.site-header::before,
.site-header.scrolled::before,
body.tsg-solid-header .site-header::before {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid var(--color-border);
}
.nav-link,
.nav-dropdown-trigger {
  font-family: var(--font-body);
  font-weight: 500;
}
.tsg-text-logo .logo-elm { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; }
.tsg-text-logo .logo-landscaping { font-family: var(--font-body); }

/* ── Home hero: full-width photo with a left-to-right gradient. The photo,
   gradient and text all share one grid cell, so the gradient always covers
   the whole photo. ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  background: var(--color-forest);
  min-height: min(820px, calc(100vh - var(--header-height)));
}
.hero-bg,
.hero-overlay,
.hero .container { grid-column: 1; grid-row: 1; }
.hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(var(--color-forest-rgb), 0.94) 0%,
      rgba(var(--color-forest-rgb), 0.86) 30%,
      rgba(var(--color-forest-rgb), 0.45) 58%,
      rgba(var(--color-forest-rgb), 0.08) 85%),
    linear-gradient(0deg, rgba(var(--color-forest-rgb), 0.45) 0%, rgba(var(--color-forest-rgb), 0) 30%);
}

/* ── Inner page banners: two columns. Text on a solid panel (left 58%),
   photo on the right 42%; photo and tint share one grid cell. ── */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  align-items: stretch;
  background: var(--color-forest);
  min-height: 440px;
  padding: 0;
}
.page-hero--compact { min-height: 340px; }
.page-hero--tall { min-height: 560px; }

.hero-bg,
.hero-overlay,
.page-hero-bg,
.page-hero-overlay {
  position: relative;
  inset: auto;
}
.page-hero-bg,
.page-hero-overlay { grid-column: 2; grid-row: 1; }
.hero-bg img,
.page-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  transform: none;
}
.hero-overlay { z-index: 1; }
.page-hero-overlay {
  z-index: 1;
  background: rgba(var(--color-forest-rgb), 0.18);
}

/* Text column: lines up with the page container on the left. */
.page-hero .container { grid-column: 1; grid-row: 1; }
.hero .container,
.page-hero .container {
  z-index: 2;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  padding-left: max(var(--container-pad), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
  padding-right: clamp(32px, 5vw, 80px);
}
.page-hero .container { padding-top: 64px; padding-bottom: 64px; }

.hero-layout,
.hero-layout--single {
  grid-template-columns: 1fr;
  width: 100%;
  padding: 64px 0 72px;
}
.hero-content { width: 100%; max-width: 720px; }
.hero-headline {
  font-weight: 600;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-subtext { max-width: 600px; margin-bottom: 24px; }
.hero-social-proof { margin-bottom: 28px; }
.hero-badges {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  margin-bottom: 24px;
}
.hero-badge { font-family: var(--font-body); letter-spacing: 0.12em; }
.hero-badge-divider { color: var(--color-accent); }
.hero-avatar { border-radius: 50%; }
.scroll-indicator { display: none; }
/* Accent rule along the foot of the hero. */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--color-accent);
  z-index: 2;
}

.page-hero-content { max-width: 680px; }
.page-hero-title { font-weight: 600; letter-spacing: -0.02em; }

/* ── Trust bar: a dark band continuing the hero ────────────────────────── */
.trust-bar {
  border-bottom: 0;
  padding: 28px 0;
}
.trust-icon {
  background: none;
  border: 1px solid rgba(var(--color-accent-rgb), 0.5);
  border-radius: 50%;
}
.trust-text strong { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; }
.trust-bar.section-forest .trust-text strong,
.trust-bar.section-dark .trust-text strong { color: #fff; }
.trust-bar.section-forest .trust-text span,
.trust-bar.section-dark .trust-text span { color: rgba(255, 255, 255, 0.62); }
.trust-bar.section-forest .trust-divider,
.trust-bar.section-dark .trust-divider { background: rgba(255, 255, 255, 0.14); }

/* ── Services: numbered two-column list instead of photo cards ─────────── */
.services-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  counter-reset: tsg-service;
  border-top: 1px solid var(--color-border);
}
.service-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 32px 32px 0;
  background: transparent;
  border-bottom: 1px solid var(--color-border);
}
.service-card:nth-child(even) {
  padding: 32px 0 32px 32px;
  border-left: 1px solid var(--color-border);
}
.service-card:hover { transform: none; }
.service-card-img { height: 140px; }
.service-card-body { padding: 0; }
.service-card-icon { display: none; }
.service-card-title { font-size: 1.35rem; font-weight: 600; }
.service-card-title::before {
  counter-increment: tsg-service;
  content: counter(tsg-service, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}
.service-card-desc { margin-bottom: 14px; }

/* ── About: single tall photo on the right, text left ──────────────────── */
.about-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; }
.about-images { order: 2; padding: 0; }
.about-content { order: 1; }
.about-img-main { aspect-ratio: 4 / 5; }
.about-img-secondary { display: none; }
.about-years-badge {
  top: auto;
  left: -40px;
  bottom: 40px;
  padding: 22px 26px;
  text-align: left;
}
.about-years-number { font-size: 2.6rem; font-weight: 600; }
.about-years-label { font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Process: heading left, steps as a ruled vertical list right ───────── */
.process-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 72px;
  align-items: start;
}
.process-section .section-header {
  display: block;
  border-bottom: 0;
  margin: 0;
  padding: 0;
  position: sticky;
  top: calc(var(--header-height) + 32px);
}
.process-section .section-header .section-subtitle { margin-top: 20px; }
.process-steps {
  flex-direction: column;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.process-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  text-align: left;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.process-connector { display: none; }
.process-number {
  font-size: 2.6rem;
  font-weight: 400;
  font-style: italic;
  margin: 0;
}
.process-content h3 { font-size: 1.25rem; font-weight: 600; }

/* ── Portfolio: one large feature tile plus a grid ─────────────────────── */
.portfolio-grid-filter { gap: 12px; }
.pf-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pf-tag { border-radius: 0; font-family: var(--font-body); }
.pf-overlay h3 { font-weight: 600; }

/* ── Stats: big serif figures, ruled ───────────────────────────────────── */
.stat-number,
.stat-suffix { font-weight: 500; }
.stat-label { font-family: var(--font-body); letter-spacing: 0.12em; font-size: 0.8rem; }
/* The original stats band is always dark; on a light background the
   labels and dividers need dark versions. */
.stats-section:not(.section-forest):not(.section-dark) .stat-label { color: var(--color-muted); }
.stats-section:not(.section-forest):not(.section-dark) .stat-item + .stat-item::before { background: var(--color-border); }

/* ── Image + text rows ─────────────────────────────────────────────────── */
.split-content .section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.split-list li::before { border-radius: 0; }

/* ── Area cards ────────────────────────────────────────────────────────── */
.area-card { border: 1px solid var(--color-border); }
/* Three across on desktop (Classic uses four); tablets and phones keep
   the 2 / 1 columns from tsg-extra.css. */
@media (min-width: 901px) {
  .area-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.area-card:hover { transform: none; border-color: var(--color-accent); }
.area-card-tag { font-family: var(--font-body); }
.area-pills a { border-radius: 0; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-grid--stacked .faq-intro {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 26px 0;
}

/* ── Final contact section: solid colour, accent rule, square form ─────── */
.cta-final-section {
  min-height: 0;
  padding: 120px 0;
  background: var(--color-forest);
  border-top: 8px solid var(--color-accent);
}
.cta-bg,
.cta-overlay { display: none; }
.cta-form-wrap { border-radius: 0; }
.form-group input,
.form-group select,
.form-group textarea { border-radius: 0; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { border-top: 8px solid var(--color-accent); }

/* Header fit: the serif logo and body font run wider than Classic's, so
   the menu is a little tighter at every desktop width. */
.nav-link,
.nav-dropdown-trigger { padding: 8px 7px; font-size: 0.92rem; }
.header-inner { gap: 14px; }
.header-actions .btn { padding-left: 16px; padding-right: 16px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .page-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .service-card { grid-template-columns: 1fr; gap: 18px; }
  .service-card-img { height: 180px; }
  .about-grid { gap: 48px; }
  .about-years-badge { left: 16px; }
  .process-section .container { grid-template-columns: 1fr; gap: 40px; }
  .process-section .section-header { position: static; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(var(--color-forest-rgb), 0.9) 0%,
      rgba(var(--color-forest-rgb), 0.78) 60%,
      rgba(var(--color-forest-rgb), 0.9) 100%);
  }
  .page-hero { grid-template-columns: 1fr; min-height: 0; }
  .page-hero-bg,
  .page-hero-overlay { grid-column: 1; grid-row: 2; }
  .page-hero-bg,
  .page-hero-overlay { min-height: 220px; }
  .hero .container,
  .page-hero .container { padding-left: var(--container-pad); padding-right: var(--container-pad); }
  .page-hero .container { padding-top: 48px; padding-bottom: 48px; }
  .hero-layout,
  .hero-layout--single { padding: 48px 0; }
  .section-header { grid-template-columns: 1fr; row-gap: 0; }
  .section-header .section-subtitle { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-images { order: 0; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }
  .pf-item:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .process-step { grid-template-columns: 64px 1fr; }
  .cta-final-section { padding: 80px 0; }
}

/* Image logo (wide, 1500x399): leave breathing room in the 96px bar. */
@media (min-width: 769px) {
  .site-header .logo-img { height: 74px; }
}
.mobile-menu-header .logo-img { height: 44px; width: auto; }
.logo-img--footer { height: 64px; }
