/* Webnet UAE — site stylesheet
   Palette and type are derived from the brand mark (magenta on near-black);
   tokens are documented in DESIGN-SYSTEM.md. */

:root {
    --ink-950: #120710;
    --ink-900: #1a0b15;
    --ink-850: #211019;
    --ink-800: #2a1523;
    --line:      #3a1d30;
    --line-strong: #52293f;
    --brand-300: #e564a6;
    --brand-400: #d63d87;
    --brand-500: #b1005a;
    --brand-600: #8f0054;
    --brand-900: #430529;
    --text-hi:  #f3e8f0;
    --text-mid: #c9adc0;
    --text-low: #967488;
    --danger: #ff8f8f;

    --font-display: 'Sora', 'Segoe UI', sans-serif;
    --font-text: 'Manrope', 'Segoe UI', sans-serif;

    --r-card: 14px;
    --r-ctl: 10px;
    --shell: 1180px;
    --pad-gutter: clamp(18px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--ink-950);
    color: var(--text-hi);
    font: 400 17px/1.65 var(--font-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p  { margin: 0 0 1em; }
a  { color: var(--brand-300); text-decoration: none; }
a:hover { color: var(--brand-400); }

img { max-width: 100%; height: auto; display: block; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad-gutter); }

:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */

.site-head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18, 7, 16, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.head-row {
    display: flex; align-items: center; gap: 28px;
    min-height: 76px;
}
.brand img { width: 148px; }
.head-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.head-nav a {
    color: var(--text-mid); font-weight: 500; font-size: 15px;
    padding: 10px 12px; border-radius: 8px;
}
.head-nav a:hover { color: var(--text-hi); background: var(--ink-850); }
.head-nav a[aria-current="page"] { color: var(--brand-300); }

.head-cta { flex-shrink: 0; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
    cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 11px; width: 20px; height: 2px;
    background: var(--text-hi); transition: transform .2s, top .2s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
    display: none; flex-direction: column; gap: 2px;
    padding: 8px var(--pad-gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--ink-900);
}
.mobile-nav a {
    color: var(--text-hi); font-weight: 600; font-size: 17px;
    padding: 12px 10px; border-radius: 8px;
}
.mobile-nav a:hover { background: var(--ink-850); }
.mobile-nav-cta {
    margin-top: 10px; text-align: center; color: var(--brand-300);
    border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
}
.mobile-nav.open { display: flex; }

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    font: 600 16px/1 var(--font-text);
    padding: 15px 26px;
    border-radius: var(--r-ctl);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand-500); color: #fff; }
.btn-primary:hover { background: var(--brand-400); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--text-hi); background: transparent; }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-300); }

/* ---------- hero (home) ---------- */

.hero {
    padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(177, 0, 90, .16), transparent 65%),
        var(--ink-950);
}
.hero-grid {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.kicker {
    font: 600 13px/1 var(--font-text);
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-300);
    margin: 0 0 18px;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-mid); max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-actions.center { justify-content: center; }

.hero-panel {
    margin: 0;
    border-radius: var(--r-card);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    position: relative;
}
.hero-panel::after {
    content: ""; position: absolute; inset: 0; border-radius: var(--r-card);
    background: linear-gradient(160deg, rgba(67, 5, 41, 0) 40%, rgba(67, 5, 41, .35));
    pointer-events: none;
}
.hero-panel img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- generic bands ---------- */

.band { padding: clamp(52px, 8vw, 92px) 0; }
.band-alt { background: var(--ink-900); border-block: 1px solid var(--line); }
.band-head { margin-bottom: 12px; }
.band-sub { color: var(--text-mid); max-width: 60ch; margin-bottom: 36px; }

/* proof blocks — rules, not boxes */

.proof-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 40px);
    border-top: 2px solid var(--line-strong);
    padding-top: 34px;
}
.proof-card h3 { color: var(--brand-300); font-size: 17px; }
.proof-card p { color: var(--text-mid); font-size: 15.5px; margin: 0; }

/* service cards — featured first card breaks the symmetry */

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
    background: var(--ink-850);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .15s, transform .15s;
}
.svc-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.svc-card.featured { grid-column: span 2; }
.svc-media { display: block; aspect-ratio: 16 / 8.5; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc-card:hover .svc-media img { transform: scale(1.04); }
.svc-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 a { color: var(--text-hi); }
.svc-body h3 a:hover { color: var(--brand-300); }
.svc-body p { color: var(--text-mid); font-size: 15.5px; flex: 1; }
.svc-body .more { font-weight: 600; font-size: 15px; }

/* process steps */

.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px);
    counter-reset: step;
}
.steps li { border-top: 1px solid var(--line-strong); padding-top: 22px; position: relative; }
.step-no {
    font: 700 15px/1 var(--font-display);
    color: var(--brand-400);
    display: inline-block; margin-bottom: 14px;
    padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.steps h3 { font-size: 17px; }
.steps p { color: var(--text-mid); font-size: 15.5px; margin: 0; }

/* closing call-to-action band */

.closing {
    background:
        radial-gradient(700px 300px at 20% 0%, rgba(214, 61, 135, .25), transparent 60%),
        linear-gradient(135deg, var(--brand-900), var(--ink-900) 55%);
    border-block: 1px solid var(--line-strong);
}
.closing-inner { text-align: center; max-width: 720px; }
.closing-inner p { color: var(--text-mid); font-size: 18px; }

/* ---------- inner pages ---------- */

.page-hero {
    padding: clamp(48px, 7vw, 84px) 0 clamp(32px, 4vw, 48px);
    background: radial-gradient(800px 400px at 90% -20%, rgba(177, 0, 90, .14), transparent 65%), var(--ink-950);
}
.page-media figure { margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-strong); }
.page-media { padding-bottom: 8px; }

