/* Page-specific styles for /arendus/.
   Header, mobile menu, contact form and footer reuse the home page classes
   from ../assets/index-*.css and ../contact-company.css. */

:root {
  --a-bg-alt: hsl(33 14% 90%);
  --a-border: hsl(33 10% 82%);
  --a-muted: hsl(0 0% 38%);
  --a-terracotta: hsl(17 52% 46%);
  --a-dark: #38464f;
}

html { scroll-behavior: smooth; }
#kontakt, #hinnad { scroll-margin-top: 64px; }

/* Mobile menu open/close, like the home page clip-path reveal */
.mobile-nav-overlay[hidden] { display: none !important; }
.mobile-nav-overlay {
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s cubic-bezier(.16, 1, .3, 1);
}
.mobile-nav-overlay.is-open { clip-path: inset(0 0 0% 0); }
.mobile-nav-overlay > div:last-child > a {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}
.mobile-nav-overlay.is-open > div:last-child > a { opacity: 1; transform: none; }
.mobile-nav-overlay.is-open > div:last-child > a:nth-child(1) { transition-delay: .2s; }
.mobile-nav-overlay.is-open > div:last-child > a:nth-child(2) { transition-delay: .28s; }
.mobile-nav-overlay.is-open > div:last-child > a:nth-child(3) { transition-delay: .36s; }
.mobile-nav-overlay.is-open > div:last-child > a:nth-child(4) { transition-delay: .44s; }
.mobile-nav-overlay.is-open > div:last-child > a:nth-child(5) { transition-delay: .52s; }

/* Contact heading: the text is longer than on the home page */
.contact-h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; max-width: 24ch; }

/* ---- Page content ---- */
.arendus { font-size: 16px; line-height: 1.6; }
.arendus h1, .arendus h2, .arendus h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.arendus b { font-weight: 600; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

/* Hero */
.hero { padding-top: 64px; }
.hero-content { padding-top: 72px; padding-bottom: 48px; }
@media (min-width: 768px) { .hero-content { padding-top: 112px; padding-bottom: 64px; } }
.eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0 0 20px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--a-muted);
}
.rule { display: inline-block; flex-shrink: 0; width: 48px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(44px, 8vw, 112px); line-height: 1; }
.hero-row { display: grid; gap: 32px; margin-top: 32px; }
@media (min-width: 1000px) { .hero-row { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; } }
.lead { max-width: 620px; margin: 0; font-size: 18px; color: hsl(0 0% 10% / .75); }
.hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; }
@media (min-width: 600px) { .hero-facts { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.hero-facts span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--a-muted); }
.hero-img { width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; }
@media (max-width: 600px) { .hero-img { aspect-ratio: 4 / 3; } }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--a-bg-alt); }
@media (min-width: 768px) { .section { padding: 128px 0; } .section-tight { padding-top: 0; } }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.index { font-family: var(--font-display); font-size: 12px; color: var(--a-terracotta); letter-spacing: .28em; }
.label { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--a-muted); }
.section h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.15; max-width: 900px; }
.section h3 { font-size: 20px; margin: 0 0 16px; }
.split { display: grid; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.split-top { margin-top: 64px; }
h2 + .prose { margin-top: 28px; }
.prose { font-size: 17px; color: hsl(0 0% 10% / .75); }
.prose p { margin: 0 0 16px; }
.note { margin: 20px 0 0; font-size: 13px; color: var(--a-muted); }
.link { color: var(--a-terracotta); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Offers */
.offers { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 768px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer { padding: 40px; border: 1px solid var(--a-border); background: hsl(33 14% 96%); }
.offer-featured { background: var(--a-dark); color: #f4f1ee; border-color: var(--a-dark); }
.offer-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.offer-price { margin: 12px 0 16px; font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.offer-text { opacity: .8; }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.g { display: block; padding: 0; border: 0; background: var(--a-bg-alt); cursor: zoom-in; overflow: hidden; aspect-ratio: 3 / 2; }
.g-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery > .g:last-child:nth-child(even) { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .g-wide { aspect-ratio: 2.19 / 1; }
  .gallery > .g:last-child:nth-child(even) { grid-column: auto; }
}
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.g:hover img { transform: scale(1.03); }
.map { aspect-ratio: 16 / 10; width: 100%; }

/* Stats & rooms */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--a-border); border: 1px solid var(--a-border); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stats div { background: var(--a-bg-alt); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; }
.stats span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--a-muted); }
.rooms { width: 100%; border-collapse: collapse; }
.rooms td { padding: 12px 0; border-bottom: 1px solid var(--a-border); }
.rooms td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 16px; }
.list { margin: 0 0 40px; }
.list li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--a-border); }
.list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--a-terracotta); }

/* Package */
.pack { display: grid; gap: 1px; background: var(--a-border); border: 1px solid var(--a-border); margin-top: 48px; }
@media (min-width: 768px) { .pack { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pack { grid-template-columns: repeat(3, 1fr); } }
.pack article { background: hsl(var(--background)); padding: 32px; display: flex; flex-direction: column; }
.pack h3 { display: flex; gap: 12px; align-items: baseline; }
.pack h3 span { font-size: 12px; color: var(--a-terracotta); letter-spacing: .2em; }
.pack h3 b { font-weight: 600; }
.pack ul { list-style: disc; padding-left: 18px; color: hsl(0 0% 10% / .75); font-size: 15px; }
.pack li { margin: 4px 0; }
.price { margin-top: auto; padding-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.price small { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--a-muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 24, .92);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; }
.lb-close { position: absolute; top: 16px; right: 20px; color: #f4f1ee; font-size: 22px; padding: 8px; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--a-muted); }
.crumbs a:hover { color: hsl(var(--foreground)); }
.crumbs [aria-current] { color: hsl(var(--foreground) / .8); }

/* Download */
.download {
  display: flex; align-items: center; gap: 20px; margin-top: 32px; padding: 24px 28px;
  border: 1px solid hsl(var(--foreground) / .2); background: hsl(33 14% 96%);
  transition: border-color .2s, background-color .2s;
}
.download:hover { border-color: hsl(var(--foreground)); background: hsl(var(--background)); }
.download svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--a-terracotta); }
.download > span:first-of-type { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.download b { font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; overflow-wrap: anywhere; }
.download small { font-size: 13px; color: var(--a-muted); }
.download-cta { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--a-terracotta); white-space: nowrap; }
@media (max-width: 600px) { .download { flex-wrap: wrap; } .download-cta { width: 100%; padding-left: 48px; } }
