/* RosFlo Consulting — site styles */

:root {
  --ink: #0d1a3a;
  --ink-2: #33405e;
  --muted: #646f88;
  --line: #e3e0ea;
  --bg: #faf8f5;
  --surface: #ffffff;
  --navy: #0b1a3f;
  --navy-2: #13275a;
  --plum: #7a2a8c;
  --magenta: #c23a8e;
  --pink: #f0b9d5;
  --accent: var(--magenta);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 26, 58, .05), 0 12px 32px -12px rgba(13, 26, 58, .14);
  --wrap: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 .95rem/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 10px 24px -10px rgba(194, 58, 142, .7); }
.btn-primary:hover { background: #a92f7a; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.on-dark:not(.scrolled) { background: transparent; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .06em; }
.brand-sub { font-size: .62rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; opacity: .65; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 999px;
  transition: background .2s ease;
}
.nav a:not(.btn):hover { background: rgba(13, 26, 58, .06); }
.on-dark:not(.scrolled) .nav a:not(.btn):hover { background: rgba(255,255,255,.1); }
.nav a[aria-current="page"] { color: var(--accent); }
.on-dark:not(.scrolled) .nav a[aria-current="page"] { color: var(--pink); }
.nav .btn { margin-left: 10px; padding: 12px 20px; }
.menu-toggle {
  display: none; background: none; border: 0; color: inherit; padding: 10px; margin-right: -10px; cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); color: var(--ink); padding: 12px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(13,26,58,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .on-dark:not(.scrolled) .nav a[aria-current="page"] { color: var(--accent); }
  .nav .btn { margin: 10px 0 0; }
  .site-header.menu-open { background: var(--bg); color: var(--ink); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(194, 58, 142, .38), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(122, 42, 140, .45), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #101f4d 55%, #1b1650 100%);
  margin-top: -78px; padding: calc(78px + clamp(64px, 10vw, 120px)) 0 clamp(72px, 10vw, 120px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--pink); }
.hero .lead { color: rgba(255,255,255,.78); }
.hero .eyebrow { color: var(--pink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-mark {
  position: absolute; right: -180px; top: 50%; width: 720px; height: 720px; translate: 0 -50%;
  opacity: .14; z-index: 0; animation: spin 90s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius); padding: 28px;
}
.hero-card h2 { font-size: 1.3rem; margin-bottom: 18px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hero-card li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; font-size: .95rem; color: rgba(255,255,255,.82); }
.hero-card li strong { display: block; color: #fff; font-weight: 700; }
.hero-card .ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(240,185,213,.14); color: var(--pink); display: grid; place-items: center; }
.hero-card .ico svg { width: 18px; height: 18px; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero .bg-mark { position: absolute; right: -120px; top: -80px; width: 420px; opacity: .08; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(194,58,142,.12), rgba(122,42,140,.12)); color: var(--plum);
}
.card .ico svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); margin: 0; }
.card h3 { margin-bottom: .4em; }

.service-card { display: flex; flex-direction: column; text-decoration: none; }
.service-card p { flex: 1; }
.service-card .more { margin-top: 22px; font-weight: 700; font-size: .92rem; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.service-card .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover .more svg { transform: translateX(4px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head .lead { margin: 0; max-width: 46ch; }

/* Values */
.values .card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 0 0; }
.values .num { font-family: var(--serif); font-size: 1rem; color: var(--accent); margin-bottom: 14px; display: block; }

/* Split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-visual {
  position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(194,58,142,.55), transparent 70%),
    radial-gradient(60% 60% at 25% 80%, rgba(122,42,140,.6), transparent 70%),
    var(--navy);
  display: grid; place-items: center;
}
.split-visual img { width: 58%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.3)); animation: spin 120s linear infinite; }
.stat-pill {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.35; max-width: 230px;
}
.stat-pill strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; display: block; }
.stat-pill.a { left: 20px; bottom: 20px; }
.stat-pill.b { right: 20px; top: 20px; }

.formula {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none;
}
.formula li { font-weight: 700; font-size: .92rem; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.formula li.op { background: none; border: 0; padding: 0 2px; color: var(--muted); font-family: var(--serif); font-size: 1.3rem; }
.formula li.result { background: linear-gradient(135deg, var(--magenta), var(--plum)); color: #fff; border: 0; }

/* Dark band */
.band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.band .lead { color: rgba(255,255,255,.75); }
.band .eyebrow { color: var(--pink); }
.band .bg-mark { position: absolute; left: -160px; bottom: -200px; width: 560px; opacity: .1; }

/* Consultation form */
.consult { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; position: relative; z-index: 1; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(194,58,142,.15); }
.band .field label { color: rgba(255,255,255,.85); }
.band .field input, .band .field select, .band .field textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.band .field select option { color: var(--ink); }
.band .field input::placeholder, .band .field textarea::placeholder { color: rgba(255,255,255,.45); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 4px 0 0; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #1f8f5f; }
.band .form-status.ok { color: #7ee2b0; }
.form-status.err { color: #c0392b; }
.band .form-status.err { color: #ffb4a8; }
.form .btn { justify-self: start; }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--pink); margin-top: 2px; }

/* Services page */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-nav { position: sticky; top: 104px; display: grid; gap: 2px; }
.svc-nav a { text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--ink-2); border-left: 2px solid transparent; transition: all .2s ease; }
.svc-nav a:hover { background: rgba(13,26,58,.05); }
.svc-nav a.active { color: var(--accent); background: rgba(194,58,142,.07); }
.svc { padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; display: grid; grid-template-columns: 64px 1fr; gap: 28px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc .ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--magenta), var(--plum)); color: #fff; }
.svc .ico svg { width: 30px; height: 30px; }
.svc h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.svc p { color: var(--ink-2); max-width: 64ch; }

/* About page */
.prose h2 { margin-top: 0; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.quote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; max-width: 28ch; margin: 0 auto; text-align: center;
}
.quote em { color: var(--accent); }

/* Contact page */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.office h3 { font-size: 1.5rem; }
.office .tag { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.office address { font-style: normal; color: var(--ink-2); margin-bottom: 20px; }
.office a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; padding: 6px 0; }
.office a:hover { color: var(--accent); }
.office a svg { width: 18px; height: 18px; color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }

/* Footer */
.site-footer { background: #08132e; color: rgba(255,255,255,.72); padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .split, .consult, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .svc-nav a { border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; padding: 8px 14px; }
  .hero-mark { width: 520px; height: 520px; right: -220px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .grid-3, .form, .offices, .case-grid, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat-pill { font-size: .78rem; max-width: 180px; padding: 10px 14px; }
}

/* Homepage call-to-action card that completes the services grid */
.cta-card {
  grid-column: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  text-decoration: none; color: #fff; border: 0; position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(194, 58, 142, .55), transparent 70%),
    var(--navy);
}
.cta-card .eyebrow { color: var(--pink); }
.cta-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: 26ch; margin-bottom: 24px; }
.cta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (max-width: 1000px) { .cta-card { grid-column: span 1; } }
