/* ==========================================================================
   HIUSTAIDE DECOR
   Brand foundation. Kaikki tyylit yhdessa tiedostossa.
   Muuta varit, fontit ja mitat alla olevista CSS-muuttujista.
   ========================================================================== */

:root {
  /* === BRAND COLORS (muokkaa naita) === */
  --color-primary: #7a3b2e;        /* Lammin kuparinruskea */
  --color-primary-dark: #5a2a20;   /* Tummempi versio */
  --color-accent: #c9a76b;          /* Kulta */
  --color-bg: #faf6f1;              /* Kerma tausta */
  --color-bg-alt: #f1e8dc;          /* Tausta vaihtelua varten */
  --color-text: #2b1f1a;            /* Lammin musta */
  --color-text-soft: #6b5a52;       /* Pehmea harmaa */
  --color-line: #e2d5c7;            /* Hennot rajat */
  --color-white: #ffffff;

  /* === TYPOGRAPHY (muokkaa naita) === */
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* === SPACING & SIZE === */
  --max-width: 1180px;
  --max-width-narrow: 760px;
  --radius: 4px;
  --shadow: 0 2px 24px rgba(43, 31, 26, 0.08);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }
.lead {
  font-size: 1.2rem;
  color: var(--color-text-soft);
  font-family: var(--font-heading);
  font-style: italic;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--max-width-narrow); }
section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}
.logo:hover { text-decoration: none; }
.logo__mark { width: 36px; height: 36px; }

/* === NAV === */
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--color-primary); text-decoration: none; }
.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--color-text);
  margin: 5px 0; transition: all 0.2s;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--color-line);
    gap: 18px;
  }
  .nav.is-open { display: flex; }
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn--ghost:hover {
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
}

/* === HERO === */
.hero {
  padding: 90px 0 100px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center;
}
.hero__title { margin-bottom: 0.4em; }
.hero__sub {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === SECTIONS === */
.section--alt { background: var(--color-bg-alt); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__head p { color: var(--color-text-soft); max-width: 600px; margin: 0 auto; }

/* === GRID OF SERVICES === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--color-white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(43, 31, 26, 0.12); }
.card h3 { margin-top: 0; }
.card__price {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
.card__link {
  display: inline-block;
  margin-top: 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card__link::after { content: ' \2192'; }

/* === PRICE TABLE === */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
}
.price-table th, .price-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}
.price-table th {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  background: var(--color-bg-alt);
}
.price-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--color-primary);
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table .desc {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin: 4px 0 0;
}

/* === INFO BOX === */
.info-box {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: var(--radius);
}
.info-box h4 { margin-top: 0; }

/* === FAQ === */
.faq details {
  border-bottom: 1px solid var(--color-line);
  padding: 18px 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::after {
  content: '+';
  position: absolute; right: 0; top: 8px;
  font-size: 1.4rem; color: var(--color-primary);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--color-text-soft); }

/* === CTA SECTION === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 72px 24px;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.6rem; }
.cta-band .btn--primary {
  background: var(--color-white);
  color: var(--color-primary);
}
.cta-band .btn--primary:hover { background: var(--color-bg); }

/* === FOOTER === */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
  font-size: 0.92rem;
}
.site-footer h4 { color: var(--color-white); font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  padding: 20px 0 0;
}
.breadcrumbs a { color: var(--color-text-soft); }
.breadcrumbs span { margin: 0 8px; }

/* === COOKIE BANNER === */
#cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 540px;
  background: var(--color-text);
  color: var(--color-white);
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 100;
  font-size: 0.92rem;
  display: none;
}
#cookie-banner.is-visible { display: block; }
#cookie-banner p { margin: 0 0 12px; }
#cookie-banner button {
  background: var(--color-white);
  color: var(--color-text);
  border: 0;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
