/* ═══════════════════════════════════════════
   ORAVIO — Production Stylesheet
   ═══════════════════════════════════════════ */

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

:root {
  --navy:       #0a0f1e;
  --navy2:      #0d1428;
  --navy3:      #111930;
  --gold:       #b8965a;
  --gold2:      #d4aa70;
  --gold-pale:  #f0e0c0;
  --white:      #ffffff;
  --grey:       #8a94a6;
  --light:      #e8eaf0;
  --border:     rgba(184,150,90,0.2);
  --border-s:   rgba(184,150,90,0.4);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --section-pad: clamp(70px, 8vw, 110px) 6%;
  --radius: 0;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { transition: color 0.3s; }
ul { list-style: none; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 6%;
  background: var(--gold); color: var(--navy);
  padding: 8px 18px; font-size: 0.8rem; letter-spacing: 0.08em;
  z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ════════════════════════════
   NAV
════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 6%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,15,30,0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
}
#nav.scrolled {
  background: rgba(10,15,30,0.98);
  border-bottom-color: var(--border);
  padding-top: 10px; padding-bottom: 10px;
}

/* logo-h.png 1536×1024; bright content at rows 405-655, cols 169-1379 (1210×250px).
   Scale content to container: width 260px → scale 0.2149; bg-size 330×220, pos -36px -87px */
.nav-logo {
  flex-shrink: 0;
  display: block;
  width: 260px; height: 54px;
  background: url('../assets/logo-h.png') no-repeat -36px -87px;
  background-size: 330px 220px;
  transition: opacity 0.3s;
}
.nav-logo img { display: none; }
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  flex: 1;
  display: flex; justify-content: center; gap: 36px;
  flex-wrap: nowrap; white-space: nowrap;
  list-style: none;
}
.nav-links a {
  color: var(--grey); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 400;
}
.nav-links a:hover { color: var(--gold); }

.nav-right {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 24px;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-sans); font-weight: 500;
  text-decoration: none; display: inline-block;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 1.5px; background: var(--gold);
  display: block; transition: all 0.3s;
}

/* ════════════════════════════
   MOBILE MENU
════════════════════════════ */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--navy2); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; transition: opacity 0.3s;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  color: var(--white); text-decoration: none;
  font-size: 1.5rem; font-family: var(--font-serif); font-weight: 300;
  letter-spacing: 0.04em; transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute; top: 24px; right: 6%;
  background: none; border: none; color: var(--grey);
  font-size: 1.4rem; cursor: pointer; transition: color 0.3s;
}
.mobile-close:hover { color: var(--gold); }

/* ════════════════════════════
   HERO
════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 6% 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(184,150,90,0.07) 0%, transparent 60%),
    linear-gradient(135deg, #0a0f1e 0%, #0d1428 50%, #0a1020 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,150,90,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,150,90,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-line {
  position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.25;
}

.hero-content { position: relative; max-width: 680px; z-index: 2; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 30px;
}
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--gold); flex-shrink: 0; }
.hero-eyebrow span {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 300; line-height: 1.08;
  margin-bottom: 26px; color: var(--white);
}
h1 em { font-style: normal; color: var(--gold); }

.hero-sub {
  font-size: 1.02rem; color: var(--grey);
  line-height: 1.78; max-width: 540px;
  margin-bottom: 44px; font-weight: 300;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 14px 34px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer;
  font-family: var(--font-sans); font-weight: 500;
  text-decoration: none; display: inline-block;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); color: var(--navy); }

.btn-ghost {
  border: 1px solid rgba(184,150,90,0.4); color: var(--gold-pale);
  padding: 14px 34px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: 400;
  text-decoration: none; display: inline-block;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  position: absolute; right: 6%; bottom: 12%;
  display: flex; gap: 48px; z-index: 2;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem; font-weight: 300;
  color: var(--gold); line-height: 1;
}
.stat-sup { font-size: 1.2rem; }
.stat-label {
  font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey); margin-top: 6px;
}

/* ════════════════════════════
   SECTION COMMON
════════════════════════════ */
section { padding: var(--section-pad); }

.section-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.section-eyebrow-line { width: 30px; height: 1px; background: var(--gold); flex-shrink: 0; }
.section-eyebrow span {
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--grey); font-size: 0.94rem;
  line-height: 1.78; max-width: 560px; font-weight: 300;
}

/* ════════════════════════════
   VALUE PROP
════════════════════════════ */
#value {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.vp-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-top: 56px;
}
.vp-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 300; line-height: 1.55;
  color: var(--gold-pale);
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  font-style: italic;
}
.vp-points { display: flex; flex-direction: column; gap: 28px; }
.vp-point { display: flex; gap: 20px; align-items: flex-start; }
.vp-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem;
}
.vp-text h3 {
  font-size: 0.82rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 6px; font-weight: 500; font-family: var(--font-sans);
}
.vp-text p { font-size: 0.87rem; color: var(--grey); line-height: 1.68; }

/* ════════════════════════════
   SERVICES
════════════════════════════ */
#services { background: var(--navy3); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--border);
  background: var(--border);
}
.service-card {
  background: var(--navy2);
  padding: 40px 34px 36px;
  position: relative; overflow: hidden;
  transition: background 0.4s;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover { background: rgba(184,150,90,0.04); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-serif);
  font-size: 2.8rem; font-weight: 300;
  color: rgba(184,150,90,0.14); line-height: 1;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 0.9rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 12px; font-weight: 500; font-family: var(--font-sans);
}
.service-card > p {
  font-size: 0.86rem; color: var(--grey); line-height: 1.72;
}
.service-outcomes {
  margin-top: 20px; display: flex; flex-direction: column;
  gap: 7px; padding: 0;
}
.service-outcomes li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.78rem; color: var(--gold-pale); line-height: 1.5;
}
.service-outcomes li::before {
  content: '—'; color: var(--gold); flex-shrink: 0; margin-top: 1px;
}

