/* =====================================================
   Studio das Ondas — static site
   Palette sampled from the logo: navy, terracotta, cream.
   ===================================================== */

:root{
  --ink:        #1A2E48;
  --ink-soft:   #46586F;
  --cream:      #F7F2E9;
  --cream-2:    #EEE4D2;
  --terracotta: #B1704B;
  --terracotta-deep: #8C5636;
  --white:      #FFFFFF;
  --line:       rgba(26,46,72,0.14);
  --line-on-dark: rgba(247,242,233,0.32);

  --display: "Fraunces", "Iowan Old Style", serif;
  --body:    "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- reset / base ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1, h2, h3, h4{ font-family:var(--display); font-weight:500; letter-spacing:-0.01em; margin:0; }
em{ font-style:italic; font-family:var(--display); color:var(--terracotta-deep); }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--gutter);
}
.eyebrow{
  font-family:var(--body);
  font-weight:600;
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--terracotta-deep);
}

a:focus-visible, button:focus-visible{
  outline:2px solid var(--terracotta);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}

/* ---------- site-header ---------- */
.site-header{
  padding:28px var(--gutter);
  border-bottom:1px solid var(--line);
}
.site-header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand__logo{ height:150px; width:auto; }
.site-nav__list{
  display:flex;
  gap:clamp(14px, 3vw, 28px);
}
.site-nav__list a{
  font-size:12px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--ink);
  opacity:0.65;
  transition:opacity .2s ease;
}
.site-nav__list a:hover{ opacity:1; }

/* ---------- hero ---------- */
.hero{
  padding:clamp(48px,7vw,80px) var(--gutter) 0;
  text-align:center;
}
.hero__title{
  font-size:clamp(32px, 5vw, 50px);
  line-height:1.18;
  max-width:640px;
  margin:16px auto 36px;
}
.hero__photo{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  aspect-ratio:16/9;
  border-radius:14px;
  overflow:hidden;
}
.hero__photo img{ width:100%; height:100%; object-fit:cover; }

/* ---------- facts ---------- */
.facts{ padding:40px var(--gutter) 0; }
.facts__row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.facts__item{
  flex:1 1 180px;
  text-align:center;
  padding:26px 18px;
  position:relative;
}
.facts__item + .facts__item::before{
  content:"";
  position:absolute;
  left:0; top:50%;
  transform:translateY(-50%);
  width:1px; height:28px;
  background:var(--line);
}
.facts__label{
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--ink-soft);
  opacity:0.75;
}
.facts__value{
  margin-top:8px;
  font-family:var(--display);
  font-size:18px;
  color:var(--ink);
}

/* ---------- about ---------- */
.about{ padding:clamp(80px,10vw,140px) 0 clamp(60px,8vw,100px); }
.about__grid{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:clamp(28px,5vw,80px);
  align-items:center;
}
.about__photo{
  aspect-ratio:4/5;
  border-radius:14px;
  overflow:hidden;
}
.about__photo img{ width:100%; height:100%; object-fit:cover; }
.about__text h2{ font-size:clamp(28px,4vw,40px); line-height:1.15; margin-bottom:22px; }
.about__text p{ color:var(--ink-soft); max-width:50ch; }
.about__text p + p{ margin-top:16px; }

/* ---------- gallery ---------- */
.gallery{
  background:var(--cream);
  padding:clamp(60px,8vw,100px) 0 clamp(80px,10vw,140px);
}
.gallery__grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  grid-auto-rows:130px;
  gap:12px;
}
.gallery__item{ margin:0; overflow:hidden; border-radius:10px; }
.gallery__item img{ width:100%; height:100%; object-fit:cover; }
.gallery__item:nth-child(1){ grid-column:span 4; grid-row:span 3; }
.gallery__item:nth-child(2){ grid-column:span 2; grid-row:span 3; }
.gallery__item:nth-child(3){ grid-column:span 3; grid-row:span 2; }
.gallery__item:nth-child(4){ grid-column:span 3; grid-row:span 2; }
.gallery__item:nth-child(5){ grid-column:span 2; grid-row:span 3; }
.gallery__item:nth-child(6){ grid-column:span 4; grid-row:span 3; }
.gallery__item:nth-child(7){ grid-column:span 2; grid-row:span 3; }
.gallery__item:nth-child(8){ grid-column:span 4; grid-row:span 3; }

