:root {
  --ink: #0f1419;
  --muted: #5c6670;
  --line: #e5e7eb;
  --bg: #fff;
  --surface: #f8fafb;
  --teal: #0ea5b7;
  --teal-dark: #0b8fa0;
  --navy: #0f172a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body.editorial-site {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 0; cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

/* Header */
.editorial-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
}
.editorial-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: var(--header-h);
  gap: 12px;
  padding: 8px 0;
}
.editorial-nav .brand {
  justify-self: start;
  font-weight: 700;
  font-size: clamp(14px, 2vw, 17px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editorial-nav > .btn-teal { justify-self: end; flex-shrink: 0; }
.nav-pill {
  justify-self: center;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px 6px;
  max-width: 100%;
  overflow-x: auto;
}
.nav-pill .nav-links {
  display: flex; gap: 2px; margin: 0; padding: 0; list-style: none;
}
.nav-pill .nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted); white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-pill .nav-links a:hover { color: var(--ink); }
.nav-pill .nav-links a.active {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Index hero split */
.page-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.editorial-site #main > .page-split:first-child {
  min-height: calc(100vh - var(--header-h));
}
.content-col {
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, #f8fcfd 0%, #fff 100%);
  min-width: 0;
}
.content-col .label {
  font-size: 12px; color: var(--muted); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.content-col h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06; letter-spacing: -0.02em;
  margin-bottom: 18px; font-weight: 700;
}
.content-col .intro {
  color: var(--muted); font-size: 16px; max-width: 440px;
  margin-bottom: 24px; line-height: 1.65;
}
.features-row {
  display: flex; gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.feature-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; width: 100px; flex-shrink: 0;
}
.feature-item .ic {
  width: 42px; height: 42px; border-radius: 50%;
  background: #eef8fa; color: var(--teal);
  display: grid; place-items: center; margin-bottom: 8px;
}
.feature-item span { font-size: 11px; color: var(--muted); line-height: 1.35; }
.acc { max-width: 100%; width: min(460px, 100%); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details summary {
  list-style: none; cursor: pointer; padding: 14px 0;
  font-size: 15px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.acc details summary::-webkit-details-marker { display: none; }
.acc details summary::after { content: "+"; color: var(--muted); font-size: 18px; font-weight: 400; }
.acc details[open] summary::after { content: "−"; }
.acc details p { color: var(--muted); font-size: 14px; padding-bottom: 14px; line-height: 1.6; }

.image-col {
  position: relative; background: #e8ecef; overflow: hidden; min-width: 0;
}
.editorial-site #main > .page-split:first-child .image-col {
  min-height: calc(100vh - var(--header-h));
}
.image-col img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.editorial-site #main > .page-split:first-child .image-col img {
  min-height: calc(100vh - var(--header-h));
}

/* Editorial content bands */
.page-split.editorial-band {
  min-height: auto;
  border-top: 1px solid var(--line);
}
.page-split.editorial-band .content-col {
  background: #fff;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
}
.page-split.editorial-band .image-col { min-height: 380px; }
.page-split.editorial-band .image-col img { min-height: 380px; height: 100%; }
.page-split.reverse .image-col { order: 1; }
.page-split.reverse .content-col { order: 2; }
.content-col.prose-band h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 16px; line-height: 1.15;
}
.content-col.prose-band p {
  color: var(--muted); font-size: 15px; max-width: 480px;
  margin-bottom: 14px; line-height: 1.7;
}

/* Image section + CTA strip */
.image-section {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.image-section .spacer { background: #fff; min-height: 480px; }
.image-section .img-wrap {
  position: relative; min-height: 480px; overflow: hidden; min-width: 0;
}
.image-section .img-wrap > img {
  width: 100%; height: 100%; min-height: 480px; object-fit: cover;
}
.image-section .footer-cta {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--navy); padding: 22px 28px;
}
.footer-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; max-width: 640px;
}
.footer-cta h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; }
.footer-cta p { color: #94a3b8; font-size: 14px; margin-top: 6px; line-height: 1.5; }
.footer-cta-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-cta-actions .links { display: flex; gap: 16px; font-size: 14px; color: #cbd5e1; }
.footer-cta-actions .links a:hover { color: #fff; }

/* Inner pages */
.inner-page { background: var(--surface); }
.inner-page .page-hero {
  padding: clamp(40px, 6vw, 56px) 0 clamp(28px, 4vw, 36px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.inner-page .page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 12px; line-height: 1.1;
}
.inner-page .page-hero p { color: var(--muted); max-width: 560px; font-size: 16px; }
.inner-page .section { padding: 0 0 clamp(48px, 8vw, 80px); }
.inner-page .section > .container.prose {
  background: #fff;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}
.inner-page .prose { max-width: 720px; margin: 0 auto; width: 100%; }
.inner-page .prose h2 {
  font-family: var(--serif); font-size: 1.5rem;
  margin: 32px 0 12px; color: var(--ink);
}
.inner-page .prose h3 {
  font-family: var(--serif); font-size: 1.15rem;
  margin: 24px 0 8px; color: var(--ink);
}
.inner-page .prose p { color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.inner-page .prose img {
  width: 100%; border-radius: var(--radius);
  margin: 24px 0; max-height: 360px; object-fit: cover;
  box-shadow: var(--shadow);
}
.inner-page .section-photo {
  border-radius: var(--radius); overflow: hidden;
  margin: 0 0 28px; box-shadow: var(--shadow);
}
.inner-page .section-photo img { width: 100%; height: 280px; object-fit: cover; margin: 0; max-height: none; }

.inner-page .service-grid {
  width: min(1200px, 92%); margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); min-width: 0;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1); transform: translateY(-2px); }
.service-card img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: 8px; margin-bottom: 16px;
}
.service-card h3 {
  font-family: var(--serif); font-size: 1.2rem;
  margin-bottom: 10px; line-height: 1.25;
}
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 8px; }
.service-note {
  font-size: 13px; color: var(--teal); font-weight: 600;
  margin-top: auto; padding-top: 12px;
}

.inner-page .price-grid {
  width: min(1200px, 92%); margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.price-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); min-width: 0;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--teal); box-shadow: 0 12px 40px rgba(14, 165, 183, 0.12); }
