/* Consultation page animations and subtle hero sheen */
:root {
  --accent: #b68a45;
  --muted-white: rgba(255, 255, 255, 0.32);
}

/* Hero area baseline */
.consultation-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #080808 0%, #060606 100%);
  color: #fff;
  padding: 64px 0;
}

/* Sheen overlay (subtle moving highlight) */
.hero-overlay::before {
  content: "";
  position: absolute;
  left: -60%;
  top: -40%;
  width: 220%;
  height: 220%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 100%);
  transform: rotate(12deg);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: hero-sheen 6.5s linear infinite;
}

@keyframes hero-sheen {
  0% {
    transform: translateX(-50%) rotate(12deg);
  }

  100% {
    transform: translateX(50%) rotate(12deg);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-overlay::before {
    animation: none;
  }
}

/* Scroll/enter animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .64s cubic-bezier(.2, .9, .3, 1), transform .64s cubic-bezier(.2, .9, .3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-delay] {
  transition-delay: var(--delay, 0s);
}

/* Stagger helpers */
.delay-1 {
  --delay: 0.04s
}

.delay-2 {
  --delay: 0.08s
}

.delay-3 {
  --delay: 0.12s
}

.delay-4 {
  --delay: 0.18s
}

/* Card and form subtle polish */
.consultation-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 6px;
}

.consultation-form .form-group input,
.consultation-form .form-group select,
.consultation-form .form-group textarea {
  transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
}

.consultation-form .form-group input:focus,
.consultation-form .form-group textarea:focus,
.consultation-form .form-group select:focus {
  box-shadow: 0 6px 18px rgba(11, 11, 11, 0.45), 0 1px 0 rgba(182, 138, 69, 0.06) inset;
  border-color: rgba(182, 138, 69, 0.22);
  outline: none;
}


.consultation-form .form-group option {
  color: #000 !important;
}

/* Submit button sheen */
.submit-btn {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 22px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.06em
}

.submit-btn::after {
  content: "";
  position: absolute;
  left: -110%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-12deg);
  transition: left .8s cubic-bezier(.2, .9, .3, 1)
}

.submit-btn:hover::after {
  left: 120%
}

/* Small responsive tweaks */
@media (max-width:900px) {
  .consultation-wrap {
    display: block
  }

  .consultation-card {
    margin-top: 24px
  }
}

/* Utility: subtle text colors */
.hero-kicker {
  color: var(--accent);
  letter-spacing: .18em
}

.hero-quote {
  color: var(--muted-white)
}

/* Floating label inputs */
.consultation-form .form-group {
  position: relative;
  padding-top: 20px
}

.consultation-form .form-group label {
  position: absolute;
  left: 14px;
  top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.18em;
  transition: transform .18s ease, font-size .18s ease, color .18s ease;
  pointer-events: none;
  background: transparent;
  padding: 0 6px
}

.consultation-form .form-group input,
.consultation-form .form-group textarea,
.consultation-form .form-group select {
  padding: 18px 12px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff
}

.consultation-form .form-group.focused label,
.consultation-form .form-group.filled label {
  transform: translateY(-12px) scale(0.92);
  color: var(--accent);
  font-size: 11px
}

.consultation-form .form-group.filled label {
  color: var(--accent)
}

/* ensure select shows properly */
.consultation-form .form-group select {
  appearance: none
}

:root {
  --black: #090909;
  --charcoal: #66625e;
  --gold: #b58a4a;
  --gold-soft: #c8a468;
  --white: #ffffff;
  --off-white: #f4f2ee;
  --off-card: rgba(255, 255, 255, 0.92);
  --text: #1b1b1b;
  --text-soft: #6f6f6f;
  --line: rgba(181, 138, 74, 0.2);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  --max-width: 1160px;
  --transition: all 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--off-white);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(65, 63, 61, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

.brand-image {
  display: block;
  height: 55px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  position: relative;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  transition: var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--gold-soft);
}

