/* =============================================
   Nerds Who Fish, LLC — Styles
   ============================================= */

:root {
  /* Dark theme (default) — matches the dark logo */
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #222636;
  --bg-nav: rgba(15, 17, 23, 0.9);
  --text: #e4e6ed;
  --text-muted: #9ca0ae;
  --text-heading: #f0f2f7;
  --accent: #39e07a;        /* neon green from logo */
  --accent-hover: #2bc466;
  --accent-orange: #f5883e; /* orange from logo fishhook */
  --border: #2a2e3a;
  --input-bg: #151821;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --max-width: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Light theme override */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --bg-nav: rgba(247, 248, 250, 0.92);
    --text: #2a2d3a;
    --text-muted: #6b7085;
    --text-heading: #111827;
    --accent: #1a8a4a;
    --accent-hover: #15703d;
    --accent-orange: #e0742e;
    --border: #e0e3ea;
    --input-bg: #ffffff;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Typography ---- */
h1, h2, h3 {
  color: var(--text-heading);
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-heading); }
.nav-links a.btn-sm,
.nav-links a.btn-sm:hover { color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0f1117;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #0f1117;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.btn-sm:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-full { width: 100%; }

/* ---- Hero ---- */
.hero {
  padding: 140px 0 80px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-accent { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Services ---- */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(57, 224, 122, 0.1);
  color: var(--accent);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-features li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- Clients ---- */
.clients {
  padding: 80px 0;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.client-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.client-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.client-screenshot {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.client-card strong {
  font-size: 1.1rem;
  color: var(--text);
}
.client-card span {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.client-link {
  color: var(--accent) !important;
  font-weight: 600;
  margin-top: 4px;
}

/* ---- About ---- */
.about {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.about-content {
  max-width: 720px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.75;
}
.about-content strong { color: var(--text-heading); }

.about-highlights {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.highlight span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---- Contact ---- */
.contact {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-detail a {
  color: var(--accent);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.form-success p {
  color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--text-heading); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Utilities ---- */
@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
  .services, .about, .contact { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
