/* style.css — Surf's Web Design
   Dark theme: black + electric green. Bebas Neue for display headings. */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --surface:   #161616;
  --surface-2: #1e1e1e;
  --green:     #00f5a0;
  --green-dim: rgba(0, 245, 160, 0.12);
  --white:     #ffffff;

  /* Compat aliases — old var names still used in inline HTML styles */
  --navy:      #ffffff;
  --navy-mid:  rgba(255,255,255,0.8);
  --blue:      #00f5a0;
  --blue-lt:   #00f5a0;
  --sky:       rgba(0, 245, 160, 0.12);
  --orange:    #00f5a0;
  --orange-lt: #00f5a0;

  /* Gray scale remapped for dark theme */
  --gray-50:   #111111;
  --gray-100:  #1a1a1a;
  --gray-200:  rgba(255,255,255,0.1);
  --gray-400:  rgba(255,255,255,0.35);
  --gray-500:  rgba(255,255,255,0.55);
  --gray-700:  rgba(255,255,255,0.75);
  --gray-900:  #ffffff;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 4px 20px rgba(0,0,0,.6);
  --transition: 0.18s ease;
  --dot-grid:  radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  --dot-size:  22px 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section       { padding: 5rem 0; }
.section-sm    { padding: 3rem 0; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; }

.btn-primary {
  background: var(--green);
  color: #0a0a0a;
  border-color: var(--green);
}
.btn-primary:hover { background: #33f7b4; border-color: #33f7b4; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.5); }

.btn-blue {
  background: var(--green);
  color: #0a0a0a;
  border-color: var(--green);
}
.btn-blue:hover { background: #33f7b4; border-color: #33f7b4; }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.1);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }

.btn-danger { background: #dc2626; color: white; border-color: #dc2626; }
.btn-danger:hover { background: #ef4444; border-color: #ef4444; }

.btn-success { background: #16a34a; color: white; border-color: #16a34a; }
.btn-success:hover { background: #22c55e; border-color: #22c55e; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
}

.nav-brand span {
  color: var(--green);
  text-shadow: 0 0 18px rgba(0, 245, 160, 0.5);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); background: var(--green-dim); }

.nav-cta { display: none; }

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  background: #0d0d0d;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-drawer.open { display: block; }
.nav-drawer ul { list-style: none; }
.nav-drawer a {
  display: block;
  padding: 0.75rem 0;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer .btn { margin-top: 1rem; width: 100%; justify-content: center; }

@media (min-width: 768px) {
  .nav-links  { display: flex; }
  .nav-cta    { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  background-image: var(--dot-grid);
  background-size: var(--dot-size);
  color: white;
  padding: 5rem 0 0;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero-badge {
  display: inline-block;
  background: var(--green-dim);
  border: 1px solid rgba(0, 245, 160, 0.3);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  max-width: 760px;
  color: var(--white);
}

.hero-title em {
  font-style: normal;
  color: var(--green);
  text-shadow: 0 0 30px rgba(0, 245, 160, 0.4);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-wave {
  display: block;
  width: 100%;
  margin-bottom: -2px;
}

/* ── Cards / grid ────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 580px) { .card-grid.col-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .card-grid.col-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid.col-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); border-color: rgba(0, 245, 160, 0.3); }

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-dim);
  border: 1px solid rgba(0, 245, 160, 0.18);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.card-body {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--bg);
  background-image: var(--dot-grid);
  background-size: var(--dot-size);
  color: white;
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cta-band .section-title { color: white; }
.cta-band .section-sub   { color: rgba(255,255,255,0.5); margin: 0 auto 2rem; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Process steps ───────────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem; }
.step-body p  { font-size: 0.92rem; color: var(--gray-500); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

.pricing-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--surface);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--green);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-400);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.75rem;
}

.pricing-features li {
  font-size: 0.92rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--gray-700);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.pricing-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Portfolio placeholders ───────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 580px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-item {
  background: var(--surface);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--gray-400);
  gap: 0.5rem;
}

.portfolio-item .placeholder-icon { font-size: 2rem; }
.portfolio-item p { font-size: 0.82rem; font-weight: 500; }

/* ── Contact form ─────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1fr; } }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--surface);
  transition: border-color var(--transition);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-msg {
  font-size: 0.9rem;
  min-height: 1.4em;
  margin-top: 0.75rem;
}
.form-msg.error   { color: #f87171; }
.form-msg.success { color: var(--green); font-weight: 600; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: var(--green-dim);
  border: 1px solid rgba(0, 245, 160, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 0.15rem;
}

.contact-info-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--white);
}

/* ── Page hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
  background: var(--bg);
  background-image: var(--dot-grid);
  background-size: var(--dot-size);
  color: white;
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.page-hero-sub {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  max-width: 520px;
}

/* ── About ───────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-portrait {
  background: var(--surface);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--green);
  max-width: 340px;
}

.about-body h2 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.about-body p  { color: var(--gray-500); margin-bottom: 1rem; line-height: 1.75; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 680px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.faq-q { font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.faq-a { font-size: 0.93rem; color: var(--gray-500); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: #050505;
  color: rgba(255,255,255,0.4);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--green); }
.footer-tagline { font-size: 0.88rem; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 0.85rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Admin login ─────────────────────────────────────────────────────────── */
.admin-wrap {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

.admin-card h1 { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 0.25rem; }
.admin-sub { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 1.75rem; }
.admin-error { font-size: 0.85rem; color: #f87171; min-height: 1.2em; margin-top: 0.6rem; }

/* ── Admin dashboard ─────────────────────────────────────────────────────── */
.admin-header {
  background: #050505;
  color: white;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-brand { font-weight: 800; font-size: 0.95rem; }
.admin-brand span { color: var(--green); opacity: 0.85; font-weight: 400; font-size: 0.8rem; }
.admin-meta { font-size: 0.82rem; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 1rem; }

.admin-main { max-width: 1000px; margin: 0 auto; padding: 2rem 1.25rem; }

.admin-page-title { font-size: 1.35rem; font-weight: 800; color: var(--white); margin-bottom: 1.5rem; }

.leads-table-wrap { overflow-x: auto; }

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.leads-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: var(--surface);
}

.leads-table td {
  padding: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
  color: var(--gray-700);
}

.leads-table tr:hover td { background: var(--surface); }
.leads-table .name { font-weight: 600; color: var(--white); }
.leads-table .msg  { max-width: 300px; white-space: pre-wrap; word-break: break-word; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new       { background: rgba(0, 245, 160, 0.15); color: var(--green); }
.badge-contacted { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); }

.actions-col { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.95rem;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--surface-2);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateY(0); }
