:root {
  /* Modern, professional palette with marble neutrals and red brand */
  --bg: #fafafa;          /* marble base */
  --bg-alt: #f5f5f5;      /* subtle variation */
  --card: #ffffff;        /* clean card */
  --line: #e6e6e6;        /* cool divider */
  --fg: #111111;          /* high-contrast text */
  --muted: #666666;       /* neutral muted */
  --brand: #c62828;       /* primary red */
  --brand-2: #ef5350;     /* lighter red */
  --accent: #9e9e9e;      /* neutral accent */
  --white: #ffffff;

  /* Subtle marble texture using layered gradients */
  --marble: 
    radial-gradient(1200px 800px at 10% 0%, rgba(0,0,0,0.02), rgba(0,0,0,0.00) 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(0,0,0,0.025), rgba(0,0,0,0.00) 55%),
    radial-gradient(1000px 700px at 0% 90%, rgba(0,0,0,0.02), rgba(0,0,0,0.00) 60%),
    linear-gradient(#fbfbfb, #f6f6f6);
  --header-h: 0px; /* set by JS on mobile when header is fixed */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); background-image: var(--marble); color: var(--fg); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height: 1.55; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.row { display: flex; gap: 12px; }
.row.between { justify-content: space-between; }
.row.center { align-items: center; }
.gap { gap: 16px; }
.gap-sm { gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop/tablet: apply taller hero */
@media (min-width: 901px) {
  .hero { min-height: 72vh; }
}

.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); background: rgba(255, 255, 255, 0.7); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: 0.2px; color: var(--fg); padding: 16px 0; display: inline-flex; align-items: center; gap: 10px; }
.brand span { color: var(--brand); }
.brand-sub { display: none; color: var(--muted); font-size: 12px; }
@media (min-width: 900px) { .brand-sub { display: inline-flex; align-items:center; gap:8px; } }
.em-logo { height: 24px; opacity: 0.9; filter: saturate(80%); }
@media (min-width: 900px) { .em-logo { height: 28px; } }
.nav a { color: var(--fg); opacity: 0.9; text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(0,0,0,0.06); }

/* Header nav and mobile menu */
.nav { display: flex; align-items: center; gap: 8px; position: relative; }
.nav .links { display: flex; gap: 6px; }
.nav-toggle { display: none; background: #fff; color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 700; }
@media (max-width: 900px) {
  .brand { display: none; }
  .nav { flex: 1 1 auto; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav .links { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,0.08); padding: 8px; flex-direction: column; min-width: 200px; }
  body.nav-open .nav .links { display: flex; }
  /* Make header fixed and ensure content starts immediately below */
  .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; }
  .site-header .container { padding: 8px 0 8px; }
  body { padding-top: var(--header-h); }
  .nav { gap: 10px; }
  .nav .btn.sm { padding: 10px 12px; margin: 2px 4px; }
  /* Remove large hero min-height on mobile/tablet to avoid gap */
  .hero { min-height: auto; align-items: start; }
  .hero-content { padding-top: 8px; }
}

/* Ensure header primary CTA keeps its red gradient on hover */
.nav a.btn.primary,
.nav a.btn.primary:hover {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #ffffff;
  border-color: rgba(198, 40, 40, 0.5);
}

/* Mobile spacing adjustments and safe-area handling */
@supports (padding: max(0px)) {
  .site-header { padding-top: env(safe-area-inset-top); }
}
@media (max-width: 600px) {
  .brand { padding: 10px 0; font-size: 18px; }
  .nav a { padding: 8px 8px; }
  .nav .btn.sm { padding: 6px 8px; font-size: 13px; }
  .hero { min-height: auto; align-items: start; }
  .hero-content { padding: 8px 0 20px; }
  .section { padding: 32px 0; }
  .page-hero { padding: 0 0 12px; }
  .trust { margin-top: 16px; }
}

.hero { position: relative; display: grid; place-items: center; text-align: center; background: var(--bg); background-image: var(--marble); }
.hero .overlay { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.84) 45%, rgba(255,255,255,0.96) 100%); }
.hero-content { position: relative; z-index: 1; padding: 64px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; color: var(--brand); font-weight: 700; font-size: 12px; margin: 0 0 10px; }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin: 0 0 12px; color: var(--fg); }
.lede { font-size: clamp(16px, 2.6vw, 20px); color: #444; max-width: 780px; margin: 0 auto 24px; }
.cta { justify-content: center; gap: 14px; margin-top: 6px; }
.trust { gap: 18px; opacity: 0.9; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.trust img { opacity: 0.7; filter: grayscale(100%); height: 44px; }
/* Smaller logo variant (half height) */
.trust img.sm { height: 22px; }

.section { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, #ffffff, var(--bg-alt)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 16px; }
h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 10px 24px rgba(198, 40, 40, 0.08), 0 2px 6px rgba(0,0,0,0.04); }
.cards .card { min-height: 160px; }

.btn { display: inline-block; color: var(--fg); text-decoration: none; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.08); font-weight: 600; letter-spacing: 0.2px; transition: transform 0.08s ease, background 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(208, 132, 151, 0.2); }
.btn.primary { background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #ffffff; border-color: rgba(198, 40, 40, 0.5); }
.btn.white { background: #fff; color: var(--fg); border-color: rgba(0,0,0,0.08); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 12px; font-size: 14px; }
.btn.xl { padding: 14px 18px; font-size: 16px; }
.btn.full { width: 100%; }

.page-hero { padding: 56px 0 8px; text-align: center; }
.page-hero.narrow { padding-bottom: 0; }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; width: 100%; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; background: #fff; color: var(--fg); border: 1px solid var(--line); padding: 12px 12px; border-radius: 10px; outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #bdaaa2; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #ef9a9a; box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18); }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.honey { position: absolute; left: -10000px; opacity: 0; pointer-events: none; height: 0; width: 0; }
.form-note { margin: 6px 0 0; font-size: 12px; }

.q { font-style: italic; }
.q cite { display: block; margin-top: 8px; color: var(--muted); font-style: normal; font-size: 14px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li::before { content: '✔'; color: var(--brand); margin-right: 10px; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0; background: #fff; color: var(--fg); font-size: 13px; }
.site-footer .em-logo { height: 24px; }
/* Carousel */
.carousel-wrap { padding: 20px 0; background: linear-gradient(180deg, #ffffff, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.carousel { position: relative; overflow: hidden; width: 100%; user-select: none; -webkit-user-select: none; }
.carousel .track { display: flex; gap: 16px; align-items: center; will-change: transform; animation: carousel-scroll var(--carousel-speed, 40s) linear infinite; transition: none; }
.carousel .item { flex: 0 0 auto; width: clamp(140px, 18vw, 220px); aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 6px 16px rgba(198,40,40,0.12), 0 2px 6px rgba(0,0,0,0.05); border:1px solid var(--line); pointer-events: none; }
.carousel .item img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-drag: none; }
@keyframes carousel-scroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* Form Feedback Styles */
#lead-form-note, #model-form-note {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
  animation: slideIn 0.3s ease-out;
}

#lead-form-note.success, #model-form-note.success {
  background: linear-gradient(135deg, #d4f4dd 0%, #e8f5e8 100%);
  color: #0d7a2e;
  border: 1px solid #4caf50;
}

#lead-form-note.error, #model-form-note.error {
  background: linear-gradient(135deg, #ffe5e5 0%, #fff0f0 100%);
  color: #d32f2f;
  border: 1px solid #ef5350;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disabled button state */
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
