/* ============================================================
   Mardal Utleie – Stylesheet
   Palett: hvitt, mørk blå, gråtoner
   ============================================================ */

:root {
  --navy-900: #16243d;
  --navy-800: #1e3a5f;
  --navy-700: #22406b;
  --blue-500: #3b6fb6;
  --blue-600: #2e5c9a;
  --gold:     #b8923f;
  --gold-300: #c9a24e;
  --gray-50:  #f5f7fa;
  --gray-100: #eef2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --white:    #ffffff;

  --text:     #1f2b3d;
  --text-soft:#526078;

  --radius:   14px;
  --radius-lg:22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(22, 36, 61, 0.08), 0 1px 2px rgba(22, 36, 61, 0.06);
  --shadow-md: 0 6px 20px rgba(22, 36, 61, 0.10);
  --shadow-lg: 0 18px 40px rgba(22, 36, 61, 0.16);

  --container: 1160px;
  --header-h: 74px;

  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy-800); }

h1, h2, h3 { color: var(--navy-900); line-height: 1.2; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 820px; }

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

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.55); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-light { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--gray-100); color: var(--navy-900); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--gray-700); font-weight: 600; font-size: .98rem;
  padding: 9px 14px; border-radius: 10px; display: inline-block;
}
.main-nav a:not(.btn):hover { color: var(--navy-900); background: var(--gray-100); }
.main-nav .btn { color: #fff; }
.main-nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy-800); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
/* Legg fotoet i assets/img/hero-photo.jpg – SVG-en under brukes automatisk
   som reserve hvis fotoet mangler. */
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../assets/img/hero-photo.jpg'), url('../assets/img/hero.svg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(22,36,61,0.92) 0%, rgba(30,58,95,0.78) 45%, rgba(22,36,61,0.55) 100%);
}
.hero-content { padding: clamp(70px, 12vw, 140px) 22px; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.5px; }
.hero-lead { margin-top: 22px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #dbe6f4; max-width: 640px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 100px) 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 6vw, 56px); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: .8rem; font-weight: 700;
  color: var(--gold); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-sub { margin-top: 14px; color: var(--text-soft); font-size: 1.08rem; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.why-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 34px 26px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-icon {
  display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 20px;
  border-radius: 18px; background: rgba(59,111,182,0.10); font-size: 2rem; line-height: 1;
  transition: background .22s ease, transform .22s ease;
}
.why-card:hover .why-icon { background: rgba(59,111,182,0.18); transform: scale(1.06); }
.why-card h3 { font-size: 1.2rem; }
.why-card p { color: var(--text-soft); margin-top: 8px; font-size: .98rem; }

/* ---------- Steps (how it works) ---------- */
.steps-grid {
  list-style: none; display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step-card {
  position: relative; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 42px 26px 30px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue-600); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-sm); border: 3px solid #fff;
}
.step-icon {
  display: grid; place-items: center; width: 66px; height: 66px; margin: 6px auto 16px;
  border-radius: 18px; background: rgba(59,111,182,0.10); font-size: 1.9rem; line-height: 1;
}
.step-card h3 { font-size: 1.2rem; }
.step-card p { color: var(--text-soft); margin-top: 8px; font-size: .98rem; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.product-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 3 / 2; background: var(--gray-100); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-icon {
  position: absolute; top: 14px; left: 14px; width: 44px; height: 44px;
  background: #fff; color: var(--navy-800); border-radius: 12px;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.product-icon svg { width: 24px; height: 24px; }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.3rem; }
.product-body p { color: var(--text-soft); margin-top: 8px; font-size: .98rem; }
.product-specs { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.product-specs li {
  position: relative; padding-left: 24px; color: var(--text-soft);
  font-size: .92rem; line-height: 1.5;
}
.product-specs li::before {
  content: ""; position: absolute; left: 3px; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--blue-500);
}
.price {
  margin-top: auto !important; color: var(--navy-800) !important;
  background: var(--gray-100); border-radius: 10px; padding: 8px 12px; display: inline-block;
  align-self: flex-start;
}
.price-amount { font-weight: 800; font-size: 1.15rem; }
.price-unit { font-weight: 600; color: var(--text-soft); font-size: .9rem; }
.product-body .btn { margin-top: 18px; }
.delivery-note { text-align: center; margin-top: 30px; color: var(--text-soft); font-size: .95rem; }
.product-note { text-align: center; margin-top: 10px; color: var(--text-soft); }

/* ---------- Packages ---------- */
.package-grid {
  display: grid; gap: 26px; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.package-card {
  position: relative; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.package-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.package-card--featured {
  border-color: var(--blue-500); border-width: 2px; box-shadow: var(--shadow-md);
}
.package-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .5px; padding: 6px 16px; border-radius: var(--radius-pill); white-space: nowrap;
}
.package-head { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.package-emoji { font-size: 2.2rem; line-height: 1; display: block; }
.package-head h3 { font-size: 1.4rem; margin-top: 10px; }
.package-price { margin-top: 8px; font-size: 2rem; font-weight: 800; color: var(--navy-800); }
.package-desc { color: var(--text-soft); font-size: .95rem; margin-top: 18px; }
.package-list { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; flex: 1; align-content: start; }
.package-list li {
  position: relative; padding-left: 30px; color: var(--text); font-weight: 500;
}
.package-list li::before {
  content: "✓"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue-600); color: #fff;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- About ---------- */
.brand-showcase { width: 300px; max-width: 80%; height: auto; margin: 0 auto clamp(30px, 5vw, 48px); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 64px); align-items: center; }
.about-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 6px; }
.about-text p { color: var(--text-soft); margin-top: 16px; font-size: 1.05rem; }
.feature-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text); }
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-600); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--navy-800); }
.stat-label { display: block; margin-top: 4px; color: var(--text-soft); font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Delivery area ---------- */
.area-grid {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; max-width: 780px; margin: 0 auto;
}
.area-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-pill);
  padding: 12px 24px; font-weight: 600; color: var(--navy-800);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.area-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.area-pin { font-size: 1rem; line-height: 1; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue-500);
  transition: transform .2s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(34px, 5vw, 60px); align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 6px; }