.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.for-note { color: var(--text-mid); font-size: 18px; max-width: 58ch; }
.hand-note {
    border-left: 3px solid var(--brand-500);
    background: var(--ink-850);
    border-radius: 0 var(--r-card) var(--r-card) 0;
    padding: 22px 24px;
}
.hand-note p { margin: 0; color: var(--text-mid); }

.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lead-card {
    background: var(--ink-850);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 24px;
}
.lead-no {
    font: 700 13px/1 var(--font-display);
    color: var(--brand-400); letter-spacing: .08em;
    display: block; margin-bottom: 12px;
}
.lead-card h3 { font-size: 16.5px; }
.lead-card p { color: var(--text-mid); font-size: 15px; margin: 0; }

/* faqs */

.faq-list { max-width: 820px; }
.faq-list details {
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
}
.faq-list summary {
    cursor: pointer; list-style: none;
    font: 600 17px/1.5 var(--font-text);
    padding: 14px 34px 14px 2px;
    position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; position: absolute; right: 8px; top: 12px;
    font: 400 22px/1 var(--font-text); color: var(--brand-300);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--text-mid); margin: 0 0 18px; max-width: 68ch; }

/* about */

.about-cols { max-width: 840px; }
.about-cols .lede { margin-bottom: 1.4em; }

/* ---------- inquiry form ---------- */

.form-wrap { max-width: 640px; }
.quote-form .field { margin-bottom: 22px; }
.quote-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.quote-form .opt { color: var(--text-low); font-weight: 400; }
.quote-form input, .quote-form select, .quote-form textarea {
    width: 100%;
    background: var(--ink-900);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-ctl);
    color: var(--text-hi);
    font: 400 16px/1.5 var(--font-text);
    padding: 14px 16px;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
    border-color: var(--brand-400); outline: none;
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; margin: 6px 0 0; }
.form-alert {
    border: 1px solid var(--danger);
    background: rgba(177, 0, 90, .12);
    border-radius: var(--r-ctl);
    padding: 16px 18px; margin-bottom: 26px;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.btn-send { width: 100%; font-size: 17px; }
.btn-send[disabled] { opacity: .6; cursor: wait; }
.form-note { color: var(--text-low); font-size: 14px; margin: 14px 0 0; }

.form-done {
    background: var(--ink-900);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-card);
    padding: clamp(28px, 4vw, 44px);
}
.form-done h2 { color: var(--brand-300); }
.form-done .btn { margin-top: 10px; }

/* inquiries review table */

.inq-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.inq-table th, .inq-table td {
    text-align: left; padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.inq-table th { color: var(--text-low); font-weight: 600; white-space: nowrap; }
.inq-table .nowrap { white-space: nowrap; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--ink-900); margin-bottom: 0; }
.foot-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(40px, 6vw, 64px) var(--pad-gutter);
}
.foot-brand img { width: 132px; margin-bottom: 16px; }
.foot-brand p { color: var(--text-mid); font-size: 15px; max-width: 32ch; }
.site-foot h3 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-low); font-family: var(--font-text); }
.site-foot nav a, .site-foot div a { display: block; color: var(--text-mid); padding: 5px 0; font-size: 15.5px; }
.site-foot nav a:hover, .site-foot div a:hover { color: var(--brand-300); }
.site-foot p { color: var(--text-mid); font-size: 15.5px; }
.foot-line {
    padding-top: 0; padding-bottom: 26px;
    color: var(--text-low); font-size: 14px;
}

/* ---------- sticky mobile CTA bar ---------- */

.cta-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: none;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 7, 16, .96);
    border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(10px);
}
.cta-bar a {
    flex: 1; text-align: center;
    font: 600 15px/1 var(--font-text);
    padding: 14px 10px; border-radius: var(--r-ctl);
}
.cta-bar-quote { background: var(--brand-500); color: #fff; }
.cta-bar-quote:hover { background: var(--brand-400); color: #fff; }
.cta-bar-chat { border: 1px solid var(--line-strong); color: var(--text-hi); }
.cta-bar-chat:hover { color: var(--brand-300); border-color: var(--brand-400); }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-card.featured { grid-column: span 2; }
    .lead-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 880px) {
    .head-nav, .head-cta { display: none; }
    .nav-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-panel { max-width: 520px; }
    .two-col { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .cta-bar { display: flex; }
    body { padding-bottom: 66px; } /* keep footer clear of the fixed bar */
    .site-foot { margin-bottom: 0; }
}

@media (max-width: 640px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-card.featured { grid-column: span 1; }
    .lead-grid { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
}
