/* ================= VARIABLER ================= */

:root {
  --accent: #d66464;
  --accent-dark: #c25555;
  --text-dark: #333;
}

/* ================= BAS ================= */

body {
  background-color: #f7f6f4;
  color: var(--text-dark);
  font-family: 'Georgia', serif;
  margin: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

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

/* ================= HEADER ================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: bold;
  padding: 6px 10px;
}

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

.contact-button {
  background-color: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;   /* ← lägg till */
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 60px;
  padding-bottom: 120px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background-image:
    linear-gradient(rgba(100, 60, 40, 0.4), rgba(40, 60, 40, 0.6)),
    url('bakgrundsbild2.jpeg');
  background-size: cover;
  background-position: center;
}

.hero-content {
  transform: translateY(70px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logga */
.hero-logo {
  width: 230px;
  max-width: 80vw;
  height: auto;
  margin-bottom: 0px;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeZoomIn 2s ease forwards;
}

/* Hero-rubrik */
.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  max-width: 900px;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  opacity: 0;
  animation: fadeIn 3s ease 0.8s forwards;
}

/* Undertitel */
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-top: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Scroll-pil */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-indicator img {
  width: 56px;
  height: auto;
  animation: bounce 1.8s ease-in-out infinite;
}

/* ================= ANIMATIONER ================= */

@keyframes fadeZoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(10px); }
  100% { transform: translateY(0); }
}

/* ================= INTRO BAND ================= */

.intro-band {
  width: 100%;
  background-color: var(--accent);
  padding: 10px 10px 30px 10px;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.intro-band-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-band a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.6);
  text-underline-offset: 3px;
}

.intro-band a:hover {
  text-decoration-color: #fff;
}

.intro-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 10;
}

.intro-band p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

/* ================= VIT SEKTIONSBAND ================= */

.content-band {
  width: 100%;
  background-color: #fff;
  padding: 20px 20px 80px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.content-band-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.content-band h2 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 2.4rem;
  color: var(--accent);
  margin-top: 0;
}


.content-band p {
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

.image-band-inner > h2:first-child {
  margin-top: 0.2em;
}

/* ================= FOOTER ================= */

footer {
  background-color: #333;
  color: #ccc;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* ================= RESPONSIVT ================= */

@media (max-width: 800px) {
  .menu-toggle { display: block; }
  nav { display: none; }

  .hero-logo { width: 280px; }
  .hero h2 { font-size: 2.4rem; }
}

@media (max-width: 800px) {

  nav.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 5%;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }

}

@media (max-width: 500px) {
  .hero {
    padding-top: 85px;
    padding-bottom: 90px;
  }

  .hero-logo { width: 310px; }
  .hero h2 {
    font-size: 1.9rem;
    letter-spacing: 1.5px;
  }

  .scroll-indicator img {
    width: 20px;
  }
}

/* Ankarlänkar */
:target {
  scroll-margin-top: 100px;
}

/* ================= INFO-SEKTIONER ================= */

.info-section {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 1100px;
  margin: 80px auto;
  background-color: #f8f6f4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);

  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.info-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-section.reverse {
  flex-direction: row-reverse;
}

/* Bilddel */
.info-image {
  flex: 1 1 50%;
  display: flex;
}

.info-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Textdel */
.info-text {
  flex: 1 1 50%;
  padding: 30px 60px 60px 60px;
  box-sizing: border-box;
}

.info-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 10px;
}

.info-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.info-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.info-text li {
  font-size: 1rem;
  margin-bottom: 10px;
  padding-left: 26px;
  position: relative;
}

.info-text li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Knapp */
.learn-more-btn {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.learn-more-btn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

/* ================= RESPONSIVT ================= */

@media (max-width: 900px) {
  .info-section {
    flex-direction: column;
    margin: 80px 6%;
  }

  .info-section.reverse {
    flex-direction: column;
  }

  .info-text {
    padding: 40px 30px;
    text-align: center;
  }

  .info-text ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 25px;
  }

  .learn-more-btn {
    margin: 0 auto;
  }
}

/* ================= CONTENT GRID ================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exakt lika breda */
  gap: 40px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
}

.feature-item img {
  width: 60%;
  height: auto;
  margin-bottom: 16px;
}


.feature-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-item p {
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ================= KONTAKTFORM ================= */

#kontakt {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

#kontakt h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--accent);
  margin-top: 0;
}

#kontakt p {
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* Form följer textbredd */
.contact-form {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

/* Inputs följer sidans typografi */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #cfc6ba;
  font-family: inherit;
  font-size: 1.05rem;
  background: transparent;
  transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom: 1px solid var(--accent);
}

/* Knapp följer din layoutregel */
.contact-form .learn-more-btn {
  align-self: flex-start;
  margin-top: 10px;
}

/* Mobil = centrerad knapp (som övriga) */
@media (max-width: 900px) {
  .contact-form .learn-more-btn {
    align-self: center;
  }
}
/* Form submit = menyknapp */
.contact-form .contact-button {
  align-self: flex-start;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

/* Mobil centrering som övriga */
@media (max-width: 900px) {
  .contact-form .contact-button {
    align-self: center;
  }
}

/* Vit bildsektion */
.image-band {
  background: #ffffff;
  padding: 30px 20px 80px;  /* top 30 istället för 80 */
}

/* Innehållsbredd (samma tänk som övriga sektioner) */
.image-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.image-band-inner p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Rosa underrubrik (samma färg som knappar) */
.band-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 40px;
  color: #d66464; /* ändra till exakt knappfärg om du vill */
}

/* Bildrad */
.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;   /* centrerar sista raden */
}

.image-row figure {
  flex: 0 0 calc(33.333% - 13.34px);  /* 3 per rad */
  margin: 0;
}

.image-row img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: transform 0.4s ease;
}

.image-row figure:hover img {
  transform: scale(1.08);
  cursor: zoom-in;
}

/* Tablet: 2 per rad */
@media (max-width: 900px) {
  .image-row figure {
    flex: 0 0 calc(50% - 10px);
  }
}

/* Mobil: 1 per rad */
@media (max-width: 500px) {
  .image-row figure {
    flex: 0 0 100%;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  padding: 40px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 6px;
}

.lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 16px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* klickbar bild */
.image-row img {
  cursor: zoom-in;
}