/* ============================================
   BB's Fashion Boutique — Styles
   Palette: Terracotta + Sand | Clean Minimalist
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-terra: #B5654A;
  --clr-terra-dark: #9A5038;
  --clr-terra-light: #C97B62;
  --clr-sand: #F5F0EB;
  --clr-sand-dark: #E8E0D6;
  --clr-cream: #FAF8F5;
  --clr-charcoal: #2C2825;
  --clr-text: #3A3530;
  --clr-text-muted: #7A726A;
  --clr-white: #FFFFFF;
  --clr-line: #E5DDD4;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.5rem;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--clr-terra);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-terra-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--clr-charcoal);
  color: var(--clr-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 200;
  font-size: var(--fs-sm);
}

.skip-link:focus {
  top: var(--space-md);
  color: var(--clr-white);
}

/* ---------- TYPOGRAPHY ---------- */
.section-eyebrow {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-terra);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-3xl);
  line-height: 1.15;
  color: var(--clr-charcoal);
  margin-bottom: var(--space-xl);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 540px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9em 2em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--clr-terra);
  color: var(--clr-white);
  border-color: var(--clr-terra);
}

.btn--primary:hover {
  background: var(--clr-terra-dark);
  border-color: var(--clr-terra-dark);
  color: var(--clr-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(181, 101, 74, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-terra);
  border-color: var(--clr-terra);
}

.btn--ghost:hover {
  background: var(--clr-terra);
  color: var(--clr-white);
}

.link--inline {
  color: var(--clr-terra);
  text-decoration: underline;
  text-decoration-color: var(--clr-sand-dark);
  text-underline-offset: 3px;
}

.link--inline:hover {
  text-decoration-color: var(--clr-terra);
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-line);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(44, 40, 37, 0.06);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- LOGO ---------- */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--clr-charcoal);
}

.site-logo__mark {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--clr-terra);
  border: 1.5px solid var(--clr-terra);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.45em;
  line-height: 1.4;
}

.site-logo__wordmark {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-lg);
  letter-spacing: 0.02em;
}

.site-logo__mark--footer {
  font-size: var(--fs-lg);
}

/* ---------- NAV ---------- */
.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--clr-text);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-terra);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--clr-terra);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--clr-terra);
  color: var(--clr-white) !important;
  padding: 0.55em 1.3em;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  font-weight: 500;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--clr-terra-dark);
  color: var(--clr-white) !important;
}

/* Nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 110;
}

.nav__toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--clr-charcoal);
  transition: all var(--transition);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--clr-cream);
  overflow: hidden;
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  width: 100%;
  align-items: center;
}

.hero__content {
  padding-right: var(--space-3xl);
}

.hero__eyebrow {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-terra);
  margin-bottom: var(--space-lg);
}

.hero__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.12;
  color: var(--clr-charcoal);
  margin-bottom: var(--space-xl);
}

.hero__headline em {
  font-style: italic;
  color: var(--clr-terra);
}

.hero__subheadline {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero__tagline {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  letter-spacing: 0.03em;
}

.hero__image-wrap {
  position: relative;
}

.hero__image {
  width: 100%;
  height: 70vh;
  height: 70dvh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(44, 40, 37, 0.12);
}

.hero__image-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--clr-terra-light);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

/* ---------- ABOUT ---------- */
.about {
  padding: var(--space-5xl) 0;
  background: var(--clr-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about__text p {
  margin-bottom: var(--space-lg);
  color: var(--clr-text);
  font-size: var(--fs-base);
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(44, 40, 37, 0.08);
}

/* ---------- COLLECTION ---------- */
.collection {
  padding: var(--space-5xl) 0;
  background: var(--clr-cream);
}

.collection__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.collection__header .section-subtitle {
  margin: 0 auto;
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.collection-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 40, 37, 0.08);
}

.collection-card__img-wrap {
  overflow: hidden;
}

.collection-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.collection-card:hover .collection-card__img {
  transform: scale(1.04);
}

.collection-card__body {
  padding: var(--space-lg);
}

.collection-card__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--clr-charcoal);
  margin-bottom: var(--space-sm);
}

.collection-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.65;
}

.collection__note {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

/* ---------- WHY ---------- */
.why {
  padding: var(--space-5xl) 0;
  background: var(--clr-charcoal);
  color: var(--clr-white);
}

.why__inner {
  max-width: 1000px;
}

.why__text {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.why__text .section-title {
  color: var(--clr-white);
}

.why__text .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.why-card {
  padding: var(--space-2xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition);
}

.why-card:hover {
  border-color: rgba(181, 101, 74, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(181, 101, 74, 0.5);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  color: var(--clr-terra-light);
}

.why-card__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--clr-white);
  margin-bottom: var(--space-sm);
}

.why-card__desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ---------- VISIT ---------- */
.visit {
  padding: var(--space-5xl) 0;
  background: var(--clr-sand);
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.visit__address {
  font-style: normal;
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--clr-charcoal);
  margin-bottom: var(--space-2xl);
  padding-left: var(--space-lg);
  border-left: 2px solid var(--clr-terra);
}

.visit__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.visit__contact-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-base);
  color: var(--clr-text);
  text-decoration: none;
  transition: color var(--transition);
}

.visit__contact-item:hover {
  color: var(--clr-terra);
}

.visit__contact-item svg {
  flex-shrink: 0;
  color: var(--clr-terra);
}

.visit__map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(44, 40, 37, 0.08);
  height: 100%;
  min-height: 380px;
}

.visit__map {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--clr-charcoal);
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-3xl) 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__brand .site-logo__wordmark {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__copy {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.site-footer__contact {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.site-footer__contact-item {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__contact-item:hover {
  color: var(--clr-terra-light);
}

.site-footer__address {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__split {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .hero__content {
    padding-right: 0;
    text-align: center;
  }

  .hero__subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__tagline {
    text-align: center;
  }

  .hero__image {
    height: 50vh;
    height: 50dvh;
    max-height: 560px;
  }

  .hero__image-wrap::before {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .collection__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visit__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
}

@media (max-width: 768px) {
  :root {
    --fs-3xl: 2.15rem;
    --fs-4xl: 2.75rem;
  }

  .site-header__inner {
    padding: 0 var(--space-lg);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    background: var(--clr-cream);
    border-left: 1px solid var(--clr-line);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 105;
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: var(--fs-md);
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero__split {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero__image {
    height: 40vh;
    height: 40dvh;
  }

  .collection__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-2xl);
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }

  .site-footer__contact {
    flex-direction: column;
    gap: var(--space-md);
  }

  .container {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .collection-card__img {
    height: 220px;
  }
}