/* ════════════════════════════
   ABOUT
════════════════════════════ */
#about { background: var(--navy); }
.about-grid {
  display: grid; grid-template-columns: 420px 1fr;
  gap: 80px; align-items: start; margin-top: 56px;
}
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: center top;
  filter: grayscale(15%);
}
.about-photo-frame {
  position: absolute; bottom: -18px; right: -18px;
  width: 100%; height: 100%;
  border: 1px solid var(--border); z-index: -1;
}
.about-accent {
  position: absolute; top: -12px; left: -12px;
  width: 48px; height: 48px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.about-bio {
  font-size: 0.94rem; color: var(--grey);
  line-height: 1.82; margin-bottom: 18px; font-weight: 300;
}
.about-bio strong { color: var(--white); font-weight: 500; }

.achievements {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-bottom: 32px;
  border: 1px solid var(--border); background: var(--border);
}
.ach {
  background: var(--navy2); padding: 20px 16px;
  text-align: center;
}
.ach-num {
  font-family: var(--font-serif);
  font-size: 1.75rem; color: var(--gold); line-height: 1;
}
.ach-label {
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey); margin-top: 5px;
}
.ach-wide { grid-column: span 2; }
.ach-regions {
  font-family: var(--font-serif);
  font-size: 1.15rem; color: var(--gold);
  line-height: 1.55; letter-spacing: 0.03em; font-weight: 300;
}

.engagement-types { margin-top: 8px; }
.engage-label {
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.engage-options {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.engage-options span {
  border: 1px solid var(--border);
  padding: 7px 16px;
  font-size: 0.76rem; color: var(--grey);
  letter-spacing: 0.06em;
}

/* ════════════════════════════
   CONTACT
════════════════════════════ */
#contact {
  background: var(--navy2);
  border-top: 1px solid var(--border);
}
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-inner .section-title { margin-bottom: 14px; }

.contact-channels {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; border: 1px solid var(--border);
  background: var(--border); margin-bottom: 52px;
}
.contact-item {
  padding: 26px 18px; text-align: center; background: var(--navy);
}
.contact-item-label {
  font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.contact-item-val { font-size: 0.87rem; color: var(--light); }
.contact-item-val a {
  color: var(--light); text-decoration: none;
}
.contact-item-val a:hover { color: var(--gold); }

/* Contact Form */
.contact-form { text-align: left; }

/* Honeypot — invisible to humans, visible to bots */
.hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
  pointer-events: none; tab-index: -1;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey); font-weight: 500;
}
.req { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 13px 16px;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 300;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
  appearance: none; -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8965a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select option { background: var(--navy2); color: var(--white); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(184,150,90,0.04);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #e05a5a; }

.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(138,148,166,0.5); }

.form-feedback {
  min-height: 24px; font-size: 0.85rem;
  margin-bottom: 16px; line-height: 1.5;
}
.form-feedback.success { color: #6db87b; }
.form-feedback.error   { color: #e07070; }

.form-submit-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.form-note {
  font-size: 0.72rem; color: var(--grey);
  line-height: 1.5; max-width: 340px;
}

/* Spinner inside button */
#submitBtn { position: relative; min-width: 180px; }
#submitBtn.loading .btn-label { visibility: hidden; }
#submitBtn.loading .btn-spinner { display: block; }
.btn-spinner {
  display: none;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border: 2px solid rgba(10,15,30,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 28px 6%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
/* footer logo: scale 1213px content → 120px wide: factor 0.0989 → bg-size 152×101; offset: -17px -40px */
.footer-logo {
  display: block;
  width: 120px; height: 25px;
  background: url('../assets/logo-h.png') no-repeat -17px -40px;
  background-size: 152px 101px;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.footer-logo img { display: none; }
.footer-logo:hover img { opacity: 0.8; }

.footer-nav {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--gold); }

.footer-note {
  font-size: 0.7rem; color: var(--grey);
  letter-spacing: 0.06em;
}
.footer-note a { color: var(--grey); text-decoration: none; }
.footer-note a:hover { color: var(--gold); }

/* ════════════════════════════
   UTILITY
════════════════════════════ */
.about-bio-last { margin-bottom: 32px; }
.center-eyebrow { justify-content: center; }
.contact-sub { margin: 0 auto 48px; text-align: center; }
.mobile-cta { margin-top: 16px; font-size: 0.75rem; }

/* ════════════════════════════
   SCROLL REVEAL
════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ════════════════════════════
   RESPONSIVE — TABLET
════════════════════════════ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

@media (max-width: 900px) {
  /* content 1210×250 → 200px wide: scale 0.1653 → bg-size 254×169; pos -28px -67px */
  .nav-logo { width: 200px; height: 42px; background-size: 254px 169px; background-position: -28px -67px; }
  .nav-links { gap: 20px; }
  .vp-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-wrap { max-width: 380px; }
  .achievements { grid-template-columns: repeat(2, 1fr); }
  .contact-channels { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .achievements { grid-template-columns: repeat(2, 1fr); }
  .form-submit-row { flex-direction: column; align-items: flex-start; }
  #submitBtn { width: 100%; }
  .footer-nav { display: none; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 64px 5%; }
  h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .engage-options { flex-direction: column; }
  .contact-channels { grid-template-columns: 1fr; }
}
