/*
  SpudioFX starter website styles
  - Dark, modern visual direction
  - Mobile-first responsive layout
*/

:root {
  --bg: #070a13;
  --bg-soft: #0e1322;
  --card: #121a30;
  --text: #f5f7ff;
  --muted: #a9b1ca;
  --primary: #5c8dff;
  --primary-hover: #7aa3ff;
  --border: #23304f;
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top right, #18294f 0%, var(--bg) 30%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-soft);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-hover);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.section-heading {
  margin-bottom: 2rem;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #08102a;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--primary);
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background-color: rgba(7, 10, 19, 0.86);
  border-bottom: 1px solid rgba(35, 48, 79, 0.55);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  margin-left: 0.4rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 0.34rem 0;
  background: var(--text);
}

/* Hero */
.hero {
  padding-top: 6.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Generic cards */
.card-grid {
  display: grid;
  gap: 1rem;
}

.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 34%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.card p {
  color: var(--muted);
}

.project-card .btn {
  margin-top: 0.8rem;
}

/* Why choose us */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 48, 0.65);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #11204a 0%, #0a1228 100%);
}

.cta-inner {
  text-align: center;
}

.cta-inner p {
  color: var(--muted);
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b1224;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(122, 163, 255, 0.35);
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  background: #060910;
  border-top: 1px solid var(--border);
  padding-top: 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.4rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  padding: 1.2rem 0;
  border-top: 1px solid rgba(35, 48, 79, 0.55);
  margin-top: 1.2rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .four-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .three-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 4.4rem;
    left: 0;
    right: 0;
    background: rgba(6, 9, 16, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.2rem 1.3rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav ul {
    width: 100%;
    flex-direction: column;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav li a {
    display: block;
    padding: 0.35rem 0;
  }

  .nav-cta {
    margin: 0.6rem 0 0;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 5.4rem;
  }

  .four-col,
  .three-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