.main-nav a:hover::after {
  width: 100%;
}

.consult-btn {
  border: 1px solid rgba(181, 138, 74, 0.8);
  color: var(--gold-soft);
  padding: 15px 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  transition: var(--transition);
}

.consult-btn:hover,
.active-btn {
  background: rgba(181, 138, 74, 0.08);
}

/* HERO */
.consultation-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 120px;
  background:
    linear-gradient(rgba(248, 246, 242, 0.82), rgba(248, 246, 242, 0.82)),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.28));
}

.consultation-wrap {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero-copy {
  text-align: center;
  margin-bottom: 54px;
}

.hero-kicker {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.58em;
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.8rem, 7vw, 6.2rem);
  line-height: 0.98;
  color: #171717;
  margin-bottom: 26px;
  font-weight: 700;
}

.hero-quote-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
}

.quote-line {
  width: 2px;
  height: 72px;
  background: rgba(181, 138, 74, 0.25);
}

.hero-quote {
  max-width: 680px;
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  color: #383838;
}

/* FORM CARD */
.consultation-card {
  background: var(--off-card);
  box-shadow: var(--shadow);
  border-radius: 6px;
  overflow: hidden;
  border-top: 6px solid var(--gold);
}

.consultation-form {
  padding: 52px 54px 56px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 34px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.phone-group {
  position: relative;
  z-index: 25;
}

.full-width {
  margin-top: 30px;
}

.form-group label {
  color: #1f1f1f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  margin-bottom: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
  color: #222;
  outline: none;
  transition: var(--transition);
}

.form-group textarea {
  resize: vertical;
  min-height: 170px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b5b5b5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}

/* Strong contrast overrides for readability (high-specificity, page-scoped) */
.consultation-hero .hero-overlay {
  background: rgba(0, 0, 0, 0.52) !important;
}

.consultation-wrap,
.consultation-hero .hero-copy,
.consultation-card {
  position: relative !important;
  z-index: 3 !important;
}

/* Make hero copy visible on dark overlay */
.consultation-hero .hero-copy h1,
.consultation-hero .hero-kicker,
.consultation-hero .hero-quote {
  color: #ffffff !important;
}

.consultation-hero .hero-quote {
  color: rgba(255, 255, 255, 0.9) !important
}

/* Darken card and inputs for legibility against light background image */
.consultation-card {
  background: rgba(6, 6, 6, 0.62) !important;
  border-top: 6px solid var(--gold) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45) !important;
  color: #fff !important;
}

.consultation-form {
  padding: 40px !important
}

.form-group label {
  color: rgba(255, 255, 255, 0.9) !important
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.015) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.56) !important
}

/* Keep country code select readable (light box) */
.phone-wrap select {
  background: #fff !important;
  color: #222 !important;
  border-radius: 4px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important
}

/* Button stronger contrast */
.submit-btn {
  background: var(--gold) !important;
  color: #111 !important
}


.phone-wrap {
  display: grid;
  grid-template-columns: 94px auto minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: visible;
}

.phone-wrap select {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

/* Custom country-select visuals (keeps existing layout/colors) */
.country-select {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  z-index: 30;
}

.country-select__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 12px;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  justify-content: flex-start;
  min-height: 52px;
}

.country-select__toggle .flag {
  width: 18px;
  height: 12px;
  display: inline-block;
  border-radius: 2px;
}

.country-select__toggle .country-label {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.country-select__toggle .caret {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg) translateY(-1px);
}

.country-select__list {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  background: #fff;
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  min-width: 220px;
  max-height: 220px;
  overflow: auto;
  display: none;
  z-index: 120;
  padding: 10px 0;
}

.country-select__list li {
  list-style: none;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  line-height: 1.2;
}

.country-select__list li img {
  width: 20px;
  height: 14px
}

.country-select__list li:hover {
  background: rgba(0, 0, 0, 0.04)
}

