/* ============================================================
   GLASSYBIRD — site design system  (refined Art Deco, stone)
   Display/accents: 'blakely'  ·  Body: Josefin Sans (light)
   Self-sufficient: all responsive rules are in THIS file.
   ============================================================ */

:root {
  /* palette — change --stone to #fff for a white background */
  --stone:       #edecd8;
  --stone-deep:  #e4e2cf;
  --paper:       #ffffff;
  --ink:         #2a2a26;
  --muted:       #5e5d54;
  --line:        #c7c4af;
  --grey:        #666;
  --grey-dark:   #4f4f4f;
  --nav-text:    #ffffff;

  --display: 'blakely', 'Josefin Sans', sans-serif;
  --body:    'Josefin Sans', sans-serif;

  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }

body {
  font-family: var(--body);
  font-weight: 300;            /* light = refined, not blocky */
  background: var(--stone);
  color: var(--ink);
  line-height: 1.55;
  text-align: center;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- typography: deco everywhere it shows ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.05em;
}

.rule {
  width: 56px; height: 1px;
  background: var(--grey);
  border: 0;
  margin: 0.7rem auto 0;
}

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-header {
  width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--paper);
  padding: 1.4rem 1rem;
}
.logo-link { display: block; }
img.logo { max-width: 420px; display: block; margin: 0 auto; }

.nav-hero {
  width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--grey);
  color: var(--nav-text);
  padding: 0.85rem 1rem;
  font-family: var(--display);
  letter-spacing: 0.08em;
}
.nav-hero a {
  color: var(--nav-text); text-decoration: none;
  font-size: 1.15rem; margin: 0 0.9rem;
  transition: opacity 0.2s ease;
}
.nav-hero a:hover { opacity: 0.7; }

.mobile-nav {
  display: none;
  width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--grey); color: var(--nav-text);
  padding: 0.85rem 1.2rem;
  font-family: var(--display);
}
.menu-toggle { font-size: 1.3rem; letter-spacing: 0.08em; cursor: pointer; text-align: left; }
/* open menu = the grey bar continued straight down, no inner box */
.mobile-menu {
  list-style: none; display: none; flex-direction: column;
  margin-top: 0.5rem; padding: 0;
}
.mobile-nav.menu-open .mobile-menu { display: flex; }
.mobile-menu li + li { border-top: 1px solid rgba(255,255,255,0.14); }  /* thin deco divider */
.mobile-menu li a {
  color: var(--nav-text); text-decoration: none;
  font-size: 1.15rem; letter-spacing: 0.05em;
  padding: 0.5rem 0; display: block; text-align: left;   /* left-aligned to match MENU */
}
.mobile-menu li a:hover { opacity: 0.75; }

/* ============================================================
   BUTTONS — deco, but big and legible
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.25rem;           /* was tiny — now clearly readable */
  line-height: 1;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border: 1.5px solid var(--grey);
  background: var(--grey);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--grey-dark); border-color: var(--grey-dark); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--grey); }
.btn-outline:hover { background: var(--grey); color: #fff; transform: translateY(-2px); }

/* ============================================================
   LAYOUT — tighter spacing
   ============================================================ */
.section { padding: 2.75rem 1.25rem; }
.section--deep { background: var(--stone-deep); }
.wrap { max-width: var(--maxw); margin: 0 auto; }

.section-head { margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); text-transform: uppercase; }

/* ---------- INTRO / HERO (compact) ---------- */
.intro { padding: 1.25rem 1.25rem 1.85rem; }
.intro h1 { font-size: clamp(1.55rem, 3.8vw, 2.2rem); text-transform: uppercase; }
.intro .tagline {
  font-family: var(--display);      /* refined deco, not blocky */
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--muted);
  margin: 0.6rem auto 0;
  max-width: 48ch;
}
.actions {
  margin-top: 1.2rem;
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
}

/* staggered reveal on load */
.reveal { opacity: 0; transform: translateY(12px); animation: gb-up 0.6s ease forwards; }
.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.16s; }
.reveal:nth-child(3) { animation-delay: 0.27s; }
.reveal:nth-child(4) { animation-delay: 0.38s; }
@keyframes gb-up { to { opacity: 1; transform: translateY(0); } }

/* ---------- FEATURED CREATIONS ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cat-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line);
  padding: 0.9rem 0.9rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,0.10); }
.cat-card .thumb { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat-card h3 { font-size: 1.15rem; text-transform: uppercase; margin-top: 0.75rem; }

/* ---------- STORY ---------- */
.story .wrap { max-width: 640px; }
.story p { font-size: 1.05rem; color: var(--muted); margin-bottom: 1rem; }
.story p em { color: var(--ink); font-style: italic; }
.story .btn { margin-top: 0.5rem; }

/* ---------- PROSE (readable text column for content pages) ---------- */
.prose { max-width: 640px; margin: 0 auto; text-align: left; }
.prose p { font-size: 1.08rem; line-height: 1.75; color: var(--ink); margin-bottom: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- COMMISSIONS CTA ---------- */
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); text-transform: uppercase; }
.cta p { color: var(--muted); margin: 0.9rem auto 1.5rem; max-width: 44ch; font-size: 1.05rem; }

/* ---------- GENERIC PAGE TITLE CARD (other pages) ---------- */
.hero {
  margin: 1.5rem auto;
  padding: 1.25rem 1.5rem;
  max-width: var(--maxw);
  background: var(--paper);
  border: 1px solid var(--line);
}
.hero h1 { text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2.1rem); }

