/* ============================================================================
   Camalia Group — site stylesheet
   Identity: Prata (display) + Montserrat (body), blush & aubergine.
   Dark ("Boudoir") is the default; light is opt-in via the masthead toggle.
   Full rationale: business-operations/camaliagroup-website/BRAND.md in the vault.
   ========================================================================== */

/* ---------- tokens ---------- */

:root {
  /* Boudoir — the default */
  --paper:       #241920;
  --paper-deep:  #1D141A;
  --surface:     #30222A;
  --ink:         #F5EBEA;
  --ink-soft:    #C2ABB0;
  --rule:        #4B3740;
  --rule-soft:   #3A2A31;
  --accent:      #D9AFB3;
  --accent-deep: #E7C6C8;
  --accent-soft: #3A2A31;
  --petal-1:     #CDA1A7;
  --petal-2:     #A0757D;
  --petal-3:     #6E4F58;
  --on-accent:   #241920;

  /* the bloom sits lighter than a dark ground, so it advances where it would
     recede on paper — it needs to be held back on this theme */
  --bloom-hero:  .26;
  --bloom-band:  .22;
  --bloom-card:  .20;
  --bloom-card-hover: .32;

  --display: "Prata", Georgia, serif;
  --body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1060px;
  --measure: 60ch;
}

:root[data-theme="light"] {
  /* Blush & Aubergine */
  --paper:       #FCF8F7;
  --paper-deep:  #F6EEED;
  --surface:     #FFFFFF;
  --ink:         #3A2731;
  --ink-soft:    #6E5A63;
  --rule:        #E6DBDA;
  --rule-soft:   #F0E7E6;
  --accent:      #B08A90;
  --accent-deep: #8C6670;
  --accent-soft: #F5EAEA;
  --petal-1:     #C9A2A6;
  --petal-2:     #E0C4C6;
  --petal-3:     #F0DEDE;
  --on-accent:   #FFFFFF;

  --bloom-hero:  .42;
  --bloom-band:  .34;
  --bloom-card:  .30;
  --bloom-card-hover: .46;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 30px; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

.eyebrow {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0;
}

/* ---------- the mark + lockup ---------- */

.markbox { width: 54px; height: 54px; flex: none; }
.markbox svg { width: 100%; height: 100%; display: block; }

.lockup { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.lockup .names {
  display: flex; align-items: baseline; gap: .22em;
  font-family: var(--display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}
.lockup .n2 { color: var(--accent-deep); }

footer .markbox { width: 46px; height: 46px; }
footer .lockup .names { font-size: 22px; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.navlinks { display: flex; gap: 30px; align-items: center; }
.navlinks a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.navlinks a:hover { color: var(--ink); }
.navlinks .cta {
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 9px 20px; color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease;
}
.navlinks .cta:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 760px) { .navlinks a:not(.cta) { display: none; } }

.themetoggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 999px;
  transition: color 160ms ease, border-color 160ms ease;
}
.themetoggle:hover { color: var(--ink); border-color: var(--accent); }
.themetoggle .sun { display: none; }
.themetoggle .moon { display: block; }
:root[data-theme="light"] .themetoggle .sun { display: block; }
:root[data-theme="light"] .themetoggle .moon { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: 14.5px; font-weight: 500;
  text-decoration: none; padding: 14px 26px; border-radius: 999px;
  border: 1px solid var(--accent-deep); background: var(--accent-deep); color: var(--on-accent);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
  transform: translateY(-1px); box-shadow: 0 8px 22px -12px rgba(0,0,0,.55);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--accent); box-shadow: none; }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 88% -10%, var(--accent-soft) 0%, transparent 62%),
    linear-gradient(178deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-bottom: 1px solid var(--rule-soft);
}
.hero .bloom {
  position: absolute; right: -12%; top: 0;
  width: min(880px, 82vw); height: auto;
  opacity: var(--bloom-hero); pointer-events: none;
  transform: translateY(-46%);
  animation: drift 34s ease-in-out infinite alternate;
}
/* the translate is repeated in the keyframes because the animation replaces
   the whole transform, not just the parts it names */
@keyframes drift {
  from { transform: translateY(-46%) rotate(0deg) scale(1); }
  to   { transform: translateY(-46%) rotate(9deg) scale(1.045); }
}
.hero .inner { position: relative; z-index: 1; padding-top: 112px; padding-bottom: 104px; }
.hero h1 { position: relative; font-size: clamp(40px, 6.6vw, 72px); margin: 26px 0 0; max-width: 16ch; }
.hero .dek {
  position: relative; text-wrap: pretty;
  font-size: clamp(16.5px, 1.7vw, 19px);
  color: var(--ink-soft); max-width: 54ch; margin: 28px 0 0;
}
.hero .dek strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* ---------- sections ---------- */

section { padding: 92px 0; }
section + section { border-top: 1px solid var(--rule-soft); }

.sechead { max-width: none; }
.sechead h2 { font-size: clamp(28px, 3.9vw, 42px); margin: 16px 0 0; }
.sechead p { color: var(--ink-soft); margin: 18px 0 0; max-width: var(--measure); text-wrap: pretty; }

/* tinted band — the page alternates ground instead of relying on rules */
.band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(58% 100% at 84% 8%, var(--accent-soft) 0%, transparent 58%),
    var(--paper-deep);
  border-top: 0;
}
.band .bloom-lg {
  position: absolute; right: -10%; bottom: 0;
  width: min(760px, 74vw); height: auto;
  opacity: var(--bloom-band); pointer-events: none;
  transform: translateY(44%);
}
.band > .wrap { position: relative; z-index: 1; }

/* ---------- service cards ---------- */

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
.svc {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  padding: 34px 34px 36px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.svc:hover { border-color: var(--accent); transform: translateY(-2px); }
.svc::before {
  content: ""; position: absolute; left: 0; top: 0;
  height: 2px; width: 76px; background: var(--accent);
}
.svc .corner {
  position: absolute; right: -74px; top: -78px;
  width: 232px; height: auto; opacity: var(--bloom-card); pointer-events: none;
  transition: opacity 300ms ease, transform 600ms ease;
}
.svc:hover .corner { opacity: var(--bloom-card-hover); transform: rotate(8deg); }
.svc > * { position: relative; }
.svc .tag {
  display: block; font-size: 10.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px;
}
.svc h3 { font-family: var(--display); font-size: 25px; margin: 0 0 12px; }
.svc p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.svc p + p { margin-top: 11px; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ---------- stance columns ---------- */

.stance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; }
.stance .pt { position: relative; padding: 30px 34px 8px; border-left: 1px solid var(--rule); }
.stance .pt:first-child { padding-left: 0; border-left: 0; }
.stance .pt:last-child { padding-right: 0; }

/* the card's accent tab, replayed as a rule that grows */
.stance .pt::after {
  content: ""; position: absolute; left: 34px; right: 34px; top: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(.22); transform-origin: left center;
  transition: transform 420ms cubic-bezier(.22,.61,.36,1);
}
.stance .pt:first-child::after { left: 0; }
.stance .pt:last-child::after { right: 0; }
.stance .pt:hover::after { transform: scaleX(1); }

.stance h3 {
  position: relative; font-family: var(--display); font-size: 24px;
  margin: 0 0 12px; min-height: 2.24em; transition: color 300ms ease;
}
.stance .pt:hover h3 { color: var(--accent-deep); }
.stance p { position: relative; margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 860px) {
  .stance { grid-template-columns: 1fr; }
  .stance .pt { padding: 30px 0 8px; border-left: 0; }
  .stance .pt::after { left: 0; right: 0; }
}

/* ---------- process: it is a sequence, so it gets a spine ---------- */

.steps { position: relative; list-style: none; padding: 0; margin: 52px 0 0; max-width: 780px; }
.steps::before {
  content: ""; position: absolute; left: 23px; top: 34px; bottom: 34px;
  width: 1px; background: var(--rule);
}
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 26px; padding: 22px 0; align-items: start; }
.steps .n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 47px; height: 47px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--rule);
  font-family: var(--display); font-size: 21px; color: var(--accent-deep);
  line-height: 1; font-variant-numeric: tabular-nums;
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}
.steps li:hover .n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.steps li div { padding-top: 11px; }
.steps b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 5px; }
.steps span { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- contact + enquiry form ---------- */

.contact {
  position: relative; overflow: hidden; border-top: 0;
  background:
    radial-gradient(70% 130% at 12% 110%, var(--accent-soft) 0%, transparent 60%),
    var(--paper-deep);
}
.contact .bloom-lg {
  position: absolute; left: -9%; bottom: 0;
  width: min(520px, 54vw); height: auto;
  opacity: var(--bloom-band); pointer-events: none;
  transform: translateY(42%);
}
.contact .wrap { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(30px, 4.2vw, 44px); margin-top: 16px; }
.contact .fine { margin-top: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 44ch; text-wrap: pretty; }

.contactgrid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 64px; row-gap: 40px; align-items: start;
}
.contacthead { grid-column: 1 / -1; }
@media (max-width: 860px) { .contactgrid { grid-template-columns: 1fr; row-gap: 34px; } }

