/* ===========================================================
   La Casa Bonita — Draft Theme
   Modern minimalist luxury · warm white + gold accent
   =========================================================== */

:root {
  --color-bg: #f4f2ee;
  --color-bg-alt: #ece8e0;
  --color-surface: #e7e2d8;
  --color-line: rgba(20, 18, 14, 0.09);

  --color-text: #14120e;
  --color-text-muted: #6b6862;

  --color-accent: #b8862a;        /* deep gold — buttons, borders, large accent text */
  --color-accent-bright: #e9c865; /* bright gold — text sitting on dark hero/CTA photos only */
  --color-accent-deep: #8c641a;   /* text-safe gold — small accent text on light backgrounds */
  --color-accent-text: var(--color-text);

  /* Fixed tokens for content that sits on the dark hero/CTA photo scrims,
     independent of the light theme above. */
  --color-on-photo: #f4f2ee;
  --color-on-photo-muted: #a6a49f;
  --color-on-photo-line: rgba(244, 242, 238, 0.25);

  --font-display: 'Fraunces', Georgia, serif;
  --font-display-hero: 'Instrument Serif', 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --section-pad: clamp(4rem, 10vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

em {
  font-style: italic;
  color: var(--color-accent-bright);
}

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
}
.btn-primary:hover {
  background: var(--color-accent-bright);
}
.btn-ghost {
  border-color: rgba(20, 18, 14, 0.25);
  color: var(--color-text);
  padding: 0.7rem 1.5rem;
}
.btn-ghost:hover {
  border-color: var(--color-accent-deep);
  color: var(--color-accent-deep);
}
.btn-ghost-on-photo {
  border-color: var(--color-on-photo-line);
  color: var(--color-on-photo);
  padding: 0.85rem 1.9rem;
}
.btn-ghost-on-photo:hover {
  border-color: var(--color-accent-bright);
  color: var(--color-accent-bright);
}

/* ---------- Placeholder media (stand-ins until real photos land) ---------- */
.placeholder-media {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  background:
    repeating-linear-gradient(
      135deg,
      var(--color-surface),
      var(--color-surface) 12px,
      #202020 12px,
      #202020 24px
    );
  border: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.placeholder-media span {
  font-size: 0.95rem;
  color: var(--color-text);
}
.placeholder-media small {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 22ch;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.4rem 0;
  background: rgba(244, 242, 238, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 34px;
  width: auto;
}
.footer-logo-img {
  height: 42px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.85);
}
.hero-placeholder { border: none; border-radius: 0; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(12,12,12,0.35) 0%, rgba(12,12,12,0.6) 65%, rgba(12,12,12,0.8) 100%),
    linear-gradient(180deg, rgba(12,12,12,0.6) 0%, rgba(12,12,12,0.35) 35%, rgba(12,12,12,0.5) 65%, rgba(12,12,12,0.88) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--color-accent-bright);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display-hero);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 5.75rem);
  color: var(--color-on-photo);
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--color-on-photo-muted);
  max-width: 52ch;
  margin: 0 auto 2.25rem;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 56px;
  background: rgba(244,242,238,0.25);
  overflow: hidden;
}
.scroll-cue span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--color-accent-bright);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ---------- Manifesto ---------- */
.manifesto {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem;
  text-align: center;
}
.manifesto p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
}

/* ---------- Project (before/after story blocks) ---------- */
.project {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.project-media-left .project-media { order: 1; }
.project-media-left .project-copy { order: 2; }

.project-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--color-accent-deep);
  border: 1px solid var(--color-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.project-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--color-text);
}
.project-copy p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  max-width: 42ch;
}

/* Before/after comparison, arrow-controlled */
.reveal-frame {
  --reveal: 0%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}
.reveal-frame .before-media,
.reveal-frame .after-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.reveal-frame .after-media {
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
  transition: clip-path 1.4s var(--ease);
}

.reveal-label {
  position: absolute;
  top: 0.9rem;
  z-index: 3;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4f2ee;
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  pointer-events: none;
}
.reveal-label-before { left: 0.9rem; }
.reveal-label-after { right: 0.9rem; }

.reveal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 18, 14, 0.45);
  backdrop-filter: blur(4px);
  color: #f4f2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.reveal-arrow:hover,
.reveal-arrow:focus-visible {
  background: var(--color-accent);
  color: var(--color-text);
  outline: none;
}
.reveal-arrow-prev { left: 0.9rem; }
.reveal-arrow-next { right: 0.9rem; }

/* ---------- Experience / Quality / Trust ---------- */
.trust-strip {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--color-line);
  text-align: center;
}
.trust-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 9rem;
}
.trust-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--color-accent-deep);
}
.trust-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- Process ---------- */
.process {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-line);
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.75rem;
}
.process-step h4 { font-size: 1.3rem; }
.process-step p { color: var(--color-text-muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.cta-media {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: 0;
}
.cta-placeholder { border: none; border-radius: 0; }
.cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.85);
}
.cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,0.9) 0%, rgba(12,12,12,0.75) 100%);
  z-index: 1;
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
  text-align: center;
}
.cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--color-on-photo);
}
.cta > .cta-content > p {
  color: var(--color-on-photo-muted);
  max-width: 44ch;
  margin: 0 auto 2.5rem;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.consult-form input,
.consult-form textarea {
  width: 100%;
  background: rgba(244,242,238,0.08);
  border: 1px solid var(--color-on-photo-line);
  color: var(--color-on-photo);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  resize: none;
}
.consult-form input::placeholder,
.consult-form textarea::placeholder {
  color: var(--color-on-photo-muted);
}
.consult-form input:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-bright);
}
.consult-form .btn { margin-top: 0.5rem; align-self: flex-start; }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.footer-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-contact a:hover { color: var(--color-accent-deep); }

/* ---------- Responsive: projects stack on mobile ---------- */
@media (max-width: 820px) {
  .project,
  .project.project-media-left {
    grid-template-columns: 1fr;
  }
  .project-media-left .project-media,
  .project-media-left .project-copy {
    order: initial;
  }
}
