/* ===== Elvic Adventures — warm & local Nordic theme ===== */
:root {
  --cream: #FBF7F0;
  --sand: #EFE6D6;
  --sand-deep: #E3D4BC;
  --terracotta: #C1663B;
  --terracotta-dark: #A9552E;
  --pine: #33493C;
  --pine-deep: #26382D;
  --water: #2F6B7E;
  --water-light: #4E8FA3;
  --charcoal: #2B2620;
  --muted: #6E6559;
  --line: #E0D5C2;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(43, 38, 32, 0.10);
  --shadow-sm: 0 4px 14px rgba(43, 38, 32, 0.08);
  --maxw: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--pine); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.btn-block { width: 100%; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--terracotta); margin: 0 0 .6rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--charcoal); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 52px; width: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav a { color: var(--charcoal); font-weight: 600; padding: 9px 14px; border-radius: 999px; font-size: .96rem; }
.main-nav a:hover { background: var(--sand); text-decoration: none; }
.nav-cta { background: var(--pine); color: #fff !important; }
.nav-cta:hover { background: var(--pine-deep) !important; }
.nav-toggle { display: none; }

.lang-switch { display: flex; gap: 2px; background: var(--sand); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: .82rem; color: var(--muted); cursor: pointer; transition: .15s;
}
.lang-switch button.is-active { background: var(--white); color: var(--charcoal); box-shadow: var(--shadow-sm); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-color: #21302a; /* fallback while the photo loads */
  background-image:
    linear-gradient(90deg, rgba(14,22,18,.82) 0%, rgba(14,22,18,.55) 44%, rgba(14,22,18,.22) 100%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center 40%;
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 132px); max-width: 760px; }

/* Light text so it reads over the photo */
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.38); }
.hero .lead { color: rgba(255,255,255,.93); text-shadow: 0 1px 10px rgba(0,0,0,.32); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.hero .btn-ghost:hover { background: #fff; color: var(--pine-deep); border-color: #fff; }
/* On narrow screens the text is full-width, so darken more evenly */
@media (max-width: 720px) {
  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(14,22,18,.68) 0%, rgba(14,22,18,.52) 55%, rgba(14,22,18,.55) 100%),
      url("../img/hero.jpg");
    background-position: center;
  }
}
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.ico { width: 22px; height: 22px; flex: none; display: block; }

/* ===== Sections ===== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--muted { background: var(--sand); }
.section-head { max-width: 640px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.section-head h2 { color: var(--pine-deep); }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ===== Rental cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(43,38,32,.14); }
.card-art { height: 190px; overflow: hidden; background: center / cover no-repeat #e9e4da; }
.card-art--ebike { background-image: url("../img/ebike.jpg"); }
.card-art--mtb { background-image: url("../img/mtb.jpg"); }
.card-art--water { background-image: url("../img/waterbike.jpg"); background-position: center 55%; }
.card-art--hotel { background-image: url("../img/sykkelhotell.jpg"); background-position: center 60%; }

.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.tag-land { background: #E4EADF; color: var(--pine); }
.tag-water { background: #DCEBF0; color: var(--water); }
.tag-store { background: var(--sand); color: var(--terracotta-dark); }
.card h3 { color: var(--pine-deep); }
.card p { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 4px 0 18px; }
.feature-list li { position: relative; padding-left: 26px; margin-bottom: 6px; font-size: .94rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C1663B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12l5 5 11-12'/></svg>");
}
.card-link { margin-top: auto; font-weight: 700; color: var(--terracotta-dark); }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--white); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--pine); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 14px;
}
.step h3 { color: var(--pine-deep); }
.step p { color: var(--muted); margin: 0; }

/* ===== Pricing ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; text-align: center; }
.price-card--featured { border: 2px solid var(--terracotta); box-shadow: var(--shadow); transform: translateY(-6px); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--terracotta); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 14px; border-radius: 999px; }
.price-card h3 { color: var(--pine-deep); }
.price { font-size: 2.4rem; font-weight: 800; color: var(--charcoal); margin: 8px 0 16px; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.price-card li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.price-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 22px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about-art {
  border-radius: var(--radius); min-height: 340px; box-shadow: var(--shadow); overflow: hidden;
  background: center / cover no-repeat #e9e4da;
  background-image: url("../img/about.jpg");
}
.about-text h2 { color: var(--pine-deep); }
.about-text p { color: var(--muted); }
.about-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.about-points li { position: relative; padding-left: 24px; font-weight: 600; color: var(--pine); }
.about-points li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C1663B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12l5 5 11-12'/></svg>");
}

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: #e9e4da; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ===== Booking ===== */
.booking-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.booking-intro h2 { color: var(--pine-deep); }
.booking-intro p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 600; }
.contact-list .ico { color: var(--terracotta); }

