/* ============================================================
   BENY RESA — Landing Page Styles
   Aesthetic: Scandinavian editorial — refined, authoritative
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --navy: #1a2744;
  --navy-deep: #111b30;
  --navy-light: #243353;
  --gold: #d8e636;
  --gold-light: #e4ef5a;
  --gold-muted: rgba(216, 230, 54, 0.15);
  --cream: #faf8f4;
  --white: #ffffff;
  --gray-100: #f5f3ef;
  --gray-200: #e8e4dd;
  --gray-400: #a09888;
  --gray-600: #6b6259;
  --gray-800: #3d3530;
  --text: #2a2420;
  --text-light: #6b6259;
  --text-inv: #e8e4dd;
  --text-inv-muted: rgba(232, 228, 221, 0.6);

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img, svg { display: block; }

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

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.3s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 101;
  transition: opacity 0.2s ease;
}

.logo:hover { opacity: 0.85; }

.logo-img {
  height: 36px;
  width: auto;
}

.logo-img--footer {
  height: 24px;
  opacity: 0.7;
}

.logo-img--footer:hover {
  opacity: 0.9;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-600);
  transition: color 0.25s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.main-nav a:hover {
  color: var(--navy);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px !important;
  border: none !important;
  border-radius: 6px;
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy-deep) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .main-nav a {
    font-size: 20px;
    color: var(--text-inv);
  }

  .nav-cta {
    margin-top: 8px;
    font-size: 18px !important;
  }
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--navy);
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(216, 230, 54, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(36, 51, 83, 0.8) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(216, 230, 54, 0.08);
  border-radius: 50%;
  animation: pulse-ring 8s ease-in-out infinite;
}

.hero-bg-pattern::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 10%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(216, 230, 54, 0.05);
  border-radius: 50%;
  animation: pulse-ring 8s ease-in-out 4s infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.5; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 80px 64px;
  max-width: 640px;
  margin-left: auto;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.35s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-inv-muted);
  max-width: 440px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.65s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero visual / card */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 64px 80px 24px;
}

.hero-card {
  width: 320px;
  opacity: 0;
  animation: card-in 1s var(--ease-out) 0.7s forwards;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(30px) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-card-inner {
  background: linear-gradient(145deg, var(--navy-light) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(216, 230, 54, 0.2);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(216, 230, 54, 0.08) inset;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.hero-card-inner:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(216, 230, 54, 0.15) inset;
}

.hero-card-icon {
  width: 64px;
  height: 64px;
  color: var(--gold);
}

.hero-card-label {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
}

.hero-card-sublabel {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-inv-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 64px 24px 40px;
    max-width: 100%;
    margin-left: 0;
  }

  .hero-visual {
    padding: 0 24px 64px;
    justify-content: center;
  }

  .hero-card { width: 280px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(216, 230, 54, 0.25);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 20px rgba(216, 230, 54, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-inv-muted);
  border: 1.5px solid rgba(232, 228, 221, 0.2);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(232, 228, 221, 0.4);
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--cream);
}

.section-dark {
  background: var(--navy);
  color: var(--text-inv);
}

.section-accent {
  background: var(--navy-deep);
  color: var(--text-inv);
}

.section-header {
  margin-bottom: 64px;
}

.section-header--light .section-number,
.section-header--light .section-title {
  color: var(--white);
}

.section-header--light .section-lead {
  color: var(--text-inv-muted);
}

.section-number {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--navy-light);
  margin-bottom: 12px;
}

.section-dark .section-number,
.section-accent .section-number {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section-dark .section-title {
  color: var(--white);
}

.section-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 560px;
}

/* --- STEPS --- */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 20px;
  border: 1.5px solid var(--navy);
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--navy);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text);
}

.step-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-light);
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 22px;
  color: var(--gray-400);
  flex-shrink: 0;
  width: 80px;
}

.step-connector svg {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .step { max-width: 400px; }

  .step-connector {
    transform: rotate(90deg);
    width: 60px;
    padding-top: 0;
  }
}

/* --- BENEFITS --- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.benefit-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 230, 54, 0.1);
  border-radius: 16px;
  padding: 40px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.benefit-col:hover {
  border-color: rgba(216, 230, 54, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.benefit-col-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(216, 230, 54, 0.12);
}

.benefit-col-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  flex-shrink: 0;
}

.benefit-col-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-list li {
  position: relative;
  padding-left: 20px;
}

.benefit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.benefit-list strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.benefit-list span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-inv-muted);
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .benefit-col { padding: 28px; }
}

/* --- PROVIDERS --- */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.provider-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.provider-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(216, 230, 54, 0.1);
  transform: translateY(-3px);
}

.provider-icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.provider-card:hover .provider-icon {
  opacity: 1;
  color: var(--gold);
}

.provider-icon svg {
  width: 100%;
  height: 100%;
}

.provider-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .provider-card { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .providers-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- CONTACT --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-inv-muted);
  margin-bottom: 32px;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-inv-muted);
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 230, 54, 0.1);
  border-radius: 16px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-inv-muted);
  margin-bottom: 6px;
}

.required { color: var(--gold); }

input, textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(232, 228, 221, 0.12);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input::placeholder, textarea::placeholder {
  color: rgba(232, 228, 221, 0.3);
}

input:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 230, 54, 0.12);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.cf-turnstile {
  margin-bottom: 20px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  position: relative;
}

.btn-submit .btn-loader {
  display: none;
  width: 20px;
  height: 20px;
}

.btn-submit .btn-loader svg {
  width: 100%;
  height: 100%;
  animation: spin 1s linear infinite;
}

.btn-submit.loading .btn-text { opacity: 0.5; }
.btn-submit.loading .btn-loader { display: block; }
.btn-submit.loading { pointer-events: none; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  padding: 0;
  transition: all 0.3s ease;
}

.form-status.success {
  padding: 12px 16px;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.form-status.error {
  padding: 12px 16px;
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #ef9a9a;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form { padding: 28px; }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- FOOTER --- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(216, 230, 54, 0.08);
  padding: 48px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-inv-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 12px;
  color: rgba(232, 228, 221, 0.35);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* --- Scroll reveal animation --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