.contact-info > p { color: var(--text-soft); margin-top: 14px; }
.contact-list { list-style: none; margin-top: 26px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gray-100);
  color: var(--navy-800); display: grid; place-items: center;
}
.contact-ic svg { width: 22px; height: 22px; }
.muted { color: var(--gray-500); font-size: .9rem; }

.social { display: flex; gap: 12px; margin-top: 26px; }
.social-link {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800); color: #fff;
  display: grid; place-items: center; transition: transform .2s ease, background .2s ease;
}
.social-link:hover { background: var(--blue-600); color: #fff; transform: translateY(-3px); }
.social-link svg { width: 20px; height: 20px; }

.contact-map {
  margin-top: clamp(40px, 6vw, 64px);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); background: #fff;
}
.contact-map iframe {
  width: 100%; height: 340px; border: 0; display: block;
}
.map-caption {
  padding: 15px 18px; margin: 0; text-align: center;
  color: var(--text-soft); font-size: .95rem;
  border-top: 1px solid var(--gray-200);
}

.payments { margin-top: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.payments-label { font-weight: 600; color: var(--text-soft); font-size: .92rem; }
.pay-badge {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--gray-200);
  background: #fff; color: var(--navy-800);
}
.pay-badge svg { width: 18px; height: 18px; }
.pay-vipps { background: #ff5b24; color: #fff; border-color: #ff5b24; letter-spacing: .3px; }

.contact-form-wrap {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--gray-700); }
.contact-form label span { color: var(--blue-600); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--gray-300); border-radius: 12px;
  background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,111,182,0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.success { color: #157347; }
.form-status.error { color: #b02a37; }
.form-fineprint { margin-top: 14px; font-size: .82rem; color: var(--gray-500); text-align: center; }

/* ---------- Call to action ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--blue-600) 100%);
  color: #fff; padding: clamp(56px, 8vw, 90px) 0; text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
.cta p { margin-top: 14px; color: #dbe6f4; font-size: 1.08rem; }
.cta-actions { margin-top: 30px; }
.cta-contacts {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center;
}
.cta-contact {
  color: #fff; font-weight: 600; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 9px;
}
.cta-contact:hover { color: #dbe6f4; }

/* ---------- Floating call button (mobile) ---------- */
.call-fab {
  position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: none; align-items: center; gap: 8px;
  background: var(--blue-600); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(22, 36, 61, 0.28);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.call-fab:hover, .call-fab:focus { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-lg); }
.call-fab:active { transform: translateX(-50%) translateY(1px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #cdd8e8; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding: clamp(48px, 7vw, 72px) 22px clamp(30px, 4vw, 44px);
}
.footer-logo { height: auto; }
.footer-brand p { margin-top: 16px; color: #9db1cc; max-width: 320px; font-size: .96rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: .3px; }
.footer-nav ul, .footer-contact ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #cdd8e8; }
.site-footer a:hover { color: #fff; }
.footer-contact .social { margin-top: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom .container { padding-top: 20px; padding-bottom: 20px; }
.footer-bottom p { font-size: .88rem; color: #8ba0bd; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 460px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 18px 22px; }
  .main-nav a { padding: 13px 14px; border-radius: 10px; }
  .main-nav .btn { margin-top: 8px; justify-content: center; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-stats { max-width: 460px; }

  .call-fab { display: inline-flex; }
  .footer-bottom .container { padding-bottom: 84px; }
}

@media (max-width: 560px) {
  .form-two { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

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