/* FocusStream Core — contemporary structured-creative theme */
:root {
  --color-bg: #FAF7F2;
  --color-bg-alt: #F0EBE3;
  --color-surface: #FFFFFF;
  --color-ink: #1A2B32;
  --color-ink-muted: #4A5E68;
  --color-primary: #0D3B4C;
  --color-accent: #E76F51;
  --color-accent-soft: #F4A261;
  --color-highlight: #E9C46A;
  --color-border: #D8D0C4;
  --color-success: #2A6F4E;
  --color-error: #B33A3A;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13, 59, 76, 0.08);
  --shadow-hover: 0 12px 40px rgba(13, 59, 76, 0.14);
  --max-width: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

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

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.2s;
}

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

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

.site-nav a:hover { color: var(--color-accent); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  background: var(--color-accent);
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  background: #d45f43;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

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

.site-footer a { color: var(--color-highlight); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer address { font-style: normal; }
.site-footer address p { margin-bottom: 0.4rem; }

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

.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9375rem; opacity: 0.85; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
  font-size: 0.875rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Hero variants */
.hero {
  padding: 4rem 0 3rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--color-bg-alt);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--color-ink-muted);
  max-width: 34ch;
}

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

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,59,76,0.15), transparent 60%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 { margin: 0 0 0.75rem; }
.page-hero p { color: var(--color-ink-muted); max-width: 60ch; margin: 0; }

/* Sections */
section { padding: 3.5rem 0; }

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

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

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

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

.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-body h3 { margin: 0 0 0.5rem; }
.card-body p { font-size: 0.9375rem; color: var(--color-ink-muted); margin-bottom: 1rem; }
.card-link { font-weight: 600; text-decoration: none; font-size: 0.9375rem; }

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  color: #fff;
}

.feature-strip h3 { color: var(--color-highlight); margin: 0 0 0.5rem; font-size: 1.1rem; }
.feature-strip p { margin: 0; font-size: 0.9375rem; opacity: 0.9; }

@media (max-width: 768px) {
  .feature-strip { grid-template-columns: 1fr; }
}

/* Testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

blockquote {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent-soft);
  box-shadow: var(--shadow);
}

blockquote p { font-style: italic; margin-bottom: 0.75rem; }
blockquote cite {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink-muted);
}

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

label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-ink);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 1px;
}

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

.field-error {
  color: var(--color-error);
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  min-height: 1.2em;
}

.form-status {
  margin-top: 1rem;
  font-weight: 500;
}

.form-status-success { color: var(--color-success); }
.form-status-error { color: var(--color-error); }

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

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Pricing */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.price-table th {
  background: var(--color-bg-alt);
  font-family: var(--font-display);
}

.price-note {
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-top: 1.5rem;
}

/* Glossary */
.glossary-list dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

.glossary-list dd {
  margin: 0.35rem 0 0 0;
  color: var(--color-ink-muted);
  padding-left: 0;
}

.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.glossary-nav a {
  padding: 0.35rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Blog */
.article-meta {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  margin-bottom: 1.5rem;
}

.article-body h2 { margin-top: 2rem; }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* Legal */
.legal-content h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal-content ul { padding-left: 1.25rem; }

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}

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

.cookies-table th { background: var(--color-bg-alt); }

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

.error-page h1 { font-size: 5rem; margin-bottom: 0.5rem; color: var(--color-accent); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: 1rem;
}

.cookie-banner-inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p { margin: 0; font-size: 0.9375rem; flex: 1; min-width: 240px; }
.cookie-banner-actions { display: flex; gap: 0.75rem; }

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

.service-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

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

@media (max-width: 900px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

/* Case study */
.case-study {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.inline-error {
  background: #fde8e8;
  color: var(--color-error);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeUp 0.6s ease-out; }

.prose { max-width: 68ch; }
.prose-wide { max-width: 78ch; }
