/* ============================================================
   Round4Media — Elevated Design System
   Modern / Techy / Data-Forward
   ============================================================ */

:root {
  /* Core palette */
  --bg:            #070d09;
  --bg-mid:        #0c1610;
  --bg-surface:    #101a12;
  --paper:         #131e15;
  --paper-hi:      #192314;

  /* Text */
  --ink:           #e4f0e7;
  --ink-soft:      #7a9b80;
  --ink-muted:     #4a6350;

  /* Brand */
  --brand:         #1db564;
  --brand-dark:    #0f8a46;
  --brand-dim:     #0b5c30;
  --brand-glow:    rgba(29, 181, 100, 0.18);
  --brand-glow-sm: rgba(29, 181, 100, 0.10);

  /* Accent */
  --accent:        #38bdf8;
  --accent-soft:   rgba(56, 189, 248, 0.12);

  /* Borders */
  --line:          rgba(29, 181, 100, 0.14);
  --line-hi:       rgba(29, 181, 100, 0.32);
  --line-subtle:   rgba(255, 255, 255, 0.06);

  /* Shadows & glows */
  --shadow:        0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.4);
  --glow-card:     0 0 0 1px var(--line), 0 0 24px var(--brand-glow-sm);
  --glow-card-hi:  0 0 0 1px var(--line-hi), 0 0 40px var(--brand-glow);

  /* Radius */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    /* subtle dot grid */
    radial-gradient(circle, rgba(29, 181, 100, 0.25) 1px, transparent 1px),
    /* green bloom top-left */
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(29, 181, 100, 0.07) 0%, transparent 70%),
    /* blue bloom top-right */
    radial-gradient(ellipse 50% 40% at 100% 5%, rgba(56, 189, 248, 0.05) 0%, transparent 60%),
    /* green bloom bottom-right */
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(29, 181, 100, 0.05) 0%, transparent 70%);
  background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.muted { color: var(--ink-soft); }

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section       { padding: 80px 0; }
.section-tight { padding: 56px 0; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line-subtle);
  background: rgba(7, 13, 9, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand lockup */
.brand, .brand-lockup {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-lockup img { height: 36px; width: auto; }
.site-footer .brand-lockup img { height: 30px; }

/* Main nav */
.main-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(29, 181, 100, 0.08);
}

.main-nav a.active {
  color: var(--brand);
  background: rgba(29, 181, 100, 0.1);
}

/* ── Hamburger ─────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  cursor: pointer;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.hamburger:hover {
  border-color: var(--line-hi);
  background: rgba(29, 181, 100, 0.06);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 13, 9, 0.97);
  backdrop-filter: blur(20px);
  z-index: 199;
  flex-direction: column;
  padding: 32px 6vw;
  gap: 8px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-nav-drawer.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-nav-drawer a {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-subtle);
  transition: color 0.2s, padding-left 0.2s;
  letter-spacing: -0.01em;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
  color: var(--brand);
  padding-left: 8px;
}

.mobile-nav-drawer .mobile-cta {
  margin-top: 24px;
  align-self: flex-start;
}

/* ── Buttons ────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.18);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.button:hover::after { left: 120%; }

.button:hover,
.button:focus-visible {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 181, 100, 0.35);
  color: #fff;
}

.button.small {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.ghost::after { display: none; }

.button.ghost:hover,
.button.ghost:focus-visible {
  background: rgba(29, 181, 100, 0.08);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: none;
  transform: translateY(-1px);
}

/* ── Hero Grid ──────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy p {
  margin-top: 18px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 181, 100, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.7);
}

.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(7, 13, 9, 0.88);
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 22px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 181, 100, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--line-hi);
  box-shadow: var(--glow-card);
  transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
  font-size: 0.91rem;
}

.card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.card ul li::before {
  content: "▸";
  color: var(--brand);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Grid layouts ───────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Metric strip ───────────────────────────────────────── */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.metric::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0.5;
}

.metric:hover {
  border-color: var(--line-hi);
  box-shadow: var(--glow-card);
}

.metric strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand);
}

.metric .muted {
  font-size: 0.83rem;
  line-height: 1.4;
}

