/* ============================================================
   Γιαγκούλας — landing page
   Vanilla, self-contained. Warm Mediterranean palette.
   ============================================================ */

:root {
  --cream:        #faf6ef;
  --cream-2:      #f1e9dc;
  --ink:          #241d16;
  --ink-soft:     #5c5145;
  --terracotta:   #c25a2b;
  --terracotta-d: #a6481f;
  --olive:        #55603f;
  --line:         rgba(36, 29, 22, .12);
  --white:        #fff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(36, 29, 22, .16);
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }

a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: var(--white); }
.btn--primary:hover { background: var(--terracotta-d); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--white); }
.brand__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.brand__place { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; opacity: .85; margin-top: 3px; }

.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 6px 2px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--terracotta); transition: right .25s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

/* Scrolled state (toggled by JS) */
.site-header.is-scrolled {
  background: rgba(250, 246, 239, .95);
  box-shadow: 0 2px 18px rgba(36, 29, 22, .12);
  backdrop-filter: saturate(1.1) blur(6px);
}
.site-header.is-scrolled .brand,
.site-header.is-scrolled .nav a { color: var(--ink); }
.site-header.is-scrolled .brand__place { opacity: .6; }

/* ============================================================
   1. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  text-align: center;
  background: #2a2018;   /* behind the video, until the first frame paints */
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
  transition: opacity .9s ease;
}
.hero__video.is-hidden { opacity: 0; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,15,10,.45) 0%, rgba(20,15,10,.15) 35%, rgba(20,15,10,.5) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(20,15,10,.35) 100%);
}
.hero__content { position: relative; z-index: 2; padding-top: var(--header-h); }

.hero__kicker {
  margin: 0 0 14px; font-size: .82rem; letter-spacing: .34em; text-transform: uppercase;
  font-weight: 600; opacity: .92;
}
.hero__title {
  font-size: clamp(3.4rem, 11vw, 7rem);
  letter-spacing: .01em;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero__location {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 18px 0 0; font-size: clamp(1.15rem, 2.8vw, 1.55rem); font-weight: 600;
}
.hero__location .icon { width: 23px; height: 23px; fill: var(--terracotta); }
.hero__tagline {
  margin: 14px auto 0; max-width: 30ch;
  font-size: clamp(1.12rem, 2.5vw, 1.42rem); opacity: .95;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; color: var(--white); opacity: .85;
  animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll svg { width: 34px; height: 34px; fill: currentColor; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section-head { text-align: center; padding-block: clamp(56px, 8vw, 96px) 8px; }
.eyebrow {
  margin: 0 0 10px; color: var(--terracotta); font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; font-size: .78rem;
}
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.section-sub { margin: 14px auto 0; max-width: 52ch; color: var(--ink-soft); }

/* ============================================================
   2. Carousel / Gallery
   ============================================================ */
.gallery { padding-bottom: clamp(56px, 8vw, 96px); }

.carousel {
  position: relative;
  max-width: 1320px; margin: 40px auto 0; padding-inline: 24px;
}
.carousel__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--shadow);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide[hidden] { display: block; } /* keep in flow for crossfade; JS toggles is-active */
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* Arrows */
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 50px; height: 50px; border: none; border-radius: 50%;
  background: rgba(250,246,239,.9); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: background .2s ease, transform .15s ease;
}
.carousel__btn:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
.carousel__btn svg { width: 26px; height: 26px; fill: currentColor; }
.carousel__btn--prev { left: 36px; }
.carousel__btn--next { right: 36px; }

/* Dots */
.carousel__dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.carousel__dots button {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--terracotta); background: transparent;
  transition: background .2s ease, transform .2s ease;
}
.carousel__dots button[aria-selected="true"] { background: var(--terracotta); transform: scale(1.2); }

/* ============================================================
   3. Contact / Maps
   ============================================================ */
.contact { background: var(--cream-2); }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px;
  padding-block: 42px clamp(56px, 8vw, 96px); align-items: stretch;
}
.contact__info { align-self: center; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon {
  flex: 0 0 auto; width: 26px; height: 26px; fill: var(--terracotta); margin-top: 4px;
}
.info-list h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.info-list p { margin: 0; font-size: 1.05rem; }
.info-list a { color: var(--terracotta-d); text-decoration: none; font-weight: 600; }
.info-list a:hover { text-decoration: underline; }

.contact__map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-height: 380px; background: var(--cream);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink); color: var(--cream);
  text-align: center; padding-block: 34px;
}
.site-footer p { margin: 0; }
.site-footer .brand + p, .site-footer .muted { opacity: .65; font-size: .9rem; margin-top: 6px; }
.site-footer p:first-child { font-family: var(--serif); font-size: 1.15rem; }

/* ============================================================
   Focus visibility
   ============================================================ */
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: 30px; }
  .carousel__btn--prev { left: 14px; }
  .carousel__btn--next { right: 14px; }
}

@media (max-width: 768px) {
  .carousel { padding-inline: 12px; }
  .carousel__btn { width: 42px; height: 42px; }
  .nav { gap: 18px; }
  .nav a { font-size: .9rem; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 1.3rem; }
  .hero__actions .btn { padding: 12px 20px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { display: none; }
  .hero { background: #2a2018 url("../images/web/hero-poster-1280.jpg") center/cover no-repeat; }
  .hero__scroll { animation: none; }
  .slide { transition: none; }
  .btn:hover, .carousel__btn:hover { transform: none; }
}
