/* =====================================================
   ATELIER ANNA — STYLESHEET
   Design system + sections
   ===================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colors */
  --color-black:       #000000;
  --color-off-black:   #0A0A0A;
  --color-charcoal:    #1A1A1A;
  --color-dark-stripe: #2A2A2A;
  --color-white:       #FFFFFF;
  --color-off-white:   #F5F5F5;
  --color-light-grey:  #E0E0E0;
  --color-mid-grey:    #8A8A8A;

  --bg-dark:    var(--color-off-black);
  --bg-light:   var(--color-off-white);
  --text-dark:  var(--color-black);
  --text-light: var(--color-white);
  --border:     var(--color-light-grey);

  /* Typography */
  --font-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --font-body:    'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-ui:      'Raleway', 'Helvetica Neue', sans-serif;

  /* Spacing scale (8px base) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

  /* Motion */
  --t-fast: 150ms ease;
  --t-med:  300ms ease;

  /* Layout */
  --nav-h: 96px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, .logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 var(--s-3) 0;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 var(--s-2) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  padding: var(--s-2) var(--s-4);
  border: 1px solid currentColor;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn--outline {
  color: var(--color-white);
  border-color: var(--color-white);
  background: transparent;
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  transition: background var(--t-med), backdrop-filter var(--t-med);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 64px; width: auto; }
@media (max-width: 767px) {
  .nav__logo { height: 48px; }
}

.nav__menu {
  display: flex;
  gap: var(--s-4);
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}
.nav__menu a {
  color: var(--color-white);
  padding: var(--s-1) 0;
  position: relative;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav__menu a:hover::after { transform: scaleX(1); }

/* Mobile burger (CSS checkbox) */
.nav__toggle { display: none; }
.nav__burger {
  display: none;
  width: 28px;
  height: 20px;
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--t-med), opacity var(--t-med), top var(--t-med);
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 9px; }
.nav__burger span:nth-child(3) { top: 18px; }

@media (max-width: 767px) {
  .nav__burger { display: block; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-5) var(--s-4);
    transform: translateX(100%);
    transition: transform var(--t-med);
  }
  .nav__toggle:checked ~ .nav__menu { transform: translateX(0); }
  .nav__toggle:checked ~ .nav__burger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
  .nav__toggle:checked ~ .nav__burger span:nth-child(2) { opacity: 0; }
  .nav__toggle:checked ~ .nav__burger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  /* Shift up to sit under the transparent nav */
  margin-top: calc(var(--nav-h) * -1);
  background-color: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.hero__overlay { display: none; }
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--s-5) var(--s-3);
  max-width: 640px;
}
.hero__logo {
  width: clamp(200px, 40vw, 340px);
  margin: 0 auto var(--s-3);
}
.hero__divider {
  width: 80px;
  height: 1px;
  background: var(--border);
  margin: var(--s-3) auto;
}
.hero__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  letter-spacing: 0.02em;
  margin-bottom: var(--s-5);
  color: var(--color-off-white);
}

/* ---------- Section base ---------- */
.section {
  padding: var(--s-7) var(--s-3);
}
.section--light { background: var(--bg-light); color: var(--text-dark); }
.section--dark  { background: var(--color-charcoal); color: var(--text-light); }
.section--black { background: var(--color-black); color: var(--text-light); }

.container {
  max-width: var(--container);
  margin: 0 auto;
}
.section__head {
  text-align: center;
  margin-bottom: var(--s-6);
}
.section__divider {
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  margin: var(--s-3) auto;
}
.section__lead {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--border);
  padding: var(--s-5) var(--s-4);
  text-align: center;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.service-card:hover {
  border-color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--s-3);
  color: var(--color-black);
}
.service-card h3 {
  font-size: 1rem;
  margin-bottom: var(--s-2);
}
.service-card .card-desc {
  color: var(--color-mid-grey);
  font-size: 1rem;
  margin: 0;
}

/* ---------- About ---------- */
.section__divider--left { margin-left: 0; margin-right: 0; }

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}

.about__media {
  background: var(--color-dark-stripe);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__body h2 { text-align: left; }
.about__body .section__divider { margin-left: 0; }
.about__text {
  font-size: 1.125rem;
  color: var(--color-off-white);
  margin-bottom: var(--s-3);
}
.about__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--color-light-grey);
}
.about__badge-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mid-grey);
}
.about__badge-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 1.125rem;
  color: var(--color-white);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
@media (min-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
}

.gallery__item {
  display: block;
  padding: 0;
  background: var(--color-charcoal);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-med), opacity var(--t-med);
}
.gallery__item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-5) var(--s-3);
}
.lightbox.is-open { display: flex; }
.lightbox__frame {
  margin: 0;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--color-charcoal);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}
.lightbox__close { top: var(--s-3); right: var(--s-3); font-size: 2.25rem; }
.lightbox__nav--prev { left: var(--s-3); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--s-3); top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__nav--prev { left: var(--s-1); }
  .lightbox__nav--next { right: var(--s-1); }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (max-width: 767px) {
  .contact > * { min-width: 0; }
}
@media (min-width: 768px) {
  .contact { grid-template-columns: minmax(280px, 2fr) 3fr; gap: var(--s-6); }
}

.contact__list { margin: 0; }
.contact__row {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.contact__row:last-child { border-bottom: 0; }
.contact__row dt {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mid-grey);
  margin-bottom: var(--s-1);
}
.contact__row dd {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-black);
}
.contact__row dd a:hover { text-decoration: underline; }

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  width: 100%;
}
.hours li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--s-2);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.hours li:first-child { border-top: 0; }
.hours__day  { color: var(--color-black); text-align: left; }
.hours__time { color: var(--color-mid-grey); white-space: nowrap; text-align: right; }

@media (max-width: 480px) {
  .hours { font-size: 0.8125rem; letter-spacing: 0; }
}

.contact__social {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.contact__social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  transition: background var(--t-fast), color var(--t-fast);
}
.contact__social-link:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.contact__map {
  position: relative;
  background: var(--color-charcoal);
  min-height: 360px;
  aspect-ratio: 4 / 3;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) contrast(1.05);
  transition: filter var(--t-med);
}
.contact__map iframe:hover { filter: grayscale(0%); }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-off-black);
  color: var(--color-mid-grey);
  padding: var(--s-6) var(--s-3) var(--s-4);
  text-align: center;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}
.footer__logo {
  height: 72px;
  width: auto;
  margin-bottom: var(--s-2);
  opacity: 0.9;
}
.footer__meta {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0;
  color: var(--color-light-grey);
}
.footer__meta a { color: var(--color-white); }
.footer__meta a:hover { text-decoration: underline; }
.footer__copy {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: var(--s-3) 0 0;
  color: var(--color-mid-grey);
}
