/* En Vidas y Viajes Studio. Layout: large photographs in an asymmetric 12-column grid, short text in narrow editorial columns, captions set like a film slate. */
:root {
  --paper: var(--wp--preset--color--paper, #eef0ec);
  --paper-2: var(--wp--preset--color--paper-2, #e3e7e1);
  --ink: var(--wp--preset--color--ink, #1b231f);
  --muted: var(--wp--preset--color--muted, #56625b);
  --line: var(--wp--preset--color--line, #c9d0ca);
  --accent: var(--wp--preset--color--accent, #946519);
  --gold: var(--wp--preset--color--gold, #d6a24c);
  --display: var(--wp--preset--font-family--display);
  --body: var(--wp--preset--font-family--body);
  --mono: var(--wp--preset--font-family--mono);
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 4.2vw, 3.1rem);
  --step-4: clamp(2.7rem, 7.2vw, 5.8rem);
}
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block-start: 0; }
.evv-landing, .evv-landing * { box-sizing: border-box; }
.evv-landing p, .evv-landing h1, .evv-landing h2, .evv-landing h3 { margin-block: 0; }
.evv-landing h1, .evv-landing h2, .evv-landing h3 { text-wrap: balance; }
.evv-landing h1 { font-size: var(--step-4); letter-spacing: -0.015em; }
.evv-landing h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
.evv-landing h3 { font-size: var(--step-2); }
.evv-landing h1 em, .evv-landing h2 em { font-style: italic; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 1240px; margin-inline: auto !important;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow, .hero-meta, .tag { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tag { color: var(--accent); }

/* Buttons */
.evv-landing .wp-block-buttons { gap: 0.8rem; }
.evv-landing .wp-block-button__link, .nav .nav-cta, .evv-submit {
  display: inline-flex; align-items: center; padding: 0.95em 1.5em; font: 500 0.95rem/1 var(--body); letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); transition: background .2s, color .2s, border-color .2s;
}
.evv-landing .wp-block-button__link:hover, .nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fbf8f1; }
.evv-landing .is-style-outline > .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 0.95em 1.5em; }
.evv-landing .is-style-outline > .wp-block-button__link:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-head { top: 32px; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.head-row > * { margin: 0 !important; }
.brand a { text-decoration: none; display: grid; gap: 2px; color: var(--ink); }
.brand strong { font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.92rem; }
.nav a:not(.nav-cta) { text-decoration: none; color: var(--muted); }
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav .nav-cta { padding: 0.7em 1.1em; }
@media (max-width: 820px) { .nav a:not(.nav-cta) { display: none; } }

/* Photographs and video */
.evv-landing .shot { position: relative; margin: 0 !important; overflow: hidden; background: #2a332e; max-width: 100%; }
.evv-landing .shot img, .evv-landing .shot video { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.evv-landing .shot figcaption {
  position: absolute; left: 0; bottom: 0; width: 100%; margin: 0; padding: 0.9rem 1.1rem; color: #f3f1ea; text-align: left;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(10,14,12,.55), transparent);
}
.evv-landing .shot.tall { aspect-ratio: 4 / 5; }

/* Two-column bands */
.hero-grid, .approach, .about, .contact-grid { display: grid !important; gap: clamp(1.5rem, 5vw, 5rem) !important; align-items: center; }
.hero-grid > .wp-block-column, .approach > .wp-block-column, .about > .wp-block-column, .contact-grid > .wp-block-column { margin: 0 !important; min-width: 0; }
.hero-grid { grid-template-columns: 1fr 1.05fr; }
.approach { grid-template-columns: 1.1fr 0.9fr; }
.about { grid-template-columns: 0.8fr 1.2fr; }
.contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.hero-copy, .approach .text, .about .text, .contact-info { display: grid; gap: 1.3rem; }
.hero-copy > *, .approach .text > *, .about .text > *, .contact-info > * { margin: 0 !important; }

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 32rem; }
.hero-shot { aspect-ratio: 4 / 5; }
.hero-shot img { object-position: 22% 50%; }

/* Sections */
.band { padding-block: clamp(4rem, 9vw, 7rem); margin: 0 !important; }
.band.alt { background: var(--paper-2); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 42rem; }
.section-head > * { margin: 0 !important; }
.section-head .sub, .muted { color: var(--muted); }
.approach .text p, .about .text p { max-width: 34rem; }
.evv-landing .qualities { font-family: var(--display); font-style: italic; font-size: var(--step-1); }

/* Selected work */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.work-grid > * { margin: 0 !important; }
.w-8 { grid-column: span 8; aspect-ratio: 3 / 2; }
.w-4 { grid-column: span 4; }
.w-5 { grid-column: span 5; aspect-ratio: 4 / 5; }
.w-7 { grid-column: span 7; }
.w-3 { grid-column: span 3; aspect-ratio: 4 / 5; }
.w-4p { grid-column: span 4; aspect-ratio: 4 / 5; }
.w-12 { grid-column: span 12; aspect-ratio: 21 / 9; }
.work-grid .shot img { transition: transform .8s ease; }
.work-grid .shot:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .work-grid .shot img { transition: none; } .work-grid .shot:hover img { transform: none; } }
.film-link { margin-top: 1rem !important; }
.reels-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 0.6rem 2rem; margin: clamp(2.5rem, 5vw, 4rem) 0 1.2rem !important; }
.reels-head > * { margin: 0 !important; }
.reels-head p { color: var(--muted); }
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.reels > * { margin: 0 !important; }
.reels .shot { aspect-ratio: 9 / 16; }
.more { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.more > * { margin: 0 !important; }
.more p { color: var(--muted); }

/* Services */
.services { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem) !important; }
.service { display: grid; gap: 0.9rem; align-content: start; border-top: 1px solid var(--ink); padding-top: 1.3rem; margin: 0 !important; min-width: 0; }
.service > * { margin: 0 !important; }
.service h3 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); }
.service p { color: var(--muted); }
.service p.tag { color: var(--accent); }
.service .for { font-size: 0.92rem; color: var(--ink); }
.extras { margin-top: clamp(2rem, 4vw, 3rem) !important; color: var(--muted); max-width: 52rem; }
.extras strong { color: var(--ink); font-weight: 600; }

/* About */
.evv-landing .about .pull { font-family: var(--display); font-style: italic; font-size: var(--step-2); line-height: 1.3; }
.portrait-placeholder figcaption { background: none; color: #c9d1cb; padding: 1.6rem; }

/* Process */
.steps { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem) !important; }
.step { display: grid; gap: 0.6rem; align-content: start; margin: 0 !important; }
.step > * { margin: 0 !important; }
.evv-landing .step-num { font-family: var(--display); font-size: var(--step-3); line-height: 1; color: var(--accent); }
.step p:not(.step-num) { color: var(--muted); }

/* Contact */
.contact { background: #1b231f !important; color: #eef0ec; }
.contact .eyebrow { color: #aeb8b1; }
.contact h2 em { color: var(--gold); }
.contact-info p:not(.eyebrow) { color: #aeb8b1; max-width: 30rem; }
.contact .direct { font-family: var(--mono); font-size: 0.9rem; color: #eef0ec !important; }
.contact .direct a { color: #eef0ec; }
.evv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.evv-form .field { display: grid; gap: 0.4rem; min-width: 0; }
.evv-form .field.full { grid-column: 1 / -1; }
.evv-form label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #aeb8b1; }
.evv-form label small { text-transform: none; letter-spacing: 0; }
.evv-form input, .evv-form select, .evv-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #eef0ec; background: transparent;
  border: 0; border-bottom: 1px solid rgba(238,240,236,.35); padding: 0.55rem 0; border-radius: 0;
}
.evv-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.evv-form select option { color: #1b231f; }
.evv-form textarea { min-height: 7rem; resize: vertical; }
.evv-form input:focus, .evv-form select:focus, .evv-form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.evv-form input::placeholder, .evv-form textarea::placeholder { color: rgba(238,240,236,.4); }
.evv-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.evv-form .form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.6rem; }
.evv-submit { background: var(--gold); border-color: var(--gold); color: #15110a; }
.evv-submit:hover { background: #eef0ec; border-color: #eef0ec; color: #1b231f; }
.evv-form .status { margin: 0; color: #aeb8b1; }
.evv-form .status.ok { color: var(--gold); }

/* Footer */
.site-foot { background: #1b231f; color: #8f9a93; border-top: 1px solid rgba(238,240,236,.12); margin: 0 !important; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; padding-block: 1.6rem; font-size: 0.85rem; }
.foot-row > * { margin: 0 !important; }
.site-foot a { color: #eef0ec; }

/* Phone and tablet */
@media (max-width: 860px) {
  .hero-grid, .approach, .about, .contact-grid, .services { grid-template-columns: 1fr; }
  .hero-grid > .wp-block-column:last-child { order: -1; }
  .hero-shot { aspect-ratio: 4 / 3; }
  .approach .shot.tall, .about .shot.tall { aspect-ratio: 3 / 2; }
}
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .w-8, .w-7, .w-12 { grid-column: span 2; aspect-ratio: 3 / 2; }
  .w-12 { aspect-ratio: 16 / 9; }
  .w-4, .w-5, .w-3, .w-4p { grid-column: span 1; aspect-ratio: 4 / 5; }
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .reels .shot { scroll-snap-align: start; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .evv-form { grid-template-columns: 1fr; } }
