/* Can Refugio — minimal, elegant, mobile-first
   Palette: off-white, sand, warm wood, soft ink.
   Type: Cormorant Garamond (headlines) + Inter (body). */

:root {
  --bg: #f7f4ef;
  --bg-alt: #efe9df;
  --ink: #2b2724;
  --ink-soft: #5b524a;
  --line: #d8cfc2;
  --accent: #8a6a4b;       /* warm wood */
  --accent-soft: #c8a880;  /* sand */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s ease; }
a:hover { border-color: var(--accent); }

/* Headlines */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase; font-family: 'Inter', sans-serif; font-weight: 500; color: var(--ink-soft); margin-bottom: 1em; }

p { margin: 0 0 1em 0; color: var(--ink-soft); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink); max-width: 56ch; }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(60px, 9vw, 120px) 0; }
section + section { border-top: 1px solid var(--line); }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding: 24px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  color: #fff;
}
.site-header .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  color: #fff;
}
.lang-switch { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.lang-switch a { color: #fff; border: none; opacity: 0.7; margin-left: 14px; }
.lang-switch a.active { opacity: 1; border-bottom: 1px solid #fff; }
.lang-switch a:hover { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  color: #fff;
  border-top: 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('img/hero.jpg') center center / cover no-repeat;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 35%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(40px, 8vw, 90px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 { color: #fff; margin-bottom: 0.2em; }
.hero .sub {
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Lead section */
.lead-section { background: var(--bg); }
.lead-section .lead { max-width: 60ch; }

/* Facts */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 48px;
  margin-top: 24px;
}
.fact dt { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.fact dd { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--ink); }

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 40px;
  margin-top: 16px;
  list-style: none;
  padding: 0;
}
.highlights-grid li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}
.highlights-grid li::before {
  content: "";
  position: absolute; left: 0; top: 0.7em;
  width: 10px; height: 1px;
  background: var(--accent-soft);
}

/* Gallery */
.gallery-section { background: var(--bg-alt); }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #ddd;
}
.gallery figure { margin: 0; overflow: hidden; }
/* Asymmetric editorial grid */
.g-1  { grid-column: span 12; aspect-ratio: 16/9; }
.g-2  { grid-column: span 6;  aspect-ratio: 4/5; }
.g-3  { grid-column: span 6;  aspect-ratio: 4/5; }
.g-4  { grid-column: span 8;  aspect-ratio: 3/2; }
.g-5  { grid-column: span 4;  aspect-ratio: 3/4; }
.g-6  { grid-column: span 4;  aspect-ratio: 3/4; }
.g-7  { grid-column: span 8;  aspect-ratio: 3/2; }
.g-8  { grid-column: span 6;  aspect-ratio: 4/5; }
.g-9  { grid-column: span 6;  aspect-ratio: 4/5; }
.g-10 { grid-column: span 12; aspect-ratio: 16/9; }
.g-11 { grid-column: span 6;  aspect-ratio: 1/1; }
.g-12 { grid-column: span 6;  aspect-ratio: 1/1; }
.g-13 { grid-column: span 12; aspect-ratio: 21/9; }

@media (max-width: 720px) {
  .gallery { gap: 8px; }
  .gallery figure { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.location-grid .map-stub {
  background: var(--bg-alt);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink-soft);
  font-style: italic;
}
@media (max-width: 720px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact-section { background: var(--ink); color: var(--bg); text-align: center; }
.contact-section h2 { color: var(--bg); }
.contact-section p { color: rgba(247,244,239,0.75); }
.contact-section a { color: var(--bg); border-bottom-color: rgba(247,244,239,0.4); }
.contact-section a:hover { border-bottom-color: var(--bg); }
.contact-mail {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  display: inline-block;
  margin-top: 16px;
  border: none;
}
.contact-mail:hover { color: var(--accent-soft); }

/* Footer */
.site-footer {
  padding: 40px var(--gutter);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg);
}

/* Section eyebrow numbers */
.eyebrow { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