/* ---------- details ---------- */
.details{
  background:var(--ink);
  color:var(--cream);
  padding:clamp(72px,10vw,140px) 0;
}
.details__grid{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:clamp(28px,5vw,80px);
}
.details__intro h2{ font-size:clamp(28px,3.6vw,40px); color:var(--cream); }
.details__intro p{ margin-top:16px; color:rgba(247,242,233,0.65); max-width:38ch; }
.details__list{ display:grid; grid-template-columns:1fr 1fr; }
.details__row{
  display:flex;
  justify-content:space-between;
  padding:15px 15px;
  border-bottom:1px solid var(--line-on-dark);
  font-size:15px;
}
.details__row dt{ font-size:12px; letter-spacing:0.08em; text-transform:uppercase; font-weight:600; color:var(--terracotta); opacity:0.9; }
.details__row dd{ margin:0; text-align:right; color:var(--cream); }

/* ---------- around ---------- */
.around{ padding:clamp(80px,10vw,140px) 0; }
.around h2{ font-size:clamp(28px,4vw,40px); max-width:18ch; margin-bottom:8px; }
.around__lede{ color:var(--ink-soft); max-width:50ch; margin-bottom:52px; }
.around__grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1px;
  background:var(--line);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.note{ background:var(--white); padding:32px clamp(16px,3vw,40px); }
.note__kind{ font-size:11px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--terracotta-deep); }
.note h3{ font-size:23px; margin-top:10px; }
.note p{ margin-top:10px; color:var(--ink-soft); font-size:15px; max-width:44ch; }
.note__dist{ margin-top:14px; font-size:11px; letter-spacing:0.04em; color:var(--ink-soft); opacity:0.7; }

/* ---------- map ---------- */
.map{
  padding:clamp(80px,10vw,140px) 0;
  text-align:center;
  background:var(--ink);
  color:var(--cream);
}
.map h2{ font-size:clamp(28px,4vw,40px); margin-bottom:36px; text-align:left; }
.map__image{
  width:100%;
  max-width:720px;
  margin:0 auto;
  border-radius:14px;
  border:1px solid var(--line);
}

/* ---------- practicalities ---------- */
.practicalities{ padding:clamp(60px,8vw,110px) 0; border-top:1px solid var(--line); }
.practicalities__grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:clamp(24px,4vw,48px);
}
.practicalities__item h4{ font-size:12px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--terracotta-deep); margin-bottom:12px; }
.practicalities__item p{ color:var(--ink-soft); font-size:15px; }

/* ---------- book ---------- */
.book{
  background:var(--terracotta);
  color:var(--cream);
  padding:clamp(72px,10vw,120px) 0;
  text-align:center;
}
.book h2{ font-size:clamp(30px,5vw,48px); max-width:18ch; margin:0 auto 36px; color:var(--white); }
.book__links{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
.btn{
  border:1px solid rgba(255,255,255,0.5);
  padding:16px 30px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  transition:background .2s ease, color .2s ease;
}
.btn:hover{ background:var(--white); color:var(--terracotta-deep); }
.book__note{ margin-top:28px; font-size:13px; color:var(--cream); opacity:0.85; }

/* ---------- site-footer ---------- */
.site-footer{ padding:48px 0; border-top:1px solid var(--line); }
.site-footer__row{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  font-size:12px;
  color:var(--ink-soft);
}
.site-footer__wordmark{ font-family:var(--display); font-size:15px; color:var(--ink); }
.site-footer__row a{ border-bottom:1px solid var(--line); }
.site-footer__row a:hover{ border-color:var(--ink); }


/* =====================================================
   RESPONSIVE — mobile rules, consolidated here
   ===================================================== */
@media (max-width:760px){

  /* site-header */
  .site-header__row{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-nav{ display:none; }
  .brand__logo{ height:110px; margin: auto;}

  /* hero */
  .hero__photo{ aspect-ratio:4/5; border-radius:10px; }

  /* facts */
  .facts__item + .facts__item::before{ display:none; }

  /* about */
  .about__grid{ grid-template-columns:1fr; }
  .about__photo{ order:-1; aspect-ratio:16/10; }

  /* gallery */
  .gallery__grid{ grid-template-columns:1fr; grid-auto-rows:400px; }

  .gallery__item:nth-child(1),
  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3),
  .gallery__item:nth-child(4),
  .gallery__item:nth-child(5),
  .gallery__item:nth-child(6),
  .gallery__item:nth-child(7),
  .gallery__item:nth-child(8){ grid-column:span 1; grid-row:span 1; }


  /* details */
  .details__grid{ grid-template-columns:1fr; }
  .details__list{ grid-template-columns:1fr; }

  /* around */
  .around__grid{ grid-template-columns:1fr; }

  /* practicalities */
  .practicalities__grid{ grid-template-columns:1fr; gap:32px; }

  /* footer */
  .site-footer__row{ flex-direction:column; gap:8px; }
}
