/* ─────────────────────────────────────────
   LOCAL LIVING — Shared Styles
   Matches localliving.co exactly
───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: calc(1.1 * 62.5%);
  scroll-behavior: smooth;
}

body {
  background: #fcfcfc;
  color: #000;
  font-family: 'Arsenal', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Page width ── */
.page-width {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 750px) { .page-width { padding: 0 5rem; } }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fcfcfc;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header {
  display: grid;
  grid-template-areas:
    'left-icons heading icons'
    'navigation navigation navigation';
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 3rem 4px;
}

.header__heading {
  grid-area: heading;
  justify-self: center;
  line-height: 0;
}
.header__heading a {
  display: inline-block;
  padding: 0.75rem;
}
.header__heading img {
  width: 100px;
  height: auto;
  display: block;
}

.header__left-icons {
  grid-area: left-icons;
  justify-self: start;
  display: flex;
  align-items: center;
}

.header__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  margin-left: -1.2rem;
}
.header__hamburger svg { width: 1.8rem; height: 1.6rem; }

.header__icons {
  grid-area: icons;
  justify-self: end;
  display: flex;
  align-items: center;
  padding-right: 0.8rem;
}

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  padding: 0;
  transition: opacity 0.15s;
}
.header__icon:hover { opacity: 0.5; }
.header__icon svg { width: 2rem; height: 2rem; }
.header__icon--cart { margin-right: -1.2rem; }

.header__inline-menu {
  grid-area: navigation;
  display: flex;
  justify-content: center;
  padding-bottom: 0.6rem;
  margin-top: 0.4rem;
}
.header__inline-menu ul { display: inline-flex; }
.header__inline-menu a {
  display: block;
  font-family: 'Arsenal', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #000;
  padding: 0.5rem 1.4rem;
  transition: opacity 0.15s;
}
.header__inline-menu a:hover { opacity: 0.5; }
.header__inline-menu a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 989px) {
  .header {
    grid-template-areas: 'left-icons heading icons';
    grid-template-columns: 1fr 2fr 1fr;
    padding: 14px 2rem;
  }
  .header__inline-menu { display: none; }
  .header__hamburger { display: flex; }
  .header__icon--search-desktop { display: none; }
}

/* ─────────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────────── */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: #fcfcfc;
  z-index: 200;
  padding: 3rem;
  flex-direction: column;
}
.mobile-drawer.open { display: flex; }

.mobile-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 3rem;
  padding: 0.5rem;
  color: #000;
}
.mobile-drawer__close svg { width: 1.8rem; height: 1.8rem; }

.mobile-drawer__nav { display: flex; flex-direction: column; }
.mobile-drawer__nav a {
  font-family: 'Arsenal', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: #000;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  margin-top: 8rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 3rem 0 2rem;
  background: #fcfcfc;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5rem;
}
.footer-currency {
  font-family: 'Arsenal', sans-serif;
  font-size: 1.3rem;
  color: rgba(0,0,0,0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: none;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 0.5rem 1rem;
}
.footer-currency svg { width: 1rem; height: 1rem; fill: currentColor; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 2rem;
}
.footer-bottom p,
.footer-bottom a {
  font-family: 'Arsenal', sans-serif;
  font-size: 1.2rem;
  color: rgba(0,0,0,0.5);
}
.footer-bottom a:hover { color: #000; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }

/* ─────────────────────────────────────────
   SECTION HEADING
───────────────────────────────────────── */
.section-heading {
  text-align: center;
  padding: 40px 5rem 16px;
}
.section-heading h1,
.section-heading h2 {
  font-family: 'Amiri', serif;
  font-size: clamp(2.8rem, 3.5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
@media (max-width: 749px) { .section-heading { padding: 24px 2rem 12px; } }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Arsenal', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.4rem 3rem;
  border-radius: 40px;
  border: 1px solid #000;
  background: #fcfcfc;
  color: #000;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: #000; color: #fcfcfc; }
.btn-outline svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arsenal', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.4rem 3rem;
  border-radius: 40px;
  border: 1px solid #000;
  background: #000;
  color: #fcfcfc;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.btn-solid:hover { background: #333; }

/* ─────────────────────────────────────────
   PRODUCT CARD
───────────────────────────────────────── */
.product-card a { display: block; color: inherit; }

.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f0;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 1.2rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.07);
  margin-bottom: 1.4rem;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 1.2rem;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.04); }

.badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  background: #000;
  color: #fcfcfc;
  font-family: 'Arsenal', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.3rem 1rem;
  border-radius: 40px;
}

.product-card__info { text-align: center; }
.product-card__title {
  font-family: 'Arsenal', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.product-card__vendor {
  font-size: 1.1rem;
  color: rgba(0,0,0,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.product-card__price {
  font-family: 'Arsenal', sans-serif;
  font-size: 1.3rem;
  color: rgba(0,0,0,0.7);
}

/* ─────────────────────────────────────────
   ARTICLE CARD
───────────────────────────────────────── */
.article-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  color: inherit;
}
.article-card__image {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card:hover .article-card__image { transform: scale(1.04); }
.article-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  pointer-events: none;
}
.article-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.8rem 2rem;
  z-index: 1;
  color: #fff;
}
.article-card__category {
  font-family: 'Arsenal', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0.85;
}
.article-card__title {
  font-family: 'Arsenal', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
}

/* ─────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────── */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-loaded .reveal.visible {
  opacity: 1;
  transform: none;
}
/* Shared narrow-screen safeguards */
html,body{max-width:100%;overflow-x:clip}
img,video,iframe,svg{max-width:100%}
@media(max-width:700px){
  main,section,article,header,footer{min-width:0}
  h1,h2,h3,p,a{overflow-wrap:break-word}
  .hero h1{font-size:clamp(48px,16vw,68px)!important;line-height:.94!important}
  .hero-copy{width:min(100%,34rem);margin-left:auto;margin-right:auto}
  .story-side,.story-strip,.film-rail,.shop-grid{max-width:100vw}
  .story-side,.story-strip{overflow-x:auto;overscroll-behavior-x:contain}
  .story-side-card,.story-strip>a{max-width:calc(100vw - 44px)}
  .site-footer,.footer-inner,.footer-bottom,.footer-links{min-width:0;max-width:100%}
  .footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 18px}
  .ad-slot,.adsbygoogle{max-width:100%!important;overflow:hidden}
  .story-body iframe,.story-body video,.embed-block iframe{width:100%!important;height:auto;aspect-ratio:16/9}
}
