/* ============================================================
   Global CSS – Ringerike Laserklinikk
   Design: cream background, lime green accent, Raleway font
   ============================================================ */

:root {
  --color-accent:       #6ABF00;
  --color-accent-dark:  #559900;
  --color-bg:           #F5F0E8;
  --color-bg-white:     #FFFFFF;
  --color-text:         #1A1A1A;
  --color-text-mid:     #333333;
  --color-text-muted:   #888888;
  --color-nav:          #2C2C2C;
  --color-card-bg:      #C8C4C4;
  --color-divider:      rgba(0,0,0,0.08);
  --font-sans: 'Raleway', 'Segoe UI', system-ui, sans-serif;
  --max-width: 1000px;
  --radius: 4px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-mid);
  background: var(--color-bg);
  line-height: 1.7;
}

/* ==================== CONTAINER ==================== */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==================== HEADER ==================== */
.site-header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-bar {
  display: flex;
  justify-content: center;
  padding: 1.1rem 1.5rem 0.6rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo-icon {
  width: 54px;
  height: 54px;
}

.logo-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  white-space: nowrap;
}

.nav-bar {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
}

.site-nav {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 42px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--color-nav);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a[aria-current="page"] {
  color: var(--color-accent);
}

/* Dropdown */
.has-dropdown { position: relative; }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--color-bg-white);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 200;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.dropdown li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--color-nav);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.2s, background 0.2s;
}

.dropdown li a:hover {
  color: var(--color-accent);
  background: #f9f9f9;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-nav);
  font-size: 1.4rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 0.45rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
}

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

/* All button variants map to ghost style */
.btn-primary, .btn-outline, .btn-ghost {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}

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

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #3a3020;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.75;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-block: 3rem;
  width: 100%;
}

.hero-card {
  background: rgba(255, 250, 243, 0.93);
  padding: 2.5rem 2.25rem;
  max-width: 460px;
  border-radius: var(--radius);
}

.hero-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.2;
}

.hero-card p {
  font-size: 0.93rem;
  color: var(--color-text-mid);
  margin: 0 0 1.75rem;
  line-height: 1.75;
}

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

/* Plain (no image) hero – used on inner pages */
.hero-plain {
  background: var(--color-bg);
  padding-block: 3.5rem;
}

.hero-plain .container {
  padding-block: 0;
}

.hero-plain h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.hero-plain p {
  font-size: 0.97rem;
  color: var(--color-text-mid);
  max-width: 60ch;
  margin: 0 0 1.5rem;
}

/* ==================== SECTIONS ==================== */
.section {
  padding-block: 4rem;
}

.section-label,
.section-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

/* ==================== CARD GRID ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  margin-top: 2rem;
}

.card {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-divider);
}

.card:last-child { border-bottom: none; }

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.card p {
  margin: 0 0 0.6rem;
  font-size: 0.87rem;
  color: var(--color-text-mid);
  line-height: 1.65;
}

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

.card a:hover h3 { color: var(--color-accent); }

.les-mer {
  font-size: 0.78rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.les-mer:hover { text-decoration: underline; }

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--color-text);
  margin-top: 0;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 300; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 400; }
h3 { font-size: 1rem; font-weight: 600; }

a { color: var(--color-accent); }

/* ==================== PROSE ==================== */
.prose { max-width: 72ch; }
.prose p { margin-block: 0.75rem; }
.prose h2 { margin-top: 2rem; font-size: 1.3rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--color-accent); }

/* ==================== BEHANDLING HERO IMG ==================== */
.behandling-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* ==================== PRICE LIST ==================== */
.price-card {
  background: var(--color-card-bg);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  max-width: 560px;
}

.price-card h3 {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ==================== OM MEG ==================== */
.om-meg-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--color-text);
}

/* ==================== TESTIMONIALS ==================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  padding: 1.5rem;
  background: var(--color-bg-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

.testimonial blockquote {
  margin: 0 0 0.75rem;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-text-mid);
}

.testimonial cite {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--color-bg-white);
  border-top: 1px solid #e8e4dc;
  padding-block: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

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

/* ==================== SOCIAL SIDEBAR ==================== */
.social-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.88);
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.social-sidebar a:hover { background: #fff; color: var(--color-accent); }
.social-sidebar svg { width: 16px; height: 16px; }

/* ==================== CONTACT BUBBLE ==================== */
.contact-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 200;
  transition: background 0.2s, transform 0.2s;
}

.contact-bubble:hover {
  background: var(--color-accent-dark);
  transform: scale(1.08);
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: var(--color-bg);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 200;
    padding: 0.5rem 0 1rem;
  }

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

  .nav-links > li > a {
    padding: 0.7rem 1.5rem;
    font-size: 0.82rem;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }

  .has-dropdown.open .dropdown { display: block; }

  .social-sidebar { display: none; }

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

  .hero { min-height: 360px; }
  .hero-card { max-width: 100%; padding: 1.75rem 1.25rem; }
}
