/* ==========================================
   Fyrstads Redovisning — Redovisningstjänster
   Modern & clean styles
   ========================================== */

:root {
  --primary: #1a3c5e;
  --primary-light: #2a5a8a;
  --accent: #c8a96e;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --max-w: 1100px;
  --nav-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------ Navigation ------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ------ Hero ------ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  background-image:
    linear-gradient(rgba(18, 36, 58, 0.55), rgba(18, 36, 58, 0.62)),
    url('bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-top: var(--nav-h);
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ------ Sections ------ */
.section {
  padding: 5rem 0;
}

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

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--muted);
}

/* ------ Grid ------ */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

/* ------ Cards ------ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ------ Pricing ------ */
.pricing .card {
  text-align: center;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.card-featured {
  border-color: var(--accent);
  position: relative;
  transform: scale(1.03);
}

.card-featured:hover {
  transform: scale(1.03) translateY(-2px);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 20px;
}

.card-price ul {
  list-style: none;
  text-align: left;
  margin-top: 1rem;
}

.card-price ul li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

/* ------ About ------ */
.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.about-list {
  list-style: none;
  margin-top: 1.5rem;
}

.about-list li {
  padding: 0.35rem 0;
  font-weight: 500;
}

/* ------ Contact ------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

/* ------ Buttons ------ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #b8985e;
}

/* ------ Footer ------ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* ------ Utilities ------ */
.text-center {
  text-align: center;
}

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

@media (max-width: 680px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .card-featured {
    transform: none;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .nav.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .pricing .card {
    max-width: 400px;
    margin: 0 auto;
  }
}
