/* ============================================================
   ARASI SHOP — STYLESHEET
   Warm, rustic, story-driven single page
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --cream:        #F5EDD8;
  --cream-deep:   #EAD9B8;
  --cream-light:  #FBF6EC;
  --brown-dark:   #2D1F0F;
  --brown-mid:    #6B3D1E;
  --brown-warm:   #8B5E3C;
  --brown-light:  #C49A6C;
  --green-deep:   #1E3425;
  --green-mid:    #2D4A2F;
  --green-muted:  #4A6741;
  --amber:        #C4813A;
  --amber-light:  #E0A96D;
  --white:        #FFFFFF;

  --font-serif:       'Playfair Display', Georgia, serif;
  --font-body:        'Lora', 'Georgia', serif;
  --font-script:      'Dancing Script', cursive;

  --max-width:        780px;
  --max-width-wide:   1200px;

  --section-gap:      clamp(5rem, 10vw, 9rem);
  --text-gap:         1.6rem;
}

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

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

body {
  background-color: var(--cream);
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw + 0.5rem, 1.2rem);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ── CONTAINERS ── */
.container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.container--narrow {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.container--wide {
  max-width: var(--max-width-wide);
  margin-inline: auto;
}

/* ── SECTIONS ── */
.section {
  padding-block: var(--section-gap);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section__label {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--amber);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--green-deep);
  max-width: 24ch;
  margin-inline: auto;
}

/* ── PROSE ── */
.prose {
  display: flex;
  flex-direction: column;
  gap: var(--text-gap);
}

.prose__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--brown-mid);
}

.prose p { color: var(--brown-dark); }

.prose strong { color: var(--brown-mid); font-weight: 600; }

/* ── PULL QUOTES ── */
.pull-quote {
  border-left: 3px solid var(--amber);
  margin: 1rem 0 1rem clamp(0rem, 4vw, 3rem);
  padding: 0.8rem 1.5rem;
  background: transparent;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--brown-mid);
}

.pull-quote--right {
  border-left: none;
  border-right: 3px solid var(--amber);
  text-align: right;
  margin-left: 0;
  margin-right: clamp(0rem, 4vw, 3rem);
  padding: 0.8rem 1.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* ── HERO BACKGROUND ──
   To use a real photo, add to .hero__image-bg:
   background-image: url('assets/images/hero/hero.jpg');
   Remove the gradient lines below once you have a real image. */
.hero__image-bg {
  position: absolute;
  inset: 0;
  background-image:
    url('assets/images/hero/hero.jpg'),
    /* Fallback gradient — remove once hero.jpg is in place */
    linear-gradient(
      160deg,
      #1E3425 0%,
      #2D4A2F 30%,
      #4A6741 55%,
      #6B3D1E 80%,
      #2D1F0F 100%
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero:hover .hero__image-bg,
.hero.loaded .hero__image-bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 20, 10, 0.35) 0%,
    rgba(30, 20, 10, 0.55) 50%,
    rgba(30, 20, 10, 0.70) 100%
  );
}

/* Grain/texture overlay */
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 1.5rem;
}

.hero__eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--amber-light);
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--cream-light);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: var(--cream-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  font-style: italic;
}

/* ── SCROLL CUE ── */
.hero__scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cream-deep);
  opacity: 0.7;
  transition: opacity 0.3s;
}
.hero__scroll-cue:hover { opacity: 1; }

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: var(--cream-deep);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; transform-origin: top center; }
  40%  { transform: scaleY(1); opacity: 1; transform-origin: top center; }
  60%  { transform: scaleY(1); opacity: 1; transform-origin: bottom center; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom center; }
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================================
   IMAGE BREAKS
   ============================================================ */
.image-break {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-break--tall  { height: clamp(350px, 55vw, 680px); }
.image-break--medium { height: clamp(280px, 42vw, 540px); }

.image-break__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

/* ── IMAGE BREAK 1 — Hills / Mist ──
   Replace gradient with: background-image: url('assets/images/place/place1.jpg'); */
.image-break--break1 {
  background-image:
    url('assets/images/place/place1.jpg'),
    linear-gradient(135deg, #1E3425 0%, #2D4A2F 50%, #4A6741 100%);
  background-size: cover;
  background-position: center;
}

/* ── IMAGE BREAK 2 — Food / Hands ──
   Replace gradient with: background-image: url('assets/images/food/food-break.jpg'); */
.image-break--break2 {
  background-image:
    url('assets/images/food/food-break.jpg'),
    linear-gradient(135deg, #6B3D1E 0%, #8B5E3C 50%, #C49A6C 100%);
  background-size: cover;
  background-position: center;
}

.image-break__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.38);
}

.image-break__caption {
  position: absolute;
  bottom: 1.75rem;
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
  font-family: var(--font-script);
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--cream-deep);
  opacity: 0.8;
  letter-spacing: 0.03em;
}

