/* ============================================================
   DANNI TÆKNI — main stylesheet for all pages
   Color scheme: Obsidian — understated, precision, invisible competence
   ============================================================ */

:root {
  --bg: #10100e;
  --bg-soft: #1a1a16;
  --bg-card: #1e1e1a;
  --border: #2a2a24;
  --text: #e8e8e0;
  --text-dim: #8e8e80;
  --accent: #8eb0c0;        /* muted slate blue - main brand color */
  --accent-hover: #b4ccd8;
  --accent-dark: #5a8090;
  --ok: #3ecf6e;
  --bad: #e85454;
  --radius: 12px;
  --maxw: 1140px;

  /* Custom easing curves - Emil principle: built-in easings are too weak */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 15, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 800; font-size: 1.25rem; letter-spacing: 0.5px;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: 0.95rem; font-weight: 500;
  transition: color 150ms ease-out;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.lang-toggle {
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
  padding: 6px 14px; border-radius: 20px; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; font-family: inherit;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(142, 176, 192, 0.07), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; font-weight: 800; max-width: 720px;
  animation: heroFadeUp 700ms var(--ease-out) both;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  margin-top: 18px; font-size: 1.15rem; color: var(--text-dim); max-width: 580px;
  animation: heroFadeUp 700ms var(--ease-out) 100ms both;
}
.hero-cta {
  margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap;
  animation: heroFadeUp 700ms var(--ease-out) 200ms both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none;
  font-family: inherit;
  /* Specify exact properties - never use 'all' */
  transition: background 150ms var(--ease-out),
              color 150ms var(--ease-out),
              border-color 150ms var(--ease-out),
              transform 150ms var(--ease-out),
              box-shadow 150ms var(--ease-out);
}
.btn-primary { background: var(--accent); color: #06090c; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); color: #06090c; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(142, 176, 192, 0.25); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
}
/* Press feedback - buttons must feel responsive */
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; }
.section-head p { color: var(--text-dim); margin-top: 8px; max-width: 600px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 200ms var(--ease-out),
              transform 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out);
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }
.card .icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }

/* Stagger cards in a grid - cascading entrance feels more natural */
.grid-3 .card:nth-child(1) { animation: cardFadeUp 500ms var(--ease-out) 0ms both; }
.grid-3 .card:nth-child(2) { animation: cardFadeUp 500ms var(--ease-out) 60ms both; }
.grid-3 .card:nth-child(3) { animation: cardFadeUp 500ms var(--ease-out) 120ms both; }

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: rgba(142, 176, 192, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Pricing tables ---------- */
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: border-color 200ms var(--ease-out),
              transform 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out);
}
.price-card.featured { border-color: var(--accent); position: relative; }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #14100a; font-size: 0.75rem; font-weight: 800;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.price-card h3 { font-size: 1.1rem; }
.price-card .price { font-size: 2rem; font-weight: 800; margin: 14px 0 4px; color: var(--accent); }
.price-card .per { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 18px; }
.price-card ul { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.price-card li { padding: 7px 0; color: var(--text-dim); font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.price-card li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .price-card:not(.featured):hover {
    border-color: rgba(142, 176, 192, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

table.price-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--bg-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); }
.price-table td:last-child { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  position: relative; border: 1px solid var(--border);
  transition: border-color 200ms var(--ease-out);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover { border-color: rgba(142, 176, 192, 0.3); }
  .gallery-item:hover img { transform: scale(1.04); }
}
.gallery-item .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; color: rgba(255,255,255,0.85);
  font-weight: 600; font-size: 0.9rem; text-align: center; padding: 12px;
}
.gallery-item .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 28px 16px 12px; font-size: 0.85rem; font-weight: 600;
}

/* placeholder gradients - delete when real photos go in */
.ph-1 { background: linear-gradient(135deg, #2b3a67, #16181d); }
.ph-2 { background: linear-gradient(135deg, #67452b, #16181d); }
.ph-3 { background: linear-gradient(135deg, #2b6753, #16181d); }
.ph-4 { background: linear-gradient(135deg, #5d2b67, #16181d); }
.ph-5 { background: linear-gradient(135deg, #67302b, #16181d); }
.ph-6 { background: linear-gradient(135deg, #2b5567, #16181d); }

/* ---------- Rental ---------- */
.avail-bar {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap;
  margin-bottom: 40px;
}
.avail-bar label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.avail-bar input[type="date"] {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 8px; font-family: inherit; font-size: 0.95rem;
  color-scheme: dark;
}
.avail-note { font-size: 0.85rem; color: var(--text-dim); width: 100%; }

.gear-cat { margin: 42px 0 18px; font-size: 1.3rem; font-weight: 800; border-left: 4px solid var(--accent); padding-left: 14px; }

.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gear-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 200ms var(--ease-out),
              transform 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out);
}
.gear-card h4 { font-size: 1.02rem; }
.gear-card .gear-desc { color: var(--text-dim); font-size: 0.88rem; flex-grow: 1; }
.gear-card .gear-price { font-weight: 800; color: var(--accent); font-size: 1.1rem; }
.gear-card .gear-price small { color: var(--text-dim); font-weight: 500; }

@media (hover: hover) and (pointer: fine) {
  .gear-card:hover {
    border-color: rgba(142, 176, 192, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

.status { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; width: fit-content; }
.status-free { background: rgba(62, 207, 110, 0.15); color: var(--ok); }
.status-booked { background: rgba(232, 84, 84, 0.15); color: var(--bad); }
.status-idle { background: rgba(154, 160, 171, 0.15); color: var(--text-dim); }

/* ---------- About ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; }
.team-card { text-align: center; }
.team-card .avatar {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--accent-dark), var(--bg-soft));
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem;
  border: 2px solid var(--border);
}
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-item .ci-icon { font-size: 1.4rem; }
.contact-info-item strong { display: block; font-size: 0.95rem; }
.contact-info-item span, .contact-info-item a { color: var(--text-dim); font-size: 0.92rem; }

form .field { margin-bottom: 18px; }
form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
form input, form textarea, form select {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 8px; font-family: inherit; font-size: 0.95rem;
  color-scheme: dark;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(142, 176, 192, 0.12);
}
form textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Steps / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #14100a; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h4 { margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.quote { font-style: italic; color: var(--text); font-size: 1.02rem; }
.quote-by { margin-top: 14px; color: var(--text-dim); font-size: 0.88rem; font-style: normal; }
.quote-by strong { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(142,176,192,0.08), transparent), var(--bg-soft);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 64px 0;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.cta-band p { color: var(--text-dim); margin-bottom: 26px; }

/* ---------- FAQ ---------- */
details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px;
  transition: border-color 150ms var(--ease-out);
}
details[open] { border-color: rgba(142, 176, 192, 0.3); }
details summary { cursor: pointer; font-weight: 700; font-size: 0.98rem; }
details p { margin-top: 12px; color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 44px 0 30px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
footer h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer li a { color: var(--text-dim); font-size: 0.92rem; transition: color 150ms var(--ease-out); }
footer li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; font-size: 0.82rem; color: var(--text-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Focus visible (keyboard nav) ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .steps, .gear-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .grid-2, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-soft); flex-direction: column; padding: 20px;
    border-bottom: 1px solid var(--border); gap: 16px;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .grid-3, .grid-4, .steps, .gear-grid, .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; }
  section { padding: 52px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