/* ── Photo wall ─────────────────────────────────────────── */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-wall img {
  border-radius: var(--radius-sm);
  height: 200px;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.65);
  border: 1px solid var(--line);
  transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-wall img:hover {
  filter: saturate(0.8) brightness(0.8);
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(29, 181, 100, 0.2);
}

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease, background 0.3s ease;
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.price-card:hover,
.price-card.selected {
  border-color: var(--line-hi);
  box-shadow: var(--glow-card-hi);
  transform: translateY(-4px);
}

.price-card.featured {
  border-color: rgba(29, 181, 100, 0.35);
  background: linear-gradient(160deg, rgba(29, 181, 100, 0.06) 0%, var(--paper) 50%);
}

.price-card.featured::before,
.price-card:hover::before,
.price-card.selected::before {
  opacity: 1;
}

.price-card.selected {
  background: linear-gradient(160deg, rgba(29, 181, 100, 0.1) 0%, var(--paper) 60%);
}

/* Featured badge */
.price-card.featured > h3::after {
  content: "Recommended";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  background: rgba(29, 181, 100, 0.15);
  border: 1px solid rgba(29, 181, 100, 0.3);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
  text-transform: uppercase;
  vertical-align: middle;
}

.price-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.price {
  margin: 16px 0 14px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.price small {
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.price-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.price-link:hover { color: var(--brand); }

.price-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  display: grid;
  gap: 9px;
  font-size: 0.88rem;
  flex: 1;
}

.price-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-card ul li::before {
  content: "✓";
  color: var(--brand);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 800;
}

/* ── Inline graphic ─────────────────────────────────────── */
.inline-graphic {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 16px;
  overflow: hidden;
}

/* ── Booking form ───────────────────────────────────────── */
.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-row { display: grid; gap: 6px; }
.form-row-wide { grid-column: 1 / -1; }

label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input, select, textarea {
  font: inherit;
  color: var(--ink);
  border: 1px solid rgba(29, 181, 100, 0.18);
  border-radius: var(--radius-xs);
  padding: 11px 13px;
  background: rgba(7, 13, 9, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.93rem;
}

input::placeholder, textarea::placeholder { color: var(--ink-muted); }

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 181, 100, 0.12);
}

textarea { resize: vertical; }

select { cursor: pointer; }
select option { background: var(--bg-surface); color: var(--ink); }

.form-message {
  margin: 0;
  min-height: 22px;
  font-size: 0.88rem;
  color: var(--brand);
}

.confirmation-card {
  margin-top: 16px;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 181, 100, 0.3);
  background: linear-gradient(135deg, rgba(29, 181, 100, 0.08) 0%, transparent 100%);
}

.confirmation-card h3 { color: var(--brand); }
.hidden { display: none !important; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line-subtle);
  margin-top: 48px;
  padding: 36px 0 100px;
  background: var(--bg);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p { color: var(--ink-soft); font-size: 0.88rem; }
.footer-grid a { color: var(--ink-soft); transition: color 0.2s; }
.footer-grid a:hover { color: var(--brand); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Persistent bar ─────────────────────────────────────── */
.persistent-booking {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  border-top: 1px solid var(--line);
  background: rgba(7, 13, 9, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.persistent-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.persistent-inner p {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* ── Reveal animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.from-left {
  transform: translateX(-24px);
}

.reveal.from-right {
  transform: translateX(24px);
}

.reveal.scale-in {
  transform: scale(0.94) translateY(12px);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── Price (in hero detail pages) ──────────────────────── */
.hero-copy .price {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--brand);
  margin-top: 16px;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
  border: 1px solid var(--line);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-dim); }

/* ── Selection ──────────────────────────────────────────── */
::selection { background: rgba(29, 181, 100, 0.25); color: var(--ink); }

/* ── Focus visible ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .split,
  .pricing-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .hero-media { min-height: 300px; }

  .main-nav,
  .site-header .button.small:not(.hamburger-cta) {
    display: none;
  }

  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .section      { padding: 64px 0; }
  .section-tight { padding: 44px 0; }

  .photo-wall { grid-template-columns: 1fr; }

  .persistent-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
    min-height: 80px;
    gap: 10px;
  }

  .site-footer { padding-bottom: 120px; }

  .booking-form { padding: 18px; }

  h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}

/* ── Utility: number highlight in pricing ──────────────── */
.price-highlight {
  color: var(--brand);
  font-weight: 800;
}

/* ── Techy scan-line overlay on hero images ─────────────── */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Active nav glow dot ────────────────────────────────── */
.main-nav a.active {
  position: relative;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 0 6px var(--brand);
}