/* Disable parallax on mobile */
@media (max-width: 768px) {
  .image-break__bg { background-attachment: scroll; }
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.story {
  background-color: var(--cream);
}

/* Subtle aged-paper texture on story section */
.story::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}
.story { position: relative; }

/* ============================================================
   FOOD SECTION
   ============================================================ */
.food { background-color: var(--cream-light); }

.food-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.6rem;
  margin-block: clamp(2rem, 5vw, 4rem);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.food-grid__item {
  position: relative;
  overflow: hidden;
  background-color: var(--cream-deep);
  border-radius: 2px;
}

.food-grid__item--large {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: 4 / 5;
}

.food-grid__item--small {
  grid-column: 2;
  aspect-ratio: 4 / 3;
}

.food-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.food-grid__item:hover .food-grid__img { transform: scale(1.04); }

/* ── Image placeholder state ── */
.img-placeholder .food-grid__img,
.img-placeholder .place__landscape-img {
  opacity: 0;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder__label {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--brown-warm);
  opacity: 0.6;
  border: 1.5px dashed var(--brown-light);
  border-radius: 2px;
  pointer-events: none;
}

.img-placeholder .img-placeholder__label { display: flex; }

@media (max-width: 640px) {
  .food-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .food-grid__item--large {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .food-grid__item--small {
    grid-column: 1;
  }
}

/* ============================================================
   THE PLACE
   ============================================================ */
.place { background-color: var(--cream); }

.place__landscape {
  position: relative;
  width: 100%;
  max-width: var(--max-width-wide);
  margin-inline: auto;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background-color: var(--cream-deep);
  border-radius: 2px;
}

.place__landscape-img {
  width: 100%;
  height: clamp(220px, 40vw, 520px);
  object-fit: cover;
}

.img-placeholder--landscape {
  height: clamp(220px, 40vw, 520px);
  border: 1.5px dashed var(--brown-light);
}

.img-placeholder--landscape .img-placeholder__label {
  display: flex;
  position: static;
  height: 100%;
  width: 100%;
}

/* ============================================================
   FIND US
   ============================================================ */
.find-us { background-color: var(--green-deep); color: var(--cream); }

.find-us .section__label { color: var(--amber-light); }

.find-us .section__title {
  color: var(--cream-light);
  font-style: italic;
}

.find-us__address {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.find-us__address-main {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--amber-light);
  line-height: 1.2;
}

.find-us__address-line {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream-deep);
  letter-spacing: 0.08em;
}

.find-us__address-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--brown-light);
  margin-top: 0.6rem;
}

.find-us__map {
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.find-us__map iframe {
  width: 100%;
  display: block;
  filter: sepia(0.25) contrast(0.9);
}

.find-us__note {
  text-align: center;
  max-width: 50ch;
  margin-inline: auto;
}

.find-us__note p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream-deep);
  line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--brown-dark);
  color: var(--cream-deep);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.footer__top {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--cream-light);
  letter-spacing: -0.01em;
}

.footer__tagline {
  font-family: var(--font-script);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--amber-light);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--cream-deep);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.footer__social-link:hover {
  border-color: var(--amber);
  color: var(--amber);
  background-color: rgba(196, 129, 58, 0.08);
}

.footer__divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__family {
  font-size: 0.9rem;
  color: var(--brown-light);
}

.footer__vattahost-link {
  color: var(--amber-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 169, 109, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.footer__vattahost-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(234, 217, 184, 0.4);
  letter-spacing: 0.05em;
}

/* ============================================================
   SECTION ENTRANCE ANIMATIONS
   ============================================================ */
.section__header,
.prose,
.food-grid,
.place__landscape,
.find-us__address,
.find-us__map,
.find-us__note {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger children */
.in-view .prose > * { animation: fadeUp 0.6s ease forwards; }
.in-view .prose > *:nth-child(1) { animation-delay: 0.05s; }
.in-view .prose > *:nth-child(2) { animation-delay: 0.15s; }
.in-view .prose > *:nth-child(3) { animation-delay: 0.25s; }
.in-view .prose > *:nth-child(4) { animation-delay: 0.35s; }
.in-view .prose > *:nth-child(5) { animation-delay: 0.45s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 480px) {
  .hero__title { letter-spacing: -0.02em; }
  .pull-quote,
  .pull-quote--right {
    margin-inline: 0;
    border-left-width: 2px;
    border-right-width: 2px;
  }
  .food-grid { gap: 0.4rem; }
  .find-us__map iframe { height: 300px; }
}

/* ============================================================
   PRINT — hide animations, show all content
   ============================================================ */
@media print {
  .hero__scroll-cue { display: none; }
  * { opacity: 1 !important; transform: none !important; animation: none !important; }
}
