:root {
  --black: #141414;
  --cream: #F7F4EE;
  --white: #FFFFFF;
  --gray: #767067;
  --line: rgba(20, 20, 20, 0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

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

.section-num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.section-num::before { content: ''; width: 26px; height: 1px; background: var(--black); }

/* ---------- NAV ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.86rem; letter-spacing: 0.02em; color: var(--black); opacity: 0.8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 10px 20px;
  border-radius: 2px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--black); display: block; }
.nav-mobile { display: none; flex-direction: column; padding: 0 24px 20px; gap: 16px; }
.nav-mobile a { font-size: 0.95rem; padding: 4px 0; }
.nav-mobile.open { display: flex; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.15) 0%, rgba(20,20,20,0.15) 40%, rgba(20,20,20,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 24px 90px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0.92;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--white); opacity: 0.7;
  font-size: 1.2rem;
  animation: bounce 2.2s infinite;
}
@keyframes bounce { 0%,100%{transform: translate(-50%,0);} 50%{transform: translate(-50%,8px);} }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--cream); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2c2c2c; }

/* ---------- PHILOSOPHY ---------- */
.philosophy { padding: 120px 0 100px; text-align: center; }
.philosophy .container { max-width: 720px; }
.philosophy-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 28px;
}
.philosophy-signature { font-size: 0.92rem; color: var(--gray); }

/* ---------- SERVICES ---------- */
.services { padding: 40px 0 110px; }
.section-header { max-width: 640px; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; font-weight: 400; }
.section-header p { color: var(--gray); font-size: 1rem; }
.section-header.light h2, .section-header.light p, .section-header.light .section-num { color: var(--white); }
.section-header.light .section-num::before { background: var(--white); }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--cream); padding: 42px; }
.service-letter { font-family: var(--font-display); font-size: 2rem; color: var(--gray); display: block; margin-bottom: 18px; }
.service-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 12px; }
.service-card > p { color: var(--gray); font-size: 0.92rem; margin-bottom: 20px; }
.service-card ul li {
  font-size: 0.86rem;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  position: relative;
  padding-left: 16px;
}
.service-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--gray); }

/* ---------- FEATURE PHOTO ---------- */
.feature-photo { height: 60vh; min-height: 380px; overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- PROCESS ---------- */
.process { background: var(--black); color: var(--white); padding: 110px 0; }
.timeline { display: flex; flex-direction: column; }
.timeline li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.t-num { font-family: var(--font-display); font-size: 1.8rem; color: rgba(255,255,255,0.4); }
.timeline h4 { font-size: 1.05rem; font-weight: 500; margin-bottom: 6px; }
.timeline p { color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 520px; }

/* ---------- GALLERY ---------- */
.gallery { padding: 110px 0 100px; }
.gallery-grid {
  columns: 3 220px;
  column-gap: 12px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.gallery-item {
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 1px;
  break-inside: avoid;
  cursor: pointer;
}
.gallery-grid img {
  width: 100%;
  display: block;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.gallery-item:hover img { transform: scale(1.07); }

/* ---------- CTA / CONTACT ---------- */
.cta { padding: 110px 0 120px; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; }
.cta-info h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; margin-bottom: 16px; }
.cta-info > p { color: var(--gray); margin-bottom: 30px; max-width: 420px; }
.whatsapp-cta { margin-bottom: 30px; }
.cta-meta { display: flex; flex-direction: column; gap: 10px; }
.cta-meta a { color: var(--gray); font-size: 0.9rem; }
.cta-meta a:hover { color: var(--black); }

.cta-form { background: var(--white); border: 1px solid var(--line); padding: 40px; }
.form-row { margin-bottom: 20px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 8px 2px;
  color: var(--black);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--black); }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { margin-top: 14px; font-size: 0.88rem; min-height: 1.2em; }
.form-status.success { color: #2e6b3e; }
.form-status.error { color: #a33b3b; }

/* ---------- FOOTER ---------- */
.footer { background: var(--black); color: var(--white); padding: 60px 0 34px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.footer-wordmark { font-size: 1.5rem; }
.footer-inner p { color: rgba(255,255,255,0.6); margin-top: 8px; font-style: italic; font-family: var(--font-display); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-copy { width: 100%; color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-top: 30px; }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 150;
  width: 56px; height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(20,20,20,0.25);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,10,10,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; }
.lightbox-close { position: absolute; top: 24px; right: 28px; color: var(--white); font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- HERO ENTRANCE ---------- */
.hero-img { transform: scale(1.08); will-change: transform; }
.hero .eyebrow, .hero h1, .hero-sub, .hero-actions {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn .9s cubic-bezier(.16,1,.3,1) forwards;
}
.hero .eyebrow { animation-delay: .2s; }
.hero h1 { animation-delay: .35s; }
.hero-sub { animation-delay: .5s; }
.hero-actions { animation-delay: .65s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- NAV LINK UNDERLINE ---------- */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 1px; background: var(--black);
  transition: right .3s cubic-bezier(.16,1,.3,1);
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }

/* ---------- BUTTON LIFT ---------- */
.btn-light:hover, .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,20,20,0.14); }
.btn-outline:hover { transform: translateY(-2px); }

/* ---------- TIMELINE PROGRESS LINE ---------- */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 34px; top: 0;
  width: 1px; height: 100%;
  background: rgba(255,255,255,0.14);
}
.timeline-progress {
  position: absolute;
  left: 34px; top: 0;
  width: 1px; height: 0%;
  background: var(--white);
  transition: height .1s linear;
}
.timeline li { position: relative; }

/* ---------- WHATSAPP PULSE ---------- */
.whatsapp-float { position: fixed; }
.whatsapp-float::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulseRing 2.6s ease-out infinite;
  z-index: -1;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- LIGHTBOX TRANSITION ---------- */
.lightbox img { transform: scale(.94); opacity: 0; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s ease; }
.lightbox.open img { transform: scale(1); opacity: 1; }

/* ---------- SERVICE CARD / FEATURE PHOTO HOVER ---------- */
.service-card { transition: background .3s ease; }
.service-card:hover { background: var(--white); }
.feature-photo img { transition: transform .8s cubic-bezier(.16,1,.3,1); }
.feature-photo:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .eyebrow, .hero h1, .hero-sub, .hero-actions {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .whatsapp-float::before { animation: none; display: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 50px; }
  .gallery-grid { columns: 2 160px; }
}
@media (max-width: 560px) {
  .hero-content { padding-bottom: 60px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .cta-form { padding: 28px 22px; }
  .gallery-grid { columns: 2 140px; }
  .timeline li { grid-template-columns: 46px 1fr; }
}
