/*
Theme Name: Lighthouse
Theme URI: https://studiolighthousemx.com
Author: Studio Lighthouse MX
Description: Tema a medida para Lighthouse Photo & Video — portfolio fotográfico oscuro y cinematográfico.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: lighthouse
Update URI: false
*/

:root {
  --bg: #faf9f7;
  --bg-soft: #f0eee9;
  --ink: #1c1b19;
  --ink-dim: #7a746b;
  --line: rgba(28, 27, 25, 0.14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 6vw; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4vw;
  transition: background .4s ease, padding .4s ease;
}
.site-header.solid { background: rgba(250,249,247,.92); backdrop-filter: blur(8px); padding: 14px 4vw; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 20px; letter-spacing: .35em; text-transform: uppercase; }
.main-nav { display: flex; gap: 38px; }
.main-nav a {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-dim);
  transition: color .3s;
}
.main-nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, #efeade 0%, #faf9f7 65%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: heroZoom 18s ease-out forwards;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(250,249,247,.55); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { position: relative; z-index: 2; padding: 0 6vw; }
.hero-logo { width: min(340px, 62vw); margin: 0 auto 28px; }
.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
}
.hero .tagline {
  margin-top: 18px; font-size: 13px; letter-spacing: .5em; text-transform: uppercase; color: var(--ink-dim);
}
.hero .scroll-cue {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 64px; background: var(--line); overflow: hidden;
}
.hero .scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--ink); animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { to { top: 110%; } }

/* ---------- Secciones ---------- */
.section { padding: 120px 0; }
.kicker { display: block; font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--ink-dim); }
.section-head { text-align: center; margin-bottom: 70px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); margin-top: 14px; letter-spacing: .06em; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.portfolio-grid .tile {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-soft);
}
.tile img, .tile .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(18%) brightness(.92);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .6s;
}
.tile:hover img, .tile:hover .ph { transform: scale(1.06); filter: grayscale(0) brightness(1); }
.tile .veil {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(8,8,8,.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 26px;
  opacity: .85; transition: opacity .4s;
}
.tile:hover .veil { opacity: 1; }
.tile .veil h3 { font-size: 26px; letter-spacing: .12em; }
.tile .ph { display: flex; align-items: center; justify-content: center; }
.ph-1 { background: linear-gradient(160deg, #ece5d8, #f5f3ef); }
.ph-2 { background: linear-gradient(200deg, #e4e7ea, #f4f4f5); }
.ph-3 { background: linear-gradient(140deg, #e9e2ec, #f5f3f5); }
.ph span { font-family: var(--serif); font-size: 15px; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.about-grid .photo { aspect-ratio: 4/5; background: var(--bg-soft); overflow: hidden; }
.about-grid .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(25%); }
.about-grid h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 14px 0 26px; }
.about-grid p { color: var(--ink-dim); margin-bottom: 18px; }

/* ---------- Contacto ---------- */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: .08em; }
.contact p { color: var(--ink-dim); margin: 20px auto 44px; max-width: 520px; }
.btn {
  display: inline-block; padding: 17px 52px; border: 1px solid var(--ink);
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  transition: background .35s, color .35s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.contact .alt-links { margin-top: 34px; display: flex; gap: 34px; justify-content: center; }
.contact .alt-links a { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-dim); }
.contact .alt-links a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 46px 4vw; text-align: center;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-dim);
}
.site-footer img { height: 54px; margin: 0 auto 18px; opacity: .9; }

/* ---------- Single portfolio ---------- */
.single-hero { min-height: 62vh; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.single-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.single-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #faf9f7 4%, rgba(250,249,247,.25) 60%); }
.single-hero .wrap { position: relative; z-index: 2; padding-bottom: 60px; }
.single-hero h1 { font-size: clamp(38px, 5.5vw, 72px); letter-spacing: .1em; }
.single-content { padding: 70px 0 110px; }
.single-content .wp-block-image, .single-content figure { margin: 14px 0; }
.back-link { display: inline-block; margin-top: 50px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-dim); }
.back-link:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .main-nav { gap: 22px; }
  .brand-name { display: none; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .main-nav a { font-size: 10px; letter-spacing: .2em; }
}