.price-card h3 {
  font-family: var(--serif); font-size: 1.25rem;
  margin-bottom: 8px; line-height: 1.25;
}
.price-card .price {
  font-size: 2.5rem; font-weight: 800; color: var(--teal-dark);
  margin: 8px 0 4px; line-height: 1.1;
}
.price-card .price-meta {
  color: var(--muted); font-size: 14px; margin-bottom: 16px;
}
.price-card ul {
  list-style: none; margin: 0 0 24px; padding: 0;
  color: var(--muted); font-size: 14px; line-height: 1.65;
  flex: 1;
}
.price-card ul li { margin-bottom: 8px; padding-left: 1.4em; position: relative; }
.price-card ul li::before {
  content: "\2713"; position: absolute; left: 0;
  color: var(--teal); font-weight: 700;
}
.price-card .btn { width: 100%; justify-content: center; }

.inner-page .case-grid {
  width: min(1200px, 92%); margin: 0 auto;
  padding-top: clamp(24px, 4vw, 40px);
}
.case-card {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.case-card img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: 8px;
}
.case-card h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 12px; }
.case-card p { color: var(--muted); font-size: 14px; margin-bottom: 8px; line-height: 1.65; }
.case-card strong { color: var(--ink); }

/* Contact split */
.page-hero-compact { padding: 40px 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.page-hero-compact .label {
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; display: block;
}
.form-note { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.contact-split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100vh - var(--header-h) - 120px);
  background: #fff;
}
.contact-split .content-col {
  background: #fff;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
}
.contact-split .contact-card-form { max-width: 420px; }
.contact-split .contact-card-form h2 {
  font-family: var(--serif); font-size: 28px; margin-bottom: 8px;
}
.contact-split .contact-card-form .intro {
  color: var(--muted); font-size: 15px; margin-bottom: 24px; line-height: 1.6;
}
.contact-split .contact-side-note {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); line-height: 1.7;
}
.contact-split .contact-side-note p { margin-bottom: 8px; }
.contact-split .contact-side-note a { color: var(--teal); text-decoration: underline; }
.contact-split .image-col { min-height: 400px; }
.contact-split .image-col img { min-height: 100%; height: 100%; }

/* Forms */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--ink); }
.form-row input, .form-row textarea,
.contact-card input, .contact-card textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 165, 183, 0.15); }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--muted); margin: 16px 0; line-height: 1.5;
}
.form-check input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.form-check label { flex: 1; min-width: 0; }
.contact-form button[type="submit"] { width: 100%; margin-top: 8px; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy); color: #94a3b8; padding: 48px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
}
.site-footer h5 { color: #fff; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer ul a:hover { color: #fff; }
.footer-address { display: flex; flex-direction: column; gap: 8px; font-style: normal; font-size: 14px; margin: 16px 0; line-height: 1.5; }
.footer-disclaimer { font-size: 12px; opacity: 0.85; margin-top: 12px; max-width: 420px; line-height: 1.5; }
.footer-brand { margin-bottom: 8px; font-weight: 700; color: #fff; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* Cookie bar */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: var(--navy); color: #cbd5e1;
  padding: 14px clamp(16px, 3vw, 28px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 14px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}
.cookie-bar p { flex: 1 1 220px; min-width: 0; margin: 0; line-height: 1.5; }
.cookie-bar .btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #e2e8f0; padding: 8px 16px; font-size: 13px; }
.cookie-bar .btn-primary, .cookie-bar .cookie-accept { background: var(--teal); color: #fff; padding: 8px 18px; font-size: 13px; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal[hidden], .cookie-bar[hidden] { display: none !important; }
.cookie-modal-inner {
  background: #fff; border-radius: var(--radius); padding: 28px;
  max-width: 440px; width: 100%; max-height: 90vh; overflow: auto;
}
.cookie-check { display: flex; gap: 10px; margin: 12px 0; font-size: 14px; align-items: flex-start; }

.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  padding: 12px 16px; background: #fff; color: #111; z-index: 999;
  border: 2px solid #111; border-radius: 8px;
}

.error-page { text-align: center; padding: 80px 20px; background: #fff; }

@media (max-width: 960px) {
  .page-split, .image-section, .contact-split, .footer-grid,
  .inner-page .service-grid, .inner-page .price-grid, .case-card { grid-template-columns: 1fr; }
  .editorial-nav { grid-template-columns: 1fr auto; }
  .nav-pill { display: none; }
  .page-split.reverse .image-col, .page-split.reverse .content-col { order: unset; }
  .image-section .spacer { display: none; }
  .image-section .footer-cta { position: relative; }
  .image-section .img-wrap, .image-section .img-wrap > img { min-height: 320px; }
  .page-split.editorial-band .image-col, .page-split.editorial-band .image-col img { min-height: 280px; }
  .editorial-site #main > .page-split:first-child { min-height: auto; }
  .editorial-site #main > .page-split:first-child .image-col,
  .editorial-site #main > .page-split:first-child .image-col img { min-height: 320px; }
  .case-card img { height: 200px; }
}

@media (max-width: 640px) {
  .inner-page .service-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
