/* ==========================================================================
   Morada de Dengo — Fotografia | design tokens
   ========================================================================== */
:root {
  --bg: #fffcf7;
  --bg-alt: #f3eadf;
  --bg-lilac: #efe6f2;
  --ink: #1c0227;
  --ink-2: #2d0a3d;
  --plum: #4a1d5c;
  --gold: #f9c722;
  --gold-dark: #d9a812;
  --text: #3a2e40;
  --text-soft: #6f6076;
  --cream: #fffcf7;
  --line: rgba(28, 2, 39, 0.1);
  --shadow: 0 20px 60px rgba(28, 2, 39, 0.12);
  --radius: 4px;
  --maxw: 1280px;
  --ff-body: "Sora", sans-serif;
  --ff-script: "Caveat", cursive;
  --ff-serif: "Playfair Display", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); }
p { margin: 0 0 1em; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-dark);
}
.script {
  font-family: var(--ff-script);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--plum); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(28,2,39,0.08);
  padding: 10px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.site-header.is-scrolled .brand,
.site-header.on-light .brand { color: var(--ink); }
.brand img { height: 46px; width: auto; }
.brand small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.site-header.is-scrolled .nav-links a,
.site-header.on-light .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--cream);
  transition: background 0.3s ease;
}
.site-header.is-scrolled .nav-toggle span,
.site-header.on-light .nav-toggle span { background: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 20%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(15,1,22,0.88) 0%, rgba(15,1,22,0.35) 46%, rgba(15,1,22,0.15) 100%),
    linear-gradient(100deg, rgba(15,1,22,0.55) 0%, rgba(15,1,22,0) 55%);
}
.hero-side-label {
  position: absolute;
  left: clamp(10px, 2.5vw, 28px);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,252,247,0.7);
  font-weight: 600;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-side-label::after { content: ""; width: 40px; height: 1px; background: rgba(255,252,247,0.5); }
.hero-social {
  position: absolute;
  right: clamp(14px, 3vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}
.hero-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,252,247,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.hero-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 5vw, 64px) 90px;
  max-width: 780px;
}
.hero-content .kicker { color: var(--gold); margin-bottom: 22px; }
.hero-content .kicker::before { background: var(--gold); }
.hero-title {
  color: var(--cream);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.06;
  margin-bottom: 22px;
  font-weight: 600;
}
.hero-title .script {
  display: block;
  font-size: 1.5em;
  margin-top: 4px;
}
.hero-content p.lede {
  color: rgba(255,252,247,0.82);
  max-width: 460px;
  font-size: 1.02rem;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,252,247,0.7);
  font-size: 1.4rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,8px);} }

/* ---------- section shells ---------- */
section { position: relative; }
.section-pad { padding: clamp(70px, 10vw, 130px) 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin: 14px 0 0;
  line-height: 1.15;
}
.section-num {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.bg-alt { background: var(--bg-alt); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--cream); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-media .frame {
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold);
  z-index: -1;
  border-radius: var(--radius);
}
.about-text .signature {
  font-family: var(--ff-script);
  font-size: 2.1rem;
  color: var(--ink);
  margin-top: 24px;
}
.about-text p { color: var(--text-soft); }
.about-text .lead {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- philosophy ---------- */
.philosophy {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--plum) 100%);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(249,199,34,0.14), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(249,199,34,0.1), transparent 40%);
}
.philosophy .container { position: relative; }
.philosophy .kicker { justify-content: center; color: var(--gold); }
.philosophy .kicker::before { background: var(--gold); }
.philosophy h2 {
  color: var(--cream);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  max-width: 780px;
  margin: 18px auto 30px;
}
.philosophy p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,252,247,0.78);
}
.philosophy .closing {
  margin-top: 40px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- services / categories grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  isolation: isolate;
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,1,22,0.9) 0%, rgba(15,1,22,0.15) 55%, rgba(15,1,22,0.05) 100%);
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px;
  z-index: 2;
  color: var(--cream);
}
.cat-card-num {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 6px;
}
.cat-card-body h3 { color: var(--cream); font-size: 1.15rem; }
.cat-card-body span.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}
.cat-card:hover span.link { opacity: 1; transform: translateY(0); }

/* ---------- gallery / filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-soft);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.masonry {
  column-count: 4;
  column-gap: 18px;
}
@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 760px) { .masonry { column-count: 2; } }
@media (max-width: 480px) { .masonry { column-count: 1; } }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--bg-alt);
}
.masonry-item img {
  width: 100%;
  transition: transform 0.5s ease, filter 0.5s ease;
  display: block;
}
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item .tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(28,2,39,0.75);
  color: var(--cream);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.masonry-item:hover .tag { opacity: 1; }
.masonry-item[hidden] { display: none; }

.gallery-more {
  text-align: center;
  margin-top: 46px;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,1,22,0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,252,247,0.08);
  border: 1px solid rgba(255,252,247,0.25);
  color: var(--cream);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- extra services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}
.service-card {
  padding: 34px 30px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .num {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* ---------- press / credentials ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.press-card {
  padding: 26px;
  border-left: 3px solid var(--gold);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.press-card h4 { font-size: 1rem; margin-bottom: 6px; }
.press-card span.year { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.press-card p { color: var(--text-soft); font-size: 0.88rem; margin: 8px 0 0; }

/* ---------- partner ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}
.partner-grid img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow); }
.partner-contact { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.partner-contact a { font-size: 0.85rem; font-weight: 600; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.partner-contact a:hover { color: var(--gold-dark); }

/* ---------- contact / CTA ---------- */
.contact {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.contact .kicker { justify-content: center; color: var(--gold); }
.contact .kicker::before { background: var(--gold); }
.contact h2 { color: var(--cream); max-width: 720px; margin: 16px auto 36px; font-size: clamp(1.9rem, 4vw, 3rem); }
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}
.contact-methods a {
  padding: 14px 26px;
  border: 1px solid rgba(255,252,247,0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}
.contact-methods a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.social-row {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.social-row a {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,252,247,0.75);
  border-bottom: 1px solid transparent;
}
.social-row a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-2);
  color: rgba(255,252,247,0.6);
  padding: 40px 0;
  font-size: 0.82rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .brand { color: rgba(255,252,247,0.85); font-size: 0.9rem; }
.site-footer .brand img { height: 34px; }

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .partner-grid { grid-template-columns: 1fr; }
  .about-media .frame { display: none; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 99;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--cream) !important; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .hero-side-label { display: none; }
}