/* ---------- FOOTER ---------- */
.site-footer {
  width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--grey); color: #fff;
  padding: 2.5rem 1.25rem 1.75rem;
}
.site-footer .f-grid { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; text-align: left; }
.site-footer h4 { font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.1rem; margin-bottom: 0.7rem; font-weight: 400; }
.site-footer a { color: #fff; text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .f-bottom { max-width: var(--maxw); margin: 2rem auto 0; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.85rem; opacity: 0.8; text-align: center; }

/* ============================================================
   CONTENT-PAGE COMPONENTS (commission steps, contact form)
   ============================================================ */
.btn { cursor: pointer; }

/* "How it works" steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 860px; margin: 0 auto; }
.step { text-align: center; }
.step .num { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--grey); letter-spacing: 0.04em; }
.step h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0.5rem 0 0.35rem; }
.step p { font-size: 0.98rem; color: var(--muted); }

/* Contact form */
.contact-wrapper { max-width: 560px; margin: 0 auto; text-align: left; }
.contact-wrapper form {
  background: var(--paper, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.6rem 1.6rem 1.9rem;
  box-shadow: 0 1px 4px rgba(42, 42, 38, 0.05);
}
.contact-wrapper label {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--ink);
  margin: 1.1rem 0 0.4rem;
}
.contact-wrapper label:first-of-type { margin-top: 0; }
.contact-wrapper input,
.contact-wrapper textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
}
.contact-wrapper input:focus,
.contact-wrapper textarea:focus {
  outline: none;
  border-color: var(--grey);
  box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.15);
}
.contact-wrapper textarea { min-height: 150px; resize: vertical; }
.contact-wrapper .check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 1.2rem;
}
.contact-wrapper .check input { display: inline-block; width: auto; margin-top: 0.2rem; flex-shrink: 0; }
.contact-wrapper button { margin-top: 1.5rem; width: 100%; max-width: none; }
.success-message, .error-message { padding: 0.8rem 1rem; border-radius: 3px; margin-bottom: 1rem; font-size: 0.98rem; }
.success-message { background: #e7efe0; border: 1px solid #b7cda4; color: #3d5a2c; }
.error-message   { background: #f4e4e0; border: 1px solid #d8a99f; color: #7a3a2c; }

/* ============================================================
   SHOP / COLLECTIONS
   ============================================================ */
.card-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 660px; margin-left: auto; margin-right: auto; }
.cat-card .card-note {
  display: block; font-family: var(--body); font-weight: 300;
  font-size: 0.82rem; letter-spacing: 0; text-transform: none;
  color: var(--muted); margin-top: 0.25rem;
}

/* Collection listing (single product) */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  max-width: 960px; margin: 0 auto; align-items: start; text-align: left;
}
.product-media { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem; }
.product-media img { display: block; width: 100%; border-radius: 5px; }
.product-placeholder {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.product-placeholder span {
  font-family: var(--display); letter-spacing: 0.06em; font-size: 0.95rem;
  color: rgba(42, 42, 38, 0.7); background: rgba(255, 255, 255, 0.75);
  padding: 0.4rem 0.75rem; border-radius: 3px;
}
.product-collection {
  display: inline-block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.78rem; color: var(--grey); margin-bottom: 0.4rem;
}
.product-info h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); text-transform: uppercase; margin: 0; }
.product-info h2 .season { color: var(--grey); }
.product-price { font-family: var(--display); font-size: 1.5rem; color: var(--ink); margin: 0.5rem 0 1rem; }
.product-desc { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 42ch; }
.swatch-label { font-family: var(--display); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85rem; color: var(--ink); margin: 1.4rem 0 0.6rem; }
.swatches { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; background: none; border: 0; padding: 0.25rem; cursor: pointer; }
.swatch .dot {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color 0.15s ease, transform 0.15s ease;
}
.swatch:hover .dot { transform: translateY(-2px); }
.swatch.active .dot { outline-color: var(--ink); }
.swatch .name { font-family: var(--body); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.swatch.active .name { color: var(--ink); }
.swatch--winter .dot { background: linear-gradient(135deg, #dcebf2, #7fb6d1 55%, #eaf4f8); }
.swatch--spring .dot { background: linear-gradient(135deg, #d6ef9c, #5aa83e 55%, #bfe06a); }
.swatch--summer .dot { background: linear-gradient(135deg, #ffd980, #ff9d5c 50%, #f2675a); }
.swatch--autumn .dot { background: linear-gradient(135deg, #f3bd5a, #c9621f 55%, #7e3318); }
.swatch--custom .dot { background: conic-gradient(from 200deg, #7fb6d1, #5aa83e, #ffd980, #c9621f, #7fb6d1); }
.made-to-order { font-family: var(--body); font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin: 1.3rem 0 1.4rem; max-width: 42ch; }
.product .btn { width: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
  .nav-hero { display: none; }
  .mobile-nav { display: block; }
  img.logo { max-width: 82%; }
  .section { padding: 2rem 1.1rem; }
  .intro { padding: 1.1rem 1.1rem 1.6rem; }
  .site-footer .f-grid { flex-direction: column; gap: 1.5rem; }
  .btn { font-size: 1.2rem; }            /* stays readable on phones */
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .product { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .cat-card { max-width: 320px; margin: 0 auto; width: 100%; }
  .btn { width: 100%; max-width: 320px; }
  .contact-wrapper form { padding: 1.2rem 1.1rem 1.5rem; }
}
