/* Flowworkbase — contemporary structured theme */
:root {
  --navy: #1a2f4a;
  --navy-light: #2a4568;
  --slate: #4a5f78;
  --cream: #f7f4ef;
  --warm-white: #fdfcfa;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --gold-muted: #f0e6c8;
  --text: #2c3e50;
  --text-muted: #5a6d7e;
  --border: #e2ddd4;
  --error: #b33a3a;
  --success: #2d6a4f;
  --shadow: 0 4px 24px rgba(26, 47, 74, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 47, 74, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--warm-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }

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

main { flex: 1; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1140px, 92%);
  margin-inline: auto;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.logo:hover { color: var(--navy); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.main-nav a:hover { color: var(--gold); }

.nav-cta {
  background: var(--navy);
  color: var(--warm-white) !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--navy-light);
  color: var(--warm-white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4rem;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  width: min(1140px, 92%);
  margin-inline: auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 0.5rem; }

.footer-col a, .site-footer address a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover, .site-footer address a:hover { color: var(--gold-light); }

.site-footer address { font-style: normal; font-size: 0.9rem; line-height: 1.7; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: min(1140px, 92%);
  margin-inline: auto;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.footer-legal ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-legal a:hover { color: var(--gold-light); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
}

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

.btn-secondary:hover {
  background: var(--navy);
  color: var(--warm-white);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem max(4%, calc((100vw - 1140px) / 2));
  background: var(--cream);
}

.hero-content .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-content h1 { margin-bottom: 1.25rem; max-width: 14ch; }

.hero-content .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  min-height: 400px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(26, 47, 74, 0.15));
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0 3.5rem;
}

.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 55ch; font-size: 1.1rem; }

.page-hero .breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover { color: var(--gold-light); }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }

.section-header {
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-header.centered {
  text-align: center;
  margin-inline: auto;
}

.section-header p { color: var(--text-muted); margin-top: 0.5rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image { aspect-ratio: 16/10; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 1.5rem; }

.card-body h3 a {
  text-decoration: none;
  color: var(--navy);
}

.card-body h3 a:hover { color: var(--gold); }

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin-top: 1rem;
}

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.feature-item {
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
}

.feature-item h3 { font-size: 1.1rem; }
.feature-item p { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold-muted);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.testimonial blockquote {
  font-size: 0.95rem;
  padding-top: 1.5rem;
  font-style: italic;
  color: var(--text);
}

.testimonial cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial cite strong { color: var(--navy); display: block; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 50ch; margin: 0 auto 2rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.invalid .form-error { display: block; }
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea { border-color: var(--error); }

.form-success {
  background: #e8f5ee;
  border: 1px solid #a7d4b8;
  color: var(--success);
  padding: 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.form-success.visible { display: block; }

.form-fail {
  background: #fce8e8;
  border: 1px solid #e8a0a0;
  color: var(--error);
  padding: 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.form-fail.visible { display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info address {
  font-style: normal;
  line-height: 1.8;
  margin-top: 1rem;
}

.contact-info h3 { margin-top: 2rem; }

/* Legal pages */
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.legal-content ul, .legal-content ol {
  margin: 0.75rem 0 0.75rem 1.5rem;
}

.legal-content li + li { margin-top: 0.35rem; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.legal-content th {
  background: var(--cream);
  font-weight: 600;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.article-content {
  font-size: 1.0625rem;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.article-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-hero {
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Service detail */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-sidebar {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: sticky;
  top: 100px;
}

.service-sidebar dl { margin-top: 1rem; }
.service-sidebar dt {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 1rem;
}
.service-sidebar dd { margin-top: 0.25rem; }

.included-list {
  list-style: none;
  margin: 1.5rem 0;
}

.included-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}

.included-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Pricing */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.pricing-table th {
  background: var(--cream);
  font-weight: 600;
}

.pricing-note {
  background: var(--gold-muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Schedule */
.schedule-list { list-style: none; }

.schedule-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.schedule-date {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}

.schedule-date span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.schedule-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-open { background: #e8f5ee; color: var(--success); }
.status-limited { background: var(--gold-muted); color: #7a6520; }
.status-full { background: #f0f0f0; color: var(--text-muted); }

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--gold);
  line-height: 1;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: #fff;
  padding: 1.25rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1140px, 92%);
  margin-inline: auto;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.9rem;
  flex: 1;
  min-width: 260px;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-inner a { color: var(--gold-light); }

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.cookie-accept {
  background: var(--gold);
  color: var(--navy);
}

.cookie-accept:hover { background: var(--gold-light); }

.cookie-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.cookie-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Script error */
.script-error {
  background: #fce8e8;
  color: var(--error);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; order: -1; }
  .hero-content { padding: 2.5rem 4%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .schedule-item { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 92%;
    margin-inline: auto;
  }

  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 0.85rem 0; }
  .nav-cta { text-align: center; margin: 0.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; text-align: center; }
}
