/* =========================================================
   704 CREATORS — SHARED DESIGN SYSTEM
   Base grid / typography shared by the agency site and the
   Carlos Soto Photography subpage. Each page sets its own
   --accent via a body class so the two feel related but
   distinct, per project brief §3 and §6.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f6f6f6;
  --gray-200: #e9e9e9;
  --gray-300: #d4d4d4;
  --gray-500: #8a8a8a;
  --gray-700: #3d3d3d;
  --gray-900: #161616;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 704 Creators agency palette — bold, energetic accent */
body.site-agency {
  --accent: #ff4d1f;
  --accent-contrast: #ffffff;
  --bg: var(--black);
  --fg: var(--white);
  --fg-muted: var(--gray-300);
  --surface: var(--gray-900);
  --border: rgba(255, 255, 255, 0.12);
}

/* Carlos Soto Photography palette — neutral + electric blue (exact brand hex from CSPH palette) */
body.site-photo {
  --accent: #004aad;
  --accent-contrast: #ffffff;
  --bg: var(--white);
  --fg: var(--black);
  --fg-muted: var(--gray-700);
  --surface: var(--gray-100);
  --border: var(--gray-200);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(64px, 10vw, 140px) 0; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

p.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--fg-muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline { border-color: var(--fg); color: var(--fg); }
.site-photo .btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav-logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-toggle:hover { color: var(--fg); border-color: var(--fg); }
.nav-burger { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(60px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: end; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-media {
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Placeholder tiles (no stock photography) ---------- */
.ph-tile {
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg-muted);
  text-align: center;
  padding: 16px;
  transition: border-color 0.25s var(--ease);
}
.ph-tile:hover { border-color: var(--accent); }
.ph-tile svg { width: 26px; height: 26px; opacity: 0.55; }
.ph-tile span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Real gallery photos ---------- */
.gallery-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-img:hover img { transform: scale(1.04); }

.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-logo img { height: 38px; width: auto; display: block; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 30px;
  border-radius: var(--radius);
}
.card .num { color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 18px; display: block; }

/* ---------- Section heading row ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 700px) { .section-head { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* ---------- Divider ---------- */
.divider { border-top: 1px solid var(--border); }

/* ---------- Portfolio category block ---------- */
.category-block { padding: 60px 0; border-top: 1px solid var(--border); }
.category-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 34px; flex-wrap: wrap; }
.category-head .desc { color: var(--fg-muted); max-width: 480px; font-size: 0.98rem; }

/* ---------- Pricing ---------- */
.pricing-block { padding: 50px 0; border-top: 1px solid var(--border); }
.price-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.price-table td, .price-table th { padding: 18px 4px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.price-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); font-weight: 600; }
.price-table .price { font-weight: 700; font-size: 1.05rem; white-space: nowrap; text-align: right; color: var(--accent); }
.price-note { margin-top: 18px; font-size: 0.85rem; color: var(--fg-muted); font-style: italic; }

/* ---------- Testimonials empty state ---------- */
.testimonial-card {
  border: 1px dashed var(--border);
  padding: 36px 28px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-muted); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-status { margin-top: 14px; font-size: .85rem; color: var(--fg-muted); min-height: 1.2em; }
.form-status.is-success { color: var(--accent); font-weight: 600; }
.form-status.is-error { color: #c0392b; font-weight: 600; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.contact-method { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.contact-method .icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 50px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 0.82rem; color: var(--fg-muted); }
.footer-links a:hover { color: var(--fg); }
.footer-small { font-size: 0.75rem; color: var(--fg-muted); }

/* ---------- Anchor offset for sticky nav ---------- */
[id] { scroll-margin-top: 100px; }

/* ---------- Utility ---------- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.center { text-align: center; }
.max-w-720 { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* ---------- TODO banner for placeholder assets ---------- */
.todo-banner {
  background: #fff7e6;
  color: #7a4a00;
  border: 1px solid #f0c36d;
  font-size: 0.8rem;
  padding: 10px 16px;
  text-align: center;
}
.site-agency .todo-banner { background: #241a10; color: #ffcf8a; border-color: #4a3418; }

/* =========================================================
   CARLOS SOTO PHOTOGRAPHY — cinematic layer
   Full-bleed hero, transparent-to-solid nav, scroll reveal,
   duotone gallery hover, pricing cards. Scoped to .site-photo
   so it never touches the shared base above.
   ========================================================= */

/* Fixed transparent nav that solidifies on scroll (photo site only) */
body.site-photo .nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
body.site-photo .nav .nav-logo img { filter: brightness(0) invert(1); transition: filter .4s var(--ease); }
body.site-photo .nav .nav-links a { color: rgba(255,255,255,.86); }
body.site-photo .nav .nav-links a:hover { color: #fff; }
body.site-photo .nav .lang-toggle { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.86); }
body.site-photo .nav .lang-toggle:hover { color: #fff; border-color: #fff; }
body.site-photo .nav.no-hero { position: sticky; background: var(--bg); border-bottom-color: var(--border); }

body.site-photo .nav.nav-solid {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
body.site-photo .nav.nav-solid .nav-logo img { filter: none; }
body.site-photo .nav.nav-solid .nav-links a { color: var(--fg-muted); }
body.site-photo .nav.nav-solid .nav-links a:hover { color: var(--accent); }
body.site-photo .nav.nav-solid .lang-toggle { border-color: var(--border); color: var(--fg-muted); }
body.site-photo .nav.nav-solid .lang-toggle:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- Cinematic full-bleed hero ---------- */
.hero-cinematic {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 32%, rgba(0,0,0,0) 62%),
    linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 46%, rgba(0,0,0,.15) 68%, rgba(0,74,173,.22) 100%);
}
.hero-content { position: relative; z-index: 3; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 140px; width: 100%; }
.hero-content .eyebrow { color: #6fa2ea; }
.hero-name {
  font-size: clamp(3.2rem, 10vw, 8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
}
.hero-content .lede { color: rgba(255,255,255,.82); max-width: 620px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.hero-content .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.hero-content .btn-outline:hover { background: #fff; color: var(--black); }

.hero-scrollcue {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 1px; height: 46px; background: rgba(255,255,255,.35); overflow: hidden;
}
.hero-scrollcue span {
  display: block; width: 100%; height: 40%; background: #fff;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1.in-view { transition-delay: .08s; }
.reveal-delay-2.in-view { transition-delay: .16s; }
.reveal-delay-3.in-view { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-scrollcue span { animation: none; }
}

/* ---------- About: editorial statement band ---------- */
.about-band {
  background: var(--black);
  color: #fff;
  text-align: center;
}
.about-band .eyebrow { color: #6fa2ea; }
.about-band .statement {
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  max-width: 880px;
  margin: 0 auto;
}
.about-band .statement em { color: #6fa2ea; font-style: normal; }
.about-pills { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.about-pills span {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
}

/* ---------- Masonry gallery with duotone hover ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery-grid .gallery-img { grid-row: span 2; aspect-ratio: auto; }
.gallery-grid .gallery-img.tall { grid-row: span 3; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: 8px; }
}

.gallery-img { position: relative; }
.gallery-img img {
  filter: grayscale(85%) contrast(1.03);
  transition: filter .6s var(--ease), transform .6s var(--ease);
}
.gallery-img:hover img { filter: grayscale(0%); transform: scale(1.06); }
.gallery-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,74,173,.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.gallery-img:hover::after { opacity: 1; }

/* ---------- Pricing cards ---------- */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 40px -24px rgba(0,74,173,.35); }
.price-card--popular { border-color: var(--accent); }
.price-card-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--accent); color: #fff;
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price-card-name { font-weight: 700; font-size: 1.02rem; }
.price-card-amount { font-size: 2.15rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1; margin: 14px 0 10px; }
.price-card-desc { color: var(--fg-muted); font-size: .86rem; line-height: 1.5; }

/* ---------- Testimonial quote cards ---------- */
.testimonial-card { position: relative; flex-direction: column; gap: 14px; }
.testimonial-card .quote-mark { font-size: 2.4rem; color: var(--accent); font-weight: 800; line-height: 1; opacity: .5; }

/* ---------- Real Google review cards ---------- */
.rating-summary { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.rating-summary .stars { color: var(--accent); font-size: 1.05rem; letter-spacing: 2px; }
.rating-summary strong { font-size: 1.05rem; }
.rating-summary a { font-size: .85rem; color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.rating-summary a:hover { color: var(--accent); }

.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.review-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.review-card .stars { color: var(--accent); letter-spacing: 2px; font-size: .95rem; }
.review-card p { font-size: .95rem; line-height: 1.6; color: var(--fg); }
.review-card .reviewer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.review-card .reviewer-name { font-weight: 700; font-size: .88rem; }
.review-card .reviewer-meta { font-size: .76rem; color: var(--fg-muted); display: flex; align-items: center; gap: 6px; }
.review-card .reviewer-meta svg { width: 13px; height: 13px; }

/* ---------- Contact cards ---------- */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
}
.contact-method { padding: 4px 0; }
.contact-method .icon-wrap {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method .icon-wrap svg { width: 18px; height: 18px; }

/* ---------- Footer polish ---------- */
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: var(--fg-muted); display: flex; }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 20px; height: 20px; }
