/* ─── Variables ─────────────────────────────────────────────── */
:root {
  /* Base palette tuned to match logo-fallback (deep green + warm sand) */
  --bg:          #061513;
  --accent:      #fbd5a3;
  --accent-soft: rgba(251,213,163,0.22);
  --text-main:   #f6f5f1;
  --text-muted:  #aeb2aa;
  --max-width:   1120px;
  --bar-h:       64px;
  --logo-bg:     #26554e;
  --logo-fg:     #fbd5a3;
  --sq:          168px;

  /*
    How wide each arc column is, as a fraction of the centre column width.
    JS reads --arc-fraction to compute actual px width after layout.
    Increase to push squares further out; decrease to bring them closer in.
  */
  --arc-fraction: 0.22;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  /* Softer, brand-aligned background (green/teal instead of blue) */
  background: radial-gradient(ellipse 100% 70% at 50% 0%, #16332c 0%, var(--bg) 65%);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

/* ─── Topbar ────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--bar-h);
  background: rgba(6,17,15,0.88);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(251,213,163,0.22);
}

.topbar-inner {
  width: 100%; height: 100%;
  padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
}

.logo-wrap { display: flex; align-items: center; }
.logo-img  { height: calc(var(--bar-h) - 16px); width: auto; display: none; }

.logo-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--logo-bg); color: var(--logo-fg);
  height: calc(var(--bar-h) - 18px); padding: 0 1.1rem;
  border-radius: 8px; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.topbar-nav { display: flex; align-items: center; gap: 2rem; }
.topbar-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; transition: color 0.18s;
}
.topbar-nav a:hover { color: var(--text-main); }
.topbar-cta {
  color: var(--accent) !important;
  border: 1px solid rgba(251,213,163,0.45);
  padding: 0.32rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem !important;
  transition: background 0.18s, color 0.18s !important;
}
.topbar-cta:hover { background: var(--accent); color: #fff !important; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  width: 100vw;
  min-height: 100vh;
  padding-top: var(--bar-h);
  position: relative;   /* arcs position absolute inside this */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 45% 80% at   0% 50%, rgba(251,213,163,0.20) 0%, transparent 70%),
    radial-gradient(ellipse 45% 80% at 100% 50%, rgba(38,85,78,0.40)    0%, transparent 72%);
  pointer-events: none; z-index: 0;
}

/* ─── SVG connectors ────────────────────────────────────────── */
.connectors {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
  z-index: 1;
}

.connectors path {
  fill: none;
  stroke: rgba(251,213,163,0.10);
  stroke-width: 1;
}

/* ─── Arc containers ────────────────────────────────────────── */
/*
  Both arcs are absolute, vertically centred inside the hero.
  Their horizontal position is set by JS relative to the centre column edges.
  Width is set by JS as a fraction of the centre column width.
*/
.arc {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 5;
  overflow: visible;   /* squares can bleed inward over the text column */
  pointer-events: none;
}

#arc-left  { left:  0; }
#arc-right { right: 0; }

/* ─── Floating squares ──────────────────────────────────────── */
.fsq {
  position: absolute;
  width:  var(--sq);
  height: var(--sq);
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 16px rgba(89,186,255,0.07);
  will-change: transform;
  cursor: default;
  pointer-events: auto;
}

/* ─── Centre column ─────────────────────────────────────────── */
.hero-centre {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Wide centre — takes ~56% of viewport on large screens */
  width: min(56vw, 960px);
  padding: 4rem 0;
  margin-top: -50px;
}

.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.22rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35); color: var(--text-muted);
  font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #16ff86; box-shadow: 0 0 9px rgba(22,255,134,0.9);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.8rem;
}

.hero-phone {
  display: inline-block;
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  text-shadow:
    0 0 14px rgba(251,213,163,0.80),
    0 0 32px rgba(251,213,163,0.45);
  border-bottom: 2px solid rgba(251,213,163,0.60);
  padding-bottom: 0.1em;
  margin-bottom: 1.8rem;
  transition: text-shadow 0.2s, border-color 0.2s;
}

.hero-phone:hover {
  text-shadow: 0 0 22px rgba(251,213,163,0.95), 0 0 50px rgba(251,213,163,0.6);
  border-color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

/* ─── Content section ───────────────────────────────────────── */
.content {
  background: radial-gradient(circle at top, #0b1915 0, #050a09 60%);
  padding: 4rem 3rem;
}

.content-inner { max-width: var(--max-width); margin: 0 auto; }

.section-label {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem;
}
.section-title { font-size: 1.4rem; margin-bottom: 1.4rem; }

.section-row { display: grid; gap: 1.8rem; margin-bottom: 2.4rem; }
.section-row.two-cols   { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
.section-row.three-cols { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }

.section-block {
  background: radial-gradient(circle at top left, rgba(38,85,78,0.40) 0, rgba(6,17,15,0.98) 55%);
  border-radius: 1rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(251,213,163,0.20);
}
.section-block h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.section-block p  { font-size: 0.88rem; color: var(--text-muted); }
.section-block img {
  display: block; width: 100%; border-radius: 0.8rem;
  margin-top: 0.9rem; object-fit: cover; max-height: 200px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.pill {
  font-size: 0.76rem; padding: 0.22rem 0.65rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .arc { display: none; }
  .hero-centre { width: 100%; padding: 3rem 1.5rem; }
  :root { --sq: 80px; }
  .topbar-nav a:not(.topbar-cta) { display: none; }
  .topbar-inner { padding: 0 1.5rem; }
  .section-row.two-cols { grid-template-columns: 1fr; }
  .content { padding: 3rem 1.5rem; }
}