.enquiry { display: flex; flex-direction: column; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field label span {
  font-weight: 400; letter-spacing: .04em; text-transform: none;
  color: var(--accent-deep); font-size: 11.5px;
}
.field input,
.field textarea {
  font-family: var(--body); font-size: 15.5px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 13px 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.6; }
.field input:hover, .field textarea:hover { border-color: var(--accent); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.enquiry .btn { align-self: flex-start; margin-top: 6px; border: 0; cursor: pointer; }

/* ---------- footer ---------- */

footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 52px 0 64px; }
.footgrid { display: flex; flex-wrap: wrap; gap: 26px 40px; justify-content: space-between; align-items: center; }
.entity { font-size: 14px; color: var(--ink-soft); margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--rule-soft); max-width: 62ch; }
.entity strong { color: var(--ink); font-weight: 600; }
.colophon { margin: 34px 0 0; font-size: 12.5px; color: var(--ink-soft); }


/* ---------- footer navigation ---------- */

.footnav { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: flex-end; margin: 0; }
@media (max-width: 820px) { .footnav { justify-content: flex-start; } }
.footnav a {
  font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
  transition: color 160ms ease;
}
.footnav a:hover { color: var(--ink); }

/* ---------- long-form document pages (EULA, privacy, hosting) ---------- */

.doc { padding: 76px 0 40px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin: 16px 0 0; }
.doc .doc-meta {
  margin: 18px 0 0; font-size: 11.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep);
}
.doc .preamble {
  margin: 30px 0 0; font-size: 17px; color: var(--ink-soft);
  max-width: var(--measure); text-wrap: pretty;
}
.docbody { padding: 20px 0 92px; }
.docbody .wrap { max-width: 820px; }
.docbody h2 {
  font-family: var(--display); font-size: 26px;
  margin: 52px 0 14px; padding-top: 22px; border-top: 1px solid var(--rule-soft);
}
.docbody h3 { font-family: var(--body); font-weight: 600; font-size: 17px; margin: 30px 0 8px; }
.docbody p, .docbody li { color: var(--ink-soft); font-size: 16px; line-height: 1.72; }
.docbody p { margin: 0 0 16px; max-width: var(--measure); }
.docbody ul { padding-left: 22px; margin: 0 0 20px; max-width: var(--measure); }
.docbody li { margin-bottom: 8px; }
.docbody strong, .docbody b { color: var(--ink); font-weight: 600; }
.docbody table {
  width: 100%; border-collapse: collapse; margin: 26px 0;
  background: var(--surface); border: 1px solid var(--rule-soft); font-size: 14.5px;
}
.docbody .tablewrap { overflow-x: auto; }
.docbody th, .docbody td {
  padding: 13px 15px; border-bottom: 1px solid var(--rule-soft);
  text-align: left; vertical-align: top;
}
.docbody th {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-deep); background: var(--paper-deep);
}
.docbody td { color: var(--ink-soft); }
.docbody td strong { color: var(--ink); }

/* ---------- motion ---------- */

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