/* ==========================================================================
   Nordic Gal Designs — Rosemaling by Michelle Carlson
   Palette drawn from Michelle's own work: Telemark slate blue, barn red,
   ochre gold, sage green, and warm cream.
   ========================================================================== */

:root {
  --blue:       #2c4a5e;   /* deep Telemark slate */
  --blue-soft:  #4a6b82;
  --red:        #9c3b2a;   /* barn red */
  --gold:       #c89b3c;   /* ochre accent */
  --sage:       #6f8560;
  --cream:      #f5eede;   /* page ground */
  --cream-deep: #ede2ca;
  --ink:        #241f1c;   /* near-black outline */
  --ink-soft:   #4c443d;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 3px;
  --shadow: 0 14px 40px -18px rgba(36, 31, 28, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1rem;
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--blue); }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); margin-top: 1rem; }

.divider { display: block; width: 200px; height: 46px; margin: 0 auto; opacity: .9; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .04em;
  padding: .85rem 1.7rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--blue);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.btn-primary { background: var(--blue); color: var(--cream); }
.btn-primary:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--cream); transform: translateY(-2px); }

/* Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 238, 222, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--cream-deep); box-shadow: 0 6px 24px -18px rgba(36,31,28,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--blue); line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--sans); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--red); }
.nav-links .nav-shop { color: var(--red); font-weight: 700; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--blue); margin: 5px 0; transition: .25s var(--ease); }

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--blue); color: var(--cream); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(200,155,60,.16), transparent 55%),
    radial-gradient(90% 80% at 10% 90%, rgba(156,59,42,.20), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; min-height: min(84vh, 720px);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.hero-copy .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); color: var(--cream); letter-spacing: .5px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #e7dcc4; max-width: 46ch; margin: 1.5rem 0 2.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn-ghost { border-color: var(--gold); color: var(--gold); }
.hero .btn-ghost:hover { background: var(--gold); color: var(--blue); }

.hero-art { position: relative; }
.hero-art img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(245,238,222,.25);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
}
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--cream); color: var(--blue);
  padding: .9rem 1.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 240px;
}
.hero-badge strong { font-family: var(--serif); font-size: 1.15rem; display: block; }
.hero-badge span { font-size: .78rem; color: var(--ink-soft); }

/* Gallery --------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--cream-deep); cursor: pointer;
  border: 1px solid var(--cream-deep);
  box-shadow: 0 8px 22px -16px rgba(36,31,28,.5);
}
.tile.tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile.tall img { aspect-ratio: 3/4.6; }
.tile:not(.tall) img { aspect-ratio: 1/1; }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.4rem 1.1rem .9rem;
  background: linear-gradient(to top, rgba(36,31,28,.82), transparent);
  color: var(--cream);
  font-family: var(--serif); font-size: 1.15rem;
  transform: translateY(6px); opacity: 0; transition: .3s var(--ease);
}
.tile:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery-note { text-align: center; margin-top: 2.5rem; color: var(--ink-soft); font-size: .95rem; }

/* About ----------------------------------------------------------------- */
.about { background: var(--cream-deep); }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-portrait { position: relative; }
.about-portrait img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-portrait::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1.5px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about h2 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--blue); }
.about p { font-size: 1.08rem; color: var(--ink-soft); margin: 1.1rem 0; }
.about .signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--red); margin-top: 1.5rem; }
.styles-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chip {
  font-size: .8rem; letter-spacing: .05em; font-weight: 600;
  padding: .4rem .9rem; border: 1px solid var(--blue-soft); color: var(--blue);
  border-radius: 40px; background: rgba(255,255,255,.4);
}

/* What is Rosemaling ---------------------------------------------------- */
.rose-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.rose-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--blue); }
.rose-head p { font-size: 1.12rem; color: var(--ink-soft); margin-top: 1.1rem; }
.rose-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.rose-card {
  background: var(--cream); border: 1px solid var(--cream-deep);
  border-top: 3px solid var(--gold);
  padding: 2rem 1.7rem; border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rose-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rose-card h3 { font-size: 1.4rem; color: var(--red); margin-bottom: .6rem; }
.rose-card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.rose-quote { text-align: center; max-width: 680px; margin: 3.5rem auto 0; }
.rose-quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--blue); margin: 0; line-height: 1.35; }
.rose-quote cite { display: block; margin-top: 1rem; font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* Shop CTA -------------------------------------------------------------- */
.shop { background: var(--blue); color: var(--cream); position: relative; overflow: hidden; }
.shop::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, rgba(200,155,60,.18), transparent 55%);
}
.shop-inner { position: relative; z-index: 1; text-align: center; max-width: 620px; margin-inline: auto; }
.shop .eyebrow { color: var(--gold); }
.shop h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--cream); }
.shop p { font-size: 1.1rem; color: #e7dcc4; margin: 1.1rem 0 2rem; }
.shop .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--blue); }
.shop .btn-primary:hover { background: var(--cream); border-color: var(--cream); color: var(--blue); }

/* Newsletter signup ------------------------------------------------------- */
.newsletter-cta { background: var(--cream-deep, #f1e9d8); }
.newsletter-inner { text-align: center; max-width: 560px; margin-inline: auto; }
.newsletter-cta .eyebrow { color: var(--sage); }
.newsletter-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--blue); }
.newsletter-cta p { font-size: 1.05rem; color: var(--ink-soft); margin: 1rem 0 1.8rem; }
.newsletter-form {
  display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; align-items: stretch;
}
.newsletter-form input[type="email"] {
  flex: 1 1 260px; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--cream-deep); border-radius: var(--radius);
  padding: .8rem 1rem; min-width: 0;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--blue-soft); }
.newsletter-form .btn { flex: 0 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Contact / commissions -------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--blue); }
.contact-copy p { font-size: 1.08rem; color: var(--ink-soft); margin: 1.1rem 0; }
.contact-alt a { font-weight: 600; }

.contact-form {
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .4rem;
}
.form-field input,
.form-field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--cream-deep);
  border-radius: var(--radius); padding: .75rem .9rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--blue-soft); background: #fff;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin: 1rem 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--sage); font-weight: 600; }
.form-status.err { color: var(--red); font-weight: 600; }

/* Contact / footer ------------------------------------------------------ */
.footer { background: var(--ink); color: #d9cfbd; padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer h3 { font-family: var(--serif); color: var(--cream); font-size: 1.6rem; margin-bottom: .8rem; }
.footer p, .footer a { color: #c4b9a5; font-size: .95rem; }
.footer a:hover { color: var(--gold); }
.footer .flabel { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: #9c8f7c; }

/* Scroll reveal --------------------------------------------------------- */
/* Hidden state only applies when JS is present (html.js), so no-JS visitors
   always see all content. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Lightbox -------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 22, 20, .93);
  display: flex; align-items: center; justify-content: center;
  padding: 4vw; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-cap { position: absolute; bottom: 4vh; left: 0; right: 0; text-align: center; color: var(--cream); font-family: var(--serif); font-size: 1.3rem; }
.lb-btn { position: absolute; background: none; border: 0; color: var(--cream); cursor: pointer; font-size: 2.4rem; line-height: 1; padding: 1rem; opacity: .8; transition: opacity .2s; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: 1.5vh; right: 2vw; }
.lb-prev { left: 1vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1vw; top: 50%; transform: translateY(-50%); }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; order: -1; }
  .hero-badge { left: 0; }
  .about-portrait { max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--cream-deep);
    box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; width: 100%; border-bottom: 1px solid var(--cream-deep); }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .tile.tall { grid-row: span 1; }
}
