/* Alivianis — Life & Mortgage Protection
   Palette pulled from the petal logo on a cream paper background. */

:root {
  --cream: #F5EFE4;
  --cream-deep: #EDE5D5;
  --ink: #2D2A26;
  --ink-soft: #4A463F;
  --muted: #7A7268;
  --line: #D9D0BE;

  --petal-blue:   #74B6CF;
  --petal-teal:   #7FC7B2;
  --petal-yellow: #F2D770;
  --petal-coral:  #E27A6A;
  --petal-orange: #E89A5A;
  --petal-purple: #A290C2;

  --accent: var(--petal-coral);
  --accent-deep: #C76353;

  --radius: 14px;
  --shadow: 0 8px 30px rgba(45, 42, 38, 0.08);
  --maxw: 1140px;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 220px; height: auto; }
.brand .brand-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}
.brand .brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: -4px;
}

nav.primary {
  display: flex; align-items: center; gap: 28px;
}
nav.primary a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
nav.primary a:hover { color: var(--ink); text-decoration: none; }
nav.primary a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-toggle button {
  background: transparent; border: 0;
  color: var(--muted);
  padding: 4px 10px; border-radius: 999px;
  cursor: pointer;
  font: inherit; letter-spacing: inherit;
}
.lang-toggle button.on {
  background: var(--ink); color: var(--cream);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform 0.2s ease;
}

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  nav.primary {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  nav.primary.open { display: flex; }
  .brand .brand-sub { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(226, 122, 106, 0.3);
}
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero h1 { color: var(--ink); }
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-figure img { max-width: 78%; }
.hero-figure::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(226, 122, 106, 0.08), transparent 65%);
  border-radius: 50%;
}
@media (max-width: 880px) {
  .hero { padding: 50px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-figure { order: -1; max-width: 280px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
  font-weight: 600;
}

/* Services grid */
.services {
  background: var(--cream-deep);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}
.service-card.life .icon    { background: rgba(116, 182, 207, 0.2); color: #2F87A4; }
.service-card.mortgage .icon{ background: rgba(127, 199, 178, 0.2); color: #2F8F73; }
.service-card.health .icon  { background: rgba(226, 122, 106, 0.18); color: #B85543; }
.service-card.annuity .icon { background: rgba(162, 144, 194, 0.2); color: #6A569A; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); flex: 1; }
.service-card a.more {
  margin-top: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  font-size: 0.95rem;
}
.service-card a.more::after { content: " →"; }

/* Promise / values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.value h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.value .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--petal-coral);
  display: block;
  margin-bottom: 8px;
}

/* CTA banner */
.cta-banner {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.cta-banner h2 { color: var(--cream); margin: 0; }
.cta-banner p { color: rgba(245, 239, 228, 0.8); margin: 8px 0 0; }
@media (max-width: 720px) {
  .cta-banner { grid-template-columns: 1fr; padding: 32px; }
}

/* ---------- Contact / form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info p { margin: 0 0 10px; }
.contact-info .label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 22px;
}

.form-wrap {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 122, 106, 0.18);
}
textarea { resize: vertical; min-height: 110px; }
.form-wrap button { margin-top: 18px; width: 100%; justify-content: center; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 14px 0 0;
}

/* ---------- About-style content ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose p { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }

/* Service detail page */
.service-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 880px) { .service-detail { grid-template-columns: 1fr; } }
.service-detail .sidebar {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
}
.service-detail .sidebar h3 { font-size: 1.1rem; }
.service-detail .sidebar ul { padding-left: 18px; margin: 8px 0; }
.service-detail .sidebar li { margin-bottom: 6px; color: var(--ink-soft); }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(127, 199, 178, 0.25);
  color: #2F8F73;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(245, 239, 228, 0.85);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.site-footer a { color: rgba(245, 239, 228, 0.85); }
.site-footer a:hover { color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--sans);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-brand p { color: rgba(245, 239, 228, 0.7); font-size: 0.92rem; }
.footer-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 239, 228, 0.15);
  font-size: 0.78rem;
  color: rgba(245, 239, 228, 0.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.disclosure {
  background: rgba(245, 239, 228, 0.04);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: rgba(245, 239, 228, 0.65);
  line-height: 1.55;
  margin-top: 30px;
}

/* ---------- Landing Page ---------- */
.landing-page {
  overflow: hidden;
}

.landing-main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--cream);
}

.landing-logo {
  text-align: center;
  width: 80vw;
  max-width: 1100px;
}

.landing-logo img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.landing-controls {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle-landing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: var(--sans);
}

.lang-toggle-landing button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px 8px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: color 0.2s ease;
}

.lang-toggle-landing button.on {
  color: var(--ink);
}

.landing-menu-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.landing-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.landing-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.landing-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: 0;
  font-size: 2.2rem;
  font-weight: 300;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  line-height: 1;
}

.landing-close:hover {
  color: var(--accent);
}

.landing-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.landing-overlay-links a {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.landing-overlay-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Utility */
.center { text-align: center; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* Page hero (smaller than home hero) */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
  font-weight: 600;
}
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
