/* ============================================================================
   Landing-specific styles (header, hero, features, pricing, footer, modal)
   ============================================================================ */

/* ── Header ───────────────────────────────────────────────────────────────*/
.site-header {
    position: sticky; top: 0; z-index: 900; height: var(--header-h);
    background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.site-nav { display: flex; gap: 24px; margin-inline-start: 20px; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.site-nav a:hover { color: var(--teal-700); }
.site-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

/* Landing: hamburger hidden on desktop (inline nav shown), revealed < 860px. */
.site-header .hamburger { display: none; }

.drawer__nav { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.drawer__nav > a:not(.btn) { padding: 12px 12px; border-radius: 10px; color: var(--text); font-weight: 600; }
.drawer__nav > a:not(.btn):hover { background: var(--surface-2); }

/* ── Hero ─────────────────────────────────────────────────────────────────*/
.hero { position: relative; padding: 72px 0 60px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(16,158,142,.18), transparent 60%),
        radial-gradient(700px 360px at 10% 10%, rgba(245,166,35,.12), transparent 55%);
    z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero h1 { font-size: 36px; line-height: 1.35; letter-spacing: -.5px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--teal-500), var(--teal-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__badges { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.hero__badge { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero__badge b { color: var(--teal-600); }

/* Hero illustration: a stylized dashboard preview */
.hero__art { position: relative; }
.preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px; }
.preview-card .pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.preview-card .pc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pc-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.pc-stat { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.pc-stat span { display: block; font-size: 11px; color: var(--muted); }
.pc-stat b { font-size: 16px; }
.pc-chart { height: 130px; border-radius: 12px; background: linear-gradient(180deg, var(--teal-50), #fff); display: flex; align-items: flex-end; gap: 8px; padding: 12px; }
.pc-bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); opacity: .85; }
.float-chip {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 1;
}
.float-chip.c1 { top: -16px; inset-inline-start: -14px; color: var(--ok); }
.float-chip.c2 { bottom: 16px; inset-inline-end: -14px; color: var(--accent); }

/* ── Section scaffolding ──────────────────────────────────────────────────*/
.section { padding: 70px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__head .eyebrow { color: var(--teal-600); font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.section__head h2 { font-size: 30px; margin-top: 8px; }
.section__head p { color: var(--muted); font-size: 16px; }

/* ── Features ─────────────────────────────────────────────────────────────*/
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; transition: .2s; box-shadow: var(--shadow);
}
.feature:hover { transform: translateY(-4px); border-color: var(--teal-200); }
.feature__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); margin-bottom: 14px; }
.feature__icon .ui-icon { width: 25px; height: 25px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ── How it works ─────────────────────────────────────────────────────────*/
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { text-align: center; padding: 10px; }
.step__num { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--teal-400), var(--teal-600)); }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ── Pricing ──────────────────────────────────────────────────────────────*/
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
    background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
    padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; transition: .2s;
}
.plan:hover { transform: translateY(-5px); border-color: var(--teal-300); box-shadow: var(--shadow-lg); }
.plan__name { font-size: 19px; font-weight: 800; }
.plan__cap { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.plan__price { margin: 18px 0 4px; }
.plan__price .from { color: var(--muted); font-size: 13px; }
.plan__price .amount { font-size: 30px; font-weight: 900; color: var(--teal-700); letter-spacing: -1px; }
.plan__price .unit { color: var(--muted); font-size: 13px; }
.plan__features { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.plan__features li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: #2a3b3f; }
.plan__features li::before { content: ''; width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; background: var(--teal-500); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan .btn { margin-top: auto; }
.capacity-plan { display:grid;grid-template-columns:1fr 1fr;max-width:900px;margin:0 auto;background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);overflow:hidden; }
.capacity-plan__picker,.capacity-plan__features { padding:34px; }
.capacity-plan__picker { text-align:center;background:linear-gradient(145deg,var(--teal-50),#fff);border-inline-end:1px solid var(--line); }
.capacity-plan__features .plan__features { margin-bottom:14px; }
.unit-stepper { display:grid;grid-template-columns:64px 1fr 64px;gap:10px;direction:ltr;margin:28px 0 18px;align-items:stretch; }
.unit-stepper button { border:1.5px solid var(--teal-300);border-radius:14px;background:#fff;color:var(--teal-700);font-size:30px;font-weight:700;cursor:pointer; }
.unit-stepper button:hover { background:var(--teal-500);color:#fff; }
.unit-stepper input { min-width:0;border:2px solid var(--teal-500);border-radius:14px;background:#fff;text-align:center;font:900 36px/1 inherit;color:var(--petrol);padding:14px 6px;-moz-appearance:textfield; }
#unitCapacity { font-size:1.8rem; }
.unit-stepper input::-webkit-inner-spin-button,.unit-stepper input::-webkit-outer-spin-button { -webkit-appearance:none;margin:0; }
.capacity-price { margin:0 0 24px; }
.plan__select {
    border: 1.5px solid var(--teal-500);
    background: var(--teal-50);
    color: var(--teal-700);
    box-shadow: 0 8px 20px rgba(16,158,142,.12);
}
.plan__select:hover {
    border-color: var(--teal-600);
    background: var(--teal-500);
    color: #fff;
    box-shadow: 0 10px 24px rgba(16,158,142,.24);
}

/* ── CTA band ─────────────────────────────────────────────────────────────*/
.cta-band {
    background: linear-gradient(120deg, var(--petrol), var(--teal-700));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 20px;
    text-align: center;
}
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { color: rgba(255,255,255,.8); }

/* ── Footer ───────────────────────────────────────────────────────────────*/
.site-footer { background: var(--petrol-2); color: rgba(255,255,255,.75); padding: 40px 0; margin-top: 40px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer__links { display: flex; gap: 20px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }

/* Floating eNAMAD trust seal */
.enamad-trust-seal {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1000;
    display: block;
    width: 106px;
    padding: 4px;
    border: 1px solid rgba(13, 59, 64, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(13, 59, 64, .18);
    line-height: 0;
    transition: transform .18s ease, box-shadow .18s ease;
}
.enamad-trust-seal img {
    display: block;
    width: 96px;
    height: auto;
    aspect-ratio: 125 / 136;
    object-fit: contain;
    cursor: pointer;
}
.enamad-trust-seal:hover {
    color: inherit;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(13, 59, 64, .22);
}
.enamad-trust-seal:focus-visible {
    outline: 2px solid var(--teal-600);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .enamad-trust-seal { transition: none; }
}

/* ── Legal/contact pages ─────────────────────────────────────────────────*/
.legal-page { background: linear-gradient(180deg, var(--teal-50), transparent 260px); }
.legal-page__wrap { max-width: 920px; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.legal-card h2 { font-size: 17px; margin-top: 24px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--muted); line-height: 2; margin-bottom: 0; }
.contact-intro { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 22px; }
.contact-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr); gap: 22px; align-items: stretch; }
.contact-info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-card h2 { font-size: 20px; margin-bottom: 4px; }
.contact-info-card p { color: var(--muted); margin: 0; line-height: 1.9; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--teal-50)); color: var(--text); }
.contact-line:hover { color: var(--text); border-color: var(--teal-200); }
.contact-line__icon { width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto; display: grid; place-items: center; background: var(--teal-500); color: #fff; box-shadow: 0 8px 18px rgba(16,158,142,.22); }
.contact-line__icon .ui-icon { width: 21px; height: 21px; }
.contact-line b { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.contact-line strong {
    display: inline-block;
    line-height: 1.8;
    font-size: 15px;
}
a.contact-line span strong { direction: ltr; }
.contact-hours { border-radius: var(--radius); padding: 16px; background: var(--petrol); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.contact-hours b { color: #fff; }
.contact-hours span { color: rgba(255,255,255,.82); font-size: 14px; }
.contact-photo-card { position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--teal-50); }
.contact-photo-card::after { content: ''; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(0deg, rgba(13,59,64,.34), transparent); pointer-events: none; }
.contact-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
    .contact-intro, .contact-panel { grid-template-columns: 1fr; }
    .legal-card { padding: 22px; }
    .contact-info-card { padding: 22px; }
    .contact-photo-card { min-height: 320px; }
}

/* ── Modal ────────────────────────────────────────────────────────────────*/
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,45,49,.5); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 1100; padding: 20px; }
.modal-backdrop.open { display: flex; animation: flashIn .2s ease; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(96vw, 460px); max-height: 92vh; overflow: auto; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line-2); }
.modal__head h3 { margin: 0; font-size: 18px; }
.modal__body { padding: 22px; }
.modal__foot { padding: 18px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; }

.price-preview { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.price-preview .pp-amount { font-size: 22px; font-weight: 900; color: var(--teal-700); }

/* ── Responsive ───────────────────────────────────────────────────────────*/
@media (max-width: 1000px) {
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .site-nav, .site-header__actions .btn { display: none; }
    .site-header .hamburger { display: inline-flex; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art { order: -1; }
    .hero h1 { font-size: 32px; }
}
@media (max-width: 560px) {
    .plan-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
    .hero { padding: 44px 0 36px; }
    .section { padding: 48px 0; }
}
@media (max-width: 700px) {
    .capacity-plan { grid-template-columns:1fr; }
    .capacity-plan__picker { border-inline-end:0;border-bottom:1px solid var(--line);padding:26px 20px; }
    .capacity-plan__features { padding:26px 22px; }
}
