/* Theme */
:root {
  --lightblue: #6a9ed8;
  --blue: #296dac;
  --sand: #f0a434;
  --orange: #ec6933;
  --red: #97341f;
}

/* Fonts */
@font-face {
  font-family: 'Inter';
  src: url('../resources/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../resources/fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../resources/fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../resources/fonts/lora-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../resources/fonts/lora-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../resources/fonts/lora-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Base */
body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--blue);
  color: #fff;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  height: 2.5rem;
  width: auto;
}

header h1 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--lightblue);
  font-weight: 500;
  transition: color 0.2s;
}

nav a.nav-btn {
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--lightblue);
  border-radius: 999px;
  color: #fff;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

nav a.nav-btn:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: #fff;
}

nav a:hover {
  color: var(--sand);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--lightblue) 100%);
  color: #fff;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--sand);
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
}

.hero-image {
  width: 280px;
  height: auto;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--red);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}

/* Scroll-down pill button */
.scroll-btn {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
  padding: 0.4rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.about-section .scroll-btn,
.tjanster-section .scroll-btn {
  border-color: var(--blue);
  color: var(--blue);
}

.about-section .scroll-btn:hover,
.tjanster-section .scroll-btn:hover {
  background: var(--blue);
  color: #fff;
}

/* ── Inner page hero with image ── */
.page-hero--with-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.page-hero-content {
  flex: 1;
}

.page-hero-image {
  width: 260px;
  height: auto;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

/* ── Inner pages ── */
.page-hero {
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--lightblue) 100%);
  color: #fff;
}

.page-hero h1 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.0625rem;
  opacity: 0.9;
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-content h2 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--blue);
  margin: 2rem 0 0.5rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  margin-bottom: 1rem;
}

.values-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.bokningsavtal .values-list {
  margin-left: 1.5rem;
}

.values-list li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #f7f9fc;
  border-left: 4px solid var(--blue);
  border-radius: 0.375rem;
  padding: 1.5rem;
}

.service-card h2 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--blue);
  margin: 0 0 0.5rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2,
.contact-form h2 {
  font-family: 'Lora', serif;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-image {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 0.5rem;
}

.contact-image-caption {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: #555;
  font-style: italic;
}

/* Bokningsavtal expand/collapse */
.bokningsavtal {
  margin-top: 1.5rem;
  text-align: center;
}

.bokningsavtal > summary {
  list-style: none;
  display: inline-block;
  padding: 0.45rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.bokningsavtal > summary::-webkit-details-marker {
  display: none;
}

.bokningsavtal > summary:hover {
  background: var(--blue);
  color: #fff;
}

.bokningsavtal[open] > summary {
  background: var(--blue);
  color: #fff;
}

.bokningsavtal > p {
  margin: 1.5rem auto 0;
  max-width: 700px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--lightblue);
  border-color: var(--lightblue);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: var(--blue);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--lightblue);
}

/* ── Smartphone (≤ 600px) ── */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
  }

  .header-logo {
    height: 2rem;
  }

  header h1 {
    font-size: 1.25rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
  }

  .hero-image {
    order: -1;
    width: 180px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-hero {
    padding: 2.5rem 1rem;
  }

  .page-hero--with-image {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-hero-image {
    width: 160px;
    order: -1;
  }

  .page-content {
    padding: 2rem 1rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Desktop (≥ 1024px) ── */
@media (min-width: 1024px) {
  header {
    padding: 1rem 4rem;
  }

  header {
    padding: 1rem 4rem;
  }

  .hero {
    padding: 7rem 4rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .hero-image {
    width: 340px;
  }

  .page-hero {
    padding: 4.5rem 4rem;
  }

  .page-content {
    padding: 3.5rem 4rem;
    max-width: 1000px;
  }
}