.booking-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--charcoal); }
.booking-form label em { font-weight: 500; color: var(--muted); font-style: normal; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--cream); color: var(--charcoal); transition: border .15s, box-shadow .15s;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(193,102,59,.15); background: #fff;
}
.booking-form textarea { resize: vertical; }
.error { display: none; color: #b23b2e; font-size: .82rem; margin-top: 5px; }
.form-row.invalid .error { display: block; }
.form-row.invalid input, .form-row.invalid select { border-color: #d05b4e; }
.form-hint { text-align: center; color: var(--muted); font-size: .84rem; margin: 12px 0 0; }

/* Equipment add-ons */
#addonList { display: flex; flex-direction: column; gap: 8px; }
.addon-item { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; margin: 0; }
.addon-item input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--pine); }
.addon-name { flex: 1; font-weight: 500; font-size: .95rem; color: var(--charcoal); }
.addon-right { display: flex; align-items: center; gap: 10px; }
.addon-badge { font-size: .72rem; color: var(--terracotta-dark); background: var(--sand-deep); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.addon-price { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.addon-qty { display: inline-flex; align-items: center; gap: 6px; }
.addon-qty[hidden] { display: none; }
.addon-qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--white); border-radius: 6px; color: var(--pine); font-size: 1rem; line-height: 1; cursor: pointer; padding: 0; }
.addon-qty button:hover { background: var(--sand); }
.addon-qty span { min-width: 16px; text-align: center; font-size: .95rem; }

/* Footer org line */
.footer-org { color: var(--muted); font-size: .8rem; margin: 4px 0 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--pine-deep); padding: 15px 28px 15px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--terracotta); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
.form-success { background: #E4EADF; color: var(--pine-deep); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; font-weight: 600; text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--pine-deep); color: #E9E1D4; padding: 44px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer-brand strong { font-size: 1.2rem; color: #fff; }
.footer-brand p { margin: 4px 0 0; color: #B9AE9C; font-size: .9rem; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: #E9E1D4; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin: 8px 0 0; color: #B9AE9C; font-size: .85rem; }
/* Narrow screens: stack brand over the links, and lay the links out in a tidy
   aligned grid instead of a ragged flex-wrap. */
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .footer-org { margin-top: 8px; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards, .steps, .price-grid { grid-template-columns: 1fr; }
  .about-grid, .booking-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-card--featured { transform: none; }
  .about-art { min-height: 220px; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; margin-left: auto;
  }
  .nav-toggle span { display: block; height: 2px; width: 22px; background: var(--charcoal); margin: 0 auto; transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav { margin-left: 0; }
  .main-nav ul {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: var(--shadow); display: none;
  }
  .main-nav ul.open { display: flex; }
  .main-nav a { padding: 13px 12px; border-radius: 10px; }
  /* Mobile header: NO/EN on the far left, hamburger on the far right, logo centered.
     The brand is taken out of flow so the two controls split via space-between and the
     logo sits at true center regardless of the side widths. */
  .header-inner { position: relative; justify-content: space-between; }
  .lang-switch { order: -1; }
  .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
}
@media (max-width: 520px) {
  .form-two { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
