/* ==========================================================================
   Yourvenice: styles.css
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --black-soft: #14171a;
  --white: #ffffff;
  --blue: #47ccd0;
  --blue-dim: #2f9a9e;
  --ink: #10151a;
  --paper: #f6f8f8;
  --muted: #5b6670;
  --line: rgba(10, 15, 20, 0.1);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-display: 'Space Grotesk', 'Avenir Next', 'Futura', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.12; }
p { margin: 0; line-height: 1.65; color: var(--muted); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(71, 204, 208, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(71, 204, 208, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-light);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-icon { height: 26px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .nav-cta {
  background: var(--white);
  color: var(--black);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--blue); color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  background: linear-gradient(180deg, var(--black) 0%, var(--black) 30%, #0f4a4c 68%, var(--blue) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--black) 0%, rgba(10,10,10,0.75) 32%, rgba(15,74,76,0.55) 68%, rgba(71,204,208,0.55) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
}
.hero-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 22vh;
  min-height: 160px;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.hero-facts {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.hero-facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.hero-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-dark p { color: rgba(255,255,255,0.68); }
.section-dark .eyebrow { color: var(--blue); }
.section-dark h2 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 20px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-top: 12px;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.section-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.section-photo img { width: 100%; height: 100%; object-fit: cover; }
.section-body p { margin-bottom: 18px; font-size: 1.02rem; }

/* ---------- Visual break ---------- */
.visual-break {
  position: relative;
  height: 60vh;
  min-height: 380px;
  overflow: hidden;
}
.visual-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.visual-break-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.75) 100%);
  padding: 50px;
}
.visual-break-overlay p {
  max-width: 480px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.mini-stats {
  display: flex;
  gap: 32px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 200px;
}
.mini-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}
.mini-stat-label { font-size: 0.88rem; color: var(--muted); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: var(--black-soft);
  padding: 40px 30px;
}
.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 22px;
}
.pillar h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 12px; }
.pillar p { font-size: 0.94rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 34px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10,15,20,0.08);
  border-color: rgba(71, 204, 208, 0.4);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(71, 204, 208, 0.12);
  color: var(--blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--ink); }
.service-card p { font-size: 0.94rem; }

/* ---------- Steps ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line-light);
}
.step:last-child { border-bottom: 1px solid var(--line-light); }
.step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.1rem;
}
.step h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* ---------- Contact ---------- */
.section-contact {
  background: var(--black);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.section-contact .eyebrow { color: var(--blue); }
.section-contact h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 12px; }
.contact-lead { color: rgba(255,255,255,0.68); margin-top: 18px; font-size: 1.02rem; }

.contact-list { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
}
.contact-list span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.contact-list a:hover { color: var(--blue); }

.contact-form {
  background: var(--black-soft);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.form-row input,
.form-row textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.96rem;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,0.09);
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}
.checkbox input { margin-top: 3px; }
.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--blue);
  margin: 0;
}
.form-status.is-error { color: #ff8a8a; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand-lockup { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.footer-icon { height: 22px; width: auto; }
.footer-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.footer-brand p { font-size: 0.9rem; max-width: 240px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.footer-col a, .footer-col span { font-size: 0.9rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  padding: 24px 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
}
.footer-credit a { color: rgba(255,255,255,0.45); text-decoration: underline; }
.footer-credit a:hover { color: var(--blue); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Defensive: never let content stay invisible if JS fails or is delayed */
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-photo { aspect-ratio: 16 / 9; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px 36px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 120px; }
  .hero-facts { gap: 26px; }
  .pillars { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .visual-break { height: 46vh; min-height: 300px; }
  .visual-break-overlay { padding: 30px; }
}