.country-select.open .country-select__list {
  display: block
}

/* Ensure toggle uses dark form styling inside consultation card */
.consultation-card .country-select__toggle {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.consultation-card .country-select__list {
  background: #111214;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

.consultation-card .country-select__list li:hover {
  background: rgba(255, 255, 255, 0.03)
}

.consultation-card .country-select__toggle .country-label {
  color: #fff
}

.phone-dial {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 0 12px;
  background: transparent;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* keep phone input aligned */
.phone-wrap input[type="tel"] {
  padding: 0 14px;
  height: 52px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  letter-spacing: 0.04em;
}

.phone-wrap input[type="tel"]:focus {
  background: rgba(255, 255, 255, 0.04) !important;
}

.phone-wrap:focus-within {
  border-color: rgba(181, 138, 74, 0.56);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(181, 138, 74, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phone-wrap input[type="tel"]::placeholder {
  color: rgba(255, 255, 255, 0.42) !important;
}

.submit-btn {
  width: 100%;
  margin-top: 40px;
  background: #bb9557;
  color: #151515;
  border: none;
  padding: 22px 24px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: #ae8849;
  transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
  background: #090909;
  color: var(--white);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 34px;
}

.footer-logo {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.footer-logo-image {
  display: block;
  width: min(100%, 220px);
  height: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer-brand p,
.footer-col p,
.footer-col a {
  color: #b9b9b9;
  font-size: 1rem;
  line-height: 1.9;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 18px;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
}

.footer-col a:hover,
.footer-accent:hover {
  color: var(--white);
}

.footer-accent {
  color: var(--gold) !important;
}

.footer-strong {
  color: var(--white) !important;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p,
.footer-links a {
  color: #8f8f8f;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.footer-links {
  display: flex;
  gap: 28px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .main-nav {
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .site-header {
    position: relative;
  }

  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-quote-wrap {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .consultation-hero {
    padding: 110px 0 90px;
  }

  .consultation-form {
    padding: 34px 22px 30px;
  }

  .quote-line {
    display: none;
  }

  .hero-kicker,
  .main-nav a,
  .consult-btn,
  .form-group label,
  .submit-btn {
    letter-spacing: 0.22em;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-quote {
    font-size: 0.95rem;
  }

  .phone-wrap {
    grid-template-columns: 82px auto minmax(0, 1fr);
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

/* PHP flash alert */
.form-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-alert.success {
  background: rgba(40, 167, 69, 0.16);
  color: #d7ffe1;
  border: 1px solid rgba(40, 167, 69, 0.25);
}

.form-alert.error {
  background: rgba(220, 53, 69, 0.16);
  color: #ffd9de;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.consultation-success-panel {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin: 0 0 26px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(22, 54, 39, 0.96), rgba(18, 43, 35, 0.96));
  border: 1px solid rgba(92, 220, 143, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.24);
  color: #dbe8df;
}

.success-check {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #5ddf92;
  border-radius: 50%;
  background: rgba(93, 223, 146, 0.16);
  color: #bdf8d0;
}

.success-check svg,
.reference-chip svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-copy h2 {
  margin: 0 0 4px;
  color: #f2fff5;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.success-copy p {
  margin: 0;
  color: rgba(242, 255, 245, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}

.success-followup {
  margin-top: 16px !important;
}

.reference-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  background: rgba(72, 137, 91, 0.45);
  color: #a8f2be;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.reference-chip svg {
  width: 15px;
  height: 15px;
  color: #a8f2be;
}

.reference-chip strong {
  color: #9ceeb7;
}

.reference-chip span {
  color: #d8ffe2;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .consultation-success-panel {
    gap: 14px;
    padding: 18px;
  }

  .success-check {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .success-copy h2 {
    font-size: 0.98rem;
  }

  .reference-chip {
    width: 100%;
    flex-wrap: wrap;
  }
}
