/* ETHELES STUDIO — refined palette (sage/forest + controlled CTA accent) */

:root {
  --accent:     #58a876; /* softer sage/forest green */
  --accent-cta: #2fd06a; /* reserved strictly for primary CTAs */
  --accent-d:   #3b7a52;
  --ink:        #0b100d;
  --bg:         #061120;
  --bg2:        #0d2038;
  --panel:      rgba(255, 255, 255, 0.04);
  --panel2:     rgba(255, 255, 255, 0.07);
  --line:       rgba(255, 255, 255, 0.11);
  --line2:      rgba(255, 255, 255, 0.20);
  --text:       #eef3f0;
  --muted:      #a2b2bf;
  --chancery:   'Cormorant Garamond', 'Apple Chancery', 'URW Chancery L', serif;
  --maxw:       1060px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(1050px 580px at 78% -10%, rgba(88, 168, 118, 0.09), transparent 60%),
    radial-gradient(900px 680px at -10% 110%, rgba(63, 134, 255, 0.08), transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

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

/* ── Top bar ──────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(6, 17, 32, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 11px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-name {
  font-family: var(--chancery); font-style: italic; font-weight: 700;
  font-size: 20px; letter-spacing: 0.6px; white-space: nowrap; line-height: 1;
}
.g { color: var(--accent); }
.w { color: #ffffff; }

.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topnav a {
  padding: 8px 13px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--muted); transition: color 0.15s ease, background 0.15s ease;
}
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.topnav .btn { margin-left: 6px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; border: 0; cursor: pointer;
  font-family: inherit; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--accent-cta); color: #04120a;
  box-shadow: 0 6px 20px rgba(47, 208, 106, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(47, 208, 106, 0.36); }
.btn-ghost { border: 1px solid var(--line2); color: var(--text); background: var(--panel); }
.btn-ghost:hover { background: var(--panel2); }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ── Type & sections ──────────────────────────────────────── */
section { padding: 54px 0; }
section + section { padding-top: 0; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
h1 { font-size: clamp(32px, 5.5vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(24px, 3.8vw, 32px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 12px; line-height: 1.2; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
p { color: var(--muted); }
.lede { color: var(--muted); max-width: 640px; font-size: 16.5px; }
.lede.big { font-size: 18px; }
strong, b { color: var(--text); font-weight: 600; }

.page-head { padding: 52px 0 4px; }
.page-head .lede { margin-top: 14px; }

/* ── Cards & grids ────────────────────────────────────────── */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 780px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  background: var(--panel); backdrop-filter: blur(8px);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; }
.card .em { font-size: 22px; display: block; margin-bottom: 10px; line-height: 1; }
a.card { color: var(--text); display: block; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
a.card:hover { text-decoration: none; border-color: var(--line2); background: var(--panel2); transform: translateY(-2px); }
.more { color: var(--accent); font-size: 14px; font-weight: 600; display: inline-block; margin-top: 12px; }

/* ── Bullet lists inside cards & service blocks ───────────── */
.bullets { list-style: none; margin-top: 10px; display: grid; gap: 7px; }
.bullets li { color: var(--muted); font-size: 14px; padding-left: 18px; position: relative; }
.bullets li::before { content: "•"; color: var(--accent); position: absolute; left: 2px; font-weight: 700; }

/* ── Split feature block ──────────────────────────────────── */
.split {
  border: 1px solid var(--line); border-radius: 20px; background: var(--panel);
  backdrop-filter: blur(8px); padding: 28px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 800px) { .split { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  font-size: 13px; color: var(--text); background: rgba(255, 255, 255, 0.03);
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px;
  background: rgba(255, 255, 255, 0.03); text-align: center;
}
.tile .em { font-size: 24px; display: block; margin-bottom: 6px; }
.tile .nm { font-size: 14px; font-weight: 600; color: var(--text); }
.tile .md { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ── Service detail rows (services page) ──────────────────── */
.svc { border-top: 1px solid var(--line); padding: 28px 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .svc { grid-template-columns: 250px 1fr; gap: 36px; align-items: start; } }
.svc-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.svc-title .em { display: block; font-size: 24px; margin-bottom: 6px; }
.svc-for { color: var(--accent); font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.checklist { list-style: none; display: grid; gap: 8px; }
.checklist li { color: var(--text); font-size: 14.5px; padding-left: 20px; position: relative; }
.checklist li::before { content: "◆"; color: var(--accent); position: absolute; left: 0; font-size: 10px; top: 5px; }

/* ── Compact step cards ───────────────────────────────────── */
.steps { counter-reset: step; list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 58px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  color: var(--muted); font-size: 14.5px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(88, 168, 118, 0.14); border: 1px solid rgba(88, 168, 118, 0.45);
  color: var(--accent); font-weight: 700; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center;
}
.steps li b { display: block; margin-bottom: 2px; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band {
  margin-top: 8px; border: 1px solid var(--line2); border-radius: 22px; padding: 34px 28px;
  background: linear-gradient(140deg, rgba(88, 168, 118, 0.10), rgba(255, 255, 255, 0.03));
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band .lede { margin: 0 auto 20px; }

/* ── Forms ────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; max-width: 720px; margin-top: 26px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(88, 168, 118, 0.16);
}
select option { background: #0d2038; color: var(--text); }
::placeholder { color: #758899; }
@media (min-width: 700px) { .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.req { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot p { font-size: 13.5px; }

/* ── Footer ───────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 40px 0 48px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot-grid h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); margin-bottom: 12px;
}
.foot-links { display: grid; gap: 8px; }
.foot-links a { color: var(--muted); font-size: 14.5px; }
.foot-links a:hover { color: var(--accent); }
.foot-about p { font-size: 14px; margin-top: 10px; max-width: 300px; }
.foot-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 68px 0 54px; text-align: center; }
.hero .hex { width: 84px; height: 84px; margin: 0 auto 18px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); }
.wordmark {
  font-family: var(--chancery); font-style: italic; font-weight: 700;
  font-size: clamp(38px, 8.2vw, 68px); letter-spacing: 1px; line-height: 1.1;
  text-shadow: 0 2px 0 #000, 0 3px 12px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}
.wordmark .l { display: inline-block; }
.wordmark .sp { display: inline-block; width: 0.32em; }
.hero .tagline { margin: 16px auto 0; font-size: 18px; max-width: 620px; }
.hero .cta-row { margin-top: 28px; justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  .hero .hex { opacity: 0; transform: scale(0.4) translateY(10px) rotate(-12deg);
               animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.3) 0.15s forwards; }
  .wordmark .l { opacity: 0; transform: translateY(-20px) rotate(-8deg) scale(0.6);
                 animation: drop 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.25) forwards; }
  .hero .tagline, .hero .cta-row { opacity: 0; animation: fade 0.55s ease 1.25s forwards; }
  @keyframes pop  { to { opacity: 1; transform: none; } }
  @keyframes drop { to { opacity: 1; transform: none; } }
  @keyframes fade { to { opacity: 1; } }
}