/* =============================================================
   SOLARIS MANAGEMENT SOLUTIONS — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced motion
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
@property --mesh-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* palette — drawn from the Solaris sun mark */
  --bg:        #FAF3E9;
  --bg-2:      #F0E3D2;
  --paper:     #FFFFFF;
  --ink:       #201A16;
  --ink-soft:  #362B24;
  --ink-mute:  #77685B;
  --rose:      #E31C6D;
  --rose-dim:  #B5165A;
  --orange:    #F17B21;
  --orange-dim:#D9691A;
  --gold:      #FBB614;
  --line:      rgba(32, 26, 22, 0.12);
  --line-soft: rgba(32, 26, 22, 0.07);
  --shadow-soft: 0 20px 60px rgba(32, 20, 12, 0.12);
  --shadow-hard: 0 12px 30px rgba(32, 20, 12, 0.18);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --container: 1240px;
}

/* -------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------
   3. Utilities
   ------------------------------------------------------------- */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600; transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rose-dim);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.section-pad { padding-block: clamp(4rem, 8vw, 7.5rem); }
.grad-word {
  background: linear-gradient(100deg, var(--rose) 0%, var(--orange) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensive: never let split-text parents stay hidden */

/* -------------------------------------------------------------
   4. Typography
   ------------------------------------------------------------- */
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
em { font-style: italic; color: var(--rose-dim); }

/* -------------------------------------------------------------
   5. Components
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 100px; font-weight: 600; font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(100deg, var(--rose) 0%, var(--orange) 100%);
  color: var(--paper); box-shadow: var(--shadow-hard);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(227,28,109,.32); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-soft); }
.btn-light:hover { transform: translateY(-3px); }

.card {
  background: var(--paper);
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), height .3s var(--ease-out);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav.is-solid { background: rgba(250, 243, 233, 0.88); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav-brand { display: flex; align-items: center; gap: .6rem; }
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  position: relative; font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.lang-toggle {
  display: flex; border: 1.5px solid var(--line); border-radius: 100px; padding: 3px; gap: 2px;
}
.lang-toggle button {
  padding: .35rem .75rem; border-radius: 100px; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: var(--ink-mute); transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.lang-toggle button.is-active { background: var(--ink); color: var(--bg); }
.nav-burger { display: none; }

/* mobile nav */
.mobile-panel {
  position: fixed; inset: 0; z-index: 600; background: var(--bg);
  display: flex; flex-direction: column; padding: 1.5rem;
  transform: translateY(-100%); transition: transform .5s var(--ease-out);
}
.mobile-panel.is-open { transform: translateY(0); }
.mobile-panel .mp-top { display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); }
.mobile-panel nav { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 2rem; }
.mobile-panel nav a { font-family: var(--serif); font-size: 2rem; }
.mobile-panel .mp-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }

/* -------------------------------------------------------------
   6. Sections
   ------------------------------------------------------------- */

/* hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: var(--nav-h); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,243,233,.05) 0%, rgba(250,243,233,.35) 55%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-kicker { margin-bottom: 1.4rem; }
.hero-title { max-width: 15ch; text-shadow: 0 2px 30px rgba(250,243,233,.6); }
.hero-title em { font-style: italic; }
.hero-sub { margin-top: 1.4rem; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-meta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.8rem; }
.hero-meta-item { display: flex; align-items: baseline; gap: .5rem; font-size: .9rem; color: var(--ink-soft); }
.hero-meta-item strong { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }

/* trust strip */
.trust-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 1.6rem; background: var(--paper);
}
.trust-strip .container {
  display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; align-items: center;
}
.trust-item { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--ink-soft); font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

/* manifesto / intro */
.manifesto { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.manifesto-num { font-family: var(--serif); font-style: italic; font-size: 4rem; color: var(--gold); line-height: 1; }

/* services bento */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 3rem;
}
.bento-card {
  grid-column: span 4; padding: 2.2rem 1.8rem; position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.bento-card:nth-child(1) { background: linear-gradient(150deg, var(--rose) 0%, var(--rose-dim) 100%); color: var(--bg); }
.bento-card:nth-child(2) { background: var(--paper); }
.bento-card:nth-child(3) { background: var(--paper); }
.bento-card:nth-child(4) { background: linear-gradient(150deg, var(--gold) 0%, var(--orange) 100%); color: var(--ink); }
.bento-card:hover { transform: translateY(-8px) rotate(-0.3deg); box-shadow: var(--shadow-hard); }
.bento-icon { width: 46px; height: 46px; }
.bento-card:nth-child(1) .bento-icon, .bento-card:nth-child(1) h3 { color: var(--bg); }
.bento-card:nth-child(2) .bento-icon, .bento-card:nth-child(3) .bento-icon { color: var(--rose); }
.bento-card p { font-size: .92rem; opacity: .85; }
.bento-card .tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 100px; background: rgba(0,0,0,.08);
}
.bento-card:nth-child(1) .tag { background: rgba(255,255,255,.18); }

/* process */
.process-list { margin-top: 3rem; display: flex; flex-direction: column; }
.process-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--rose); }
.process-body h3 { margin-bottom: .5rem; }
.process-body p { color: var(--ink-mute); max-width: 60ch; }

/* about split */
.about-split { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.about-figure {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); position: relative;
  aspect-ratio: 4 / 5;
}
.about-figure svg { width: 100%; height: 100%; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2.2rem; }
.stat-num { font-family: var(--serif); font-size: 2.6rem; color: var(--rose-dim); }
.stat-label { font-size: .85rem; color: var(--ink-mute); margin-top: .2rem; }

/* marquee */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 1.4rem; background: var(--paper); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-mute); white-space: nowrap; display: flex; align-items: center; gap: 3.5rem; }
.marquee-track span::after { content: "◆"; color: var(--gold); font-size: .8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* contact */
.contact-wrap { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-card { padding: 2.2rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 1.8rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item svg { width: 22px; height: 22px; color: var(--rose); flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: .15rem; }
.map-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-top: 1.8rem; aspect-ratio: 16/10; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--rose); background: var(--paper);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 1.2rem; }
.form-note { font-size: .8rem; color: var(--ink-mute); margin-top: .8rem; }
.form-success {
  display: none; padding: 1.3rem; border-radius: 14px; background: rgba(227,28,109,.08);
  border: 1px solid rgba(227,28,109,.25); color: var(--rose-dim); font-weight: 600; margin-top: 1rem;
}
.form-success.is-shown { display: block; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; margin-inline: 1.5rem;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--rose) 0%, var(--orange) 55%, var(--gold) 100%);
  color: var(--bg); text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40%; z-index: 0;
  background: conic-gradient(from var(--mesh-angle), rgba(255,255,255,.18), transparent 30%, rgba(255,255,255,.18) 60%, transparent 90%, rgba(255,255,255,.18));
  animation: meshSpin 22s linear infinite;
}
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--bg); max-width: 20ch; margin-inline: auto; }
.cta-band p { margin-top: 1rem; opacity: .92; max-width: 50ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 2rem; }
.cta-band .btn-ghost { border-color: rgba(250,243,233,.5); color: var(--bg); }
.cta-band .btn-ghost:hover { background: rgba(250,243,233,.15); border-color: var(--bg); }

/* footer */
.footer { padding-block: 4rem 2rem; background: var(--ink); color: var(--bg-2); }
.footer .container { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.footer-brand img { height: 32px; }
.footer-brand p { margin-top: 1rem; color: rgba(250,243,233,.6); max-width: 34ch; font-size: .9rem; }
.footer-col h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(250,243,233,.55); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { color: rgba(250,243,233,.85); font-size: .92rem; transition: color .3s var(--ease-out); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(250,243,233,.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem; color: rgba(250,243,233,.5);
}
.social-row { display: flex; gap: .8rem; margin-top: 1.2rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(250,243,233,.1); transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.social-row a:hover { background: var(--rose); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

/* cursor (desktop only, functional not intrusive) */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--rose); pointer-events: none; z-index: 9998; opacity: 0;
  transition: opacity .25s var(--ease-out), width .25s var(--ease-out), height .25s var(--ease-out), background .25s var(--ease-out);
  transform: translate3d(-50%,-50%,0); mix-blend-mode: multiply;
}
.cursor-ring.is-ready { opacity: 1; }
.cursor-ring.is-hover { width: 56px; height: 56px; background: rgba(227,28,109,.12); }

/* -------------------------------------------------------------
   7. Effects
   ------------------------------------------------------------- */
[data-tilt] { transition: transform .4s var(--ease-out); transform-style: preserve-3d; }

.split-word { display: inline-block; will-change: transform, opacity; }

/* -------------------------------------------------------------
   8. Responsive
   ------------------------------------------------------------- */
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .bento-card:nth-child(1) { grid-column: span 4; }
  .bento-card:nth-child(2) { grid-column: span 2; }
  .bento-card:nth-child(3) { grid-column: span 2; }
  .bento-card:nth-child(4) { grid-column: span 4; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .manifesto { grid-template-columns: 140px 1fr; }
  .bento-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento-card:nth-child(2) { grid-column: span 2; }
  .bento-card:nth-child(3) { grid-column: span 2; }
  .bento-card:nth-child(4) { grid-column: span 2; }
  .about-split { grid-template-columns: .85fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr 1fr; }
  .footer .container { grid-template-columns: 1.4fr .8fr .8fr 1fr; }
}

@media (max-width: 959px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-burger {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  }
  .nav-actions { gap: .6rem; }
}

/* -------------------------------------------------------------
   9. Reduced motion — only intrusive effects gated
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 60s; }
  .cta-band::before { animation: none; }
  html { scroll-behavior: auto; }
}

@media (hover: none) {
  .cursor-ring { display: none; }
}
