﻿/* Paghadal Technology website. All colours come from the company logo (images/logos):
   navy #0b3550 ("PAGHADAL" and the P), orange #d97706 ("TECHNOLOGY" and the T), light blue #e6f0f6 (the logo tile).
   60% white and soft greys, 30% logo navy (header, links, icons, buttons), 10% logo orange
   (eyebrows, highlights and the main call-to-action buttons). Light theme, no dark sections. */
:root {
    --navy: #0b3550;          /* logo navy: buttons, links, icons, active menu */
    --navy-deep: #072339;
    --navy-soft: #e6f0f6;     /* logo tile: soft backgrounds */
    --accent: #d97706;        /* logo orange: eyebrows, hero highlight */
    --accent-hover: #b86305;
    --accent-soft: #fdf0e0;
    --accent-light: #f59e2c;  /* orange on navy */
    --cta: #d97706;           /* logo orange: main call to action */
    --cta-hover: #b86305;
    --cta-text: #ffffff;
    --tick: #0b3550;          /* ticks and success */
    --text: #16202b;
    --muted: #5a6573;
    --border: #e3e8ee;
    --tint: #f6f8fb;
    --white: #ffffff;
    --danger: #b91c1c;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
h2, .h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
h3, .h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 64ch; }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--navy); color: var(--white); border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border: 1.5px solid transparent; border-radius: 10px;
    font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); color: var(--white); }
.btn-accent { background: var(--cta); color: var(--cta-text); }
.btn-accent:hover { background: var(--cta-hover); color: var(--cta-text); }
.btn-ghost { border-color: var(--border); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline-light { border-color: #d3dae3; color: var(--navy); background: var(--white); }
.btn-outline-light:hover { border-color: var(--navy); background: var(--white); color: var(--navy); }
.btn-danger { border-color: #fecaca; color: var(--danger); background: var(--white); }
.btn-danger:hover { border-color: var(--danger); color: var(--white); background: var(--danger); }
.btn:disabled { opacity: .7; cursor: wait; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }
/* the company logo (images/logos): the PT mark on its light tile, "PAGHADAL" in navy and "TECHNOLOGY" in orange,
   in the logo's own bold sans-serif. Same in the header, footer and admin. */
.brand, .site-footer a.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand:hover, .site-footer a.brand:hover { color: var(--navy); }
/* the company logo file as it is (images/logos/Logo_Without_BG.png) */
.brand img { display: block; width: auto; height: 44px; flex: none; }
.brand-label { padding-left: 12px; border-left: 1px solid var(--border); font-size: .95rem; font-weight: 700; color: var(--muted); }
.site-nav { display: flex; align-items: center; flex: 1; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 12px; padding: 0; list-style: none; }
.nav-links > li > a { display: block; min-width: 44px; text-align: center; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--text); text-decoration: none; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--navy); background: var(--navy-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.has-menu { position: relative; }
.nav-menu {
    position: absolute; top: calc(100% + 8px); left: -12px; min-width: 250px;
    display: grid; gap: 2px; padding: 8px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-menu:hover .nav-menu, .has-menu:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: .93rem; font-weight: 600; white-space: nowrap; color: var(--text); text-decoration: none; }
.nav-menu a:hover { color: var(--navy); background: var(--tint); }
.nav-menu a.active { color: var(--navy); background: var(--navy-soft); }

.nav-toggle { display: none; margin-left: auto; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px 0; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--text);
    background: radial-gradient(800px 400px at 85% 0%, var(--navy-soft), transparent 70%), linear-gradient(180deg, #f2f7fa, #ffffff);
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.hero-center { position: relative; max-width: 940px; padding-block: 112px 120px; text-align: center; }
.hero-center .lead { margin-inline: auto; max-width: 720px; }
.hero-center .hero-points { justify-content: center; }
.hero h1 { color: var(--text); font-size: clamp(2.2rem, 5vw, 3.75rem); letter-spacing: -.03em; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: var(--muted); font-size: 1.15rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--text); background: var(--white); }
.hero-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }
.eyebrow { margin-bottom: 12px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.center-actions { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; font-size: .92rem; font-weight: 600; color: var(--text); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 18px; height: 18px; color: var(--tick); }

/* logo strip under the hero */
.tech-strip { padding-block: 26px; border-bottom: 1px solid var(--border); background: var(--white); }
.tech-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.tech-strip p { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tech-strip ul { display: flex; flex: 1 1 520px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 22px; margin: 0; padding: 0; list-style: none; }
.tech-strip img { display: block; width: 34px; height: 34px; filter: grayscale(1); opacity: .6; transition: filter .2s ease, opacity .2s ease; }
.tech-strip li:hover img { filter: none; opacity: 1; }

/* ---------- sections ---------- */
.section { padding-block: 92px; }
.section-tight { padding-block: 48px 72px; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.center-head { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head .eyebrow { font-size: .8rem; color: var(--accent); }
.section-link { margin: 28px 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.page-head { padding-block: 40px 8px; background: linear-gradient(180deg, var(--tint), var(--white)); }

/* ---------- cards: one card and one icon style for the whole site ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-stack { display: grid; gap: 20px; }
.card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card h3 { margin: 18px 0 8px; }
.card h3:first-child { margin-top: 0; }
.card p { flex: 1; margin: 0; color: var(--muted); font-size: .95rem; }
.card-link:hover { border-color: #cdd6e0; box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.card-icon { display: inline-flex; flex: 0 0 auto; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; color: var(--navy); background: var(--navy-soft); }
.card-icon svg { width: 22px; height: 22px; }
.card-tag { align-self: flex-start; margin: 18px 0 -10px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .9rem; font-weight: 700; color: var(--navy); }
.card-more svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card-link:hover .card-more svg { transform: translateX(3px); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split-top { align-items: start; }
.check-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 10px; }
.check-list svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--tick); }
.check-columns { grid-template-columns: 1fr 1fr; }

/* services overview: one block per service (intro on the left, what's included on the right) */
.service-blocks { display: grid; gap: 24px; }
.service-block { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; padding: 36px; }
.service-block h2 { margin: 18px 0 10px; font-size: 1.6rem; }
.service-block-main p { margin-bottom: 20px; color: var(--muted); }
.service-block-list { padding-left: 40px; border-left: 1px solid var(--border); }
.service-block-list h3 { margin: 6px 0 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.service-block-list .check-list { margin-top: 16px; gap: 12px; font-weight: 600; }

/* small technology logos (services overview) */
.mini-logos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.mini-logos li { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 9px; background: var(--white); }
.mini-logos img { width: 20px; height: 20px; }

/* technology stack on a service page: category and items, as a table */
.stack-table { margin: 20px 0 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.stack-table div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--border); }
.stack-table div:first-child { border-top: 0; }
.stack-table dt { font-weight: 700; color: var(--navy); }
.stack-table dd { margin: 0; color: #3a4654; }

/* home FAQ: heading on the left, questions on the right */
.faq-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-split .section-head { margin-bottom: 0; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* prose (about, legal) */
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3a4654; }
.steps { display: grid; gap: 16px; margin-top: 16px; }
.step { display: flex; gap: 14px; }
.step > span { flex: 0 0 auto; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; color: var(--white); background: var(--navy); }
.step h3 { margin-bottom: 2px; }
.step p { margin: 0; color: var(--muted); }
.steps-compact { gap: 12px; margin: 14px 0 16px; }
.steps-compact .step > span { width: 28px; height: 28px; font-size: .85rem; }

/* CTA band */
.cta-band { color: var(--text); background: var(--tint); border-top: 1px solid var(--border); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }
.cta-band h2 { color: var(--text); }
.cta-band p { margin: 0; color: var(--muted); max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- forms ---------- */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.form-card { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 700; }
.req { color: var(--accent); }
.field input, .field textarea, .field select {
    width: 100%; padding: 11px 13px; border: 1.5px solid #d3dae3; border-radius: 10px;
    font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; padding-right: 34px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.field textarea { resize: vertical; min-height: 110px; }
.phone-row { position: relative; display: flex; gap: 8px; min-width: 0; }
.phone-row input { flex: 1 1 auto; min-width: 0; }
.phone-country {
    flex: 0 0 8.5rem; width: 8.5rem; min-width: 0; padding: 11px 8px; border: 1.5px solid #d3dae3; border-radius: 10px;
    font: inherit; font-size: .95rem; color: var(--text); background: var(--white); text-overflow: ellipsis;
}
/* the searchable country list (js/enquiry.js) in place of the plain list */
.cc-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.cc-picker { flex: 0 0 7.25rem; min-width: 0; }
.cc-button {
    width: 100%; height: 100%; padding: 11px 26px 11px 12px; border: 1.5px solid #d3dae3; border-radius: 10px;
    font: inherit; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--text); text-align: left; cursor: pointer;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-panel {
    position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(20rem, 100%);
    background: var(--white); border: 1.5px solid #d3dae3; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); overflow: hidden;
}
.field .cc-search { border: 0; border-bottom: 1.5px solid #e3e8ee; border-radius: 0; padding: 11px 13px; font-size: .95rem; }
.field .cc-search:focus { box-shadow: none; border-color: #e3e8ee; }
.cc-list { list-style: none; margin: 0; padding: 4px; max-height: 15rem; overflow-y: auto; }
.cc-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .93rem; }
.cc-item.active, .cc-item:hover { background: var(--navy-soft); }
.cc-panel[hidden], .cc-item[hidden], .cc-empty[hidden] { display: none; }
.cc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-dial { color: #6b7685; font-variant-numeric: tabular-nums; }
.cc-empty { margin: 0; padding: 12px 14px; font-size: .9rem; color: #6b7685; }
.field input:focus, .field textarea:focus, .field select:focus, .phone-country:focus, .cc-button:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 53, 80, .15); }
.has-error input, .has-error textarea, .has-error .phone-country, .has-error .cc-button { border-color: #dc2626; }
.has-error .cc-search { border-color: #e3e8ee; }
.field-error { font-size: .85rem; color: var(--danger); }
.field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 10px; color: #991b1b; background: #fef2f2; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contact-card:hover { border-color: var(--navy); color: var(--text); }
.contact-card small { display: block; font-size: .8rem; color: var(--muted); }
.contact-card b { font-size: 1.05rem; }
.contact-card .contact-address { font-size: .95rem; font-weight: 600; line-height: 1.45; }
.contact-card-split { gap: 0; padding: 0 0 0 18px; }
.contact-card-split:hover { border-color: var(--border); }
.contact-card-main { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; padding: 18px 18px 18px 14px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.contact-card-main:hover { color: var(--text); }
.contact-card-split:has(.contact-card-main:hover) { border-color: var(--navy); }
.contact-wa { display: inline-flex; flex: 0 0 auto; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: #25d366; }
.contact-wa:hover, .contact-wa:focus-visible { color: #fff; background: #1da851; }
.contact-wa svg { width: 24px; height: 24px; }
.contact-note { padding: 22px; border-radius: var(--radius); background: var(--tint); }
.section-tint .contact-note { background: var(--white); border: 1px solid var(--border); }
.contact-note p { color: var(--muted); }
.contact-note .link-arrow { padding: 6px 0; }

.thank-you { padding-block: 96px; }
.thank-icon { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; color: var(--white); background: var(--tick); }
.thank-icon svg { width: 36px; height: 36px; }
.thank-you .lead { margin-inline: auto; }
.error-code { margin: 0 0 6px; font-size: 3.5rem; font-weight: 800; color: var(--accent); }

/* ---------- FAQ: search, topic tabs, groups ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-search { position: relative; max-width: 620px; margin-top: 26px; }
.faq-search input {
    width: 100%; padding: 15px 48px; border: 1.5px solid #d3dae3; border-radius: 14px;
    font: inherit; font-size: 1.05rem; color: var(--text); background: var(--white); box-shadow: var(--shadow);
}
.faq-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 53, 80, .12); }
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-search-icon { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); display: inline-flex; color: var(--muted); }
.faq-search-clear { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; font-size: 1.4rem; line-height: 1; color: var(--muted); background: var(--tint); cursor: pointer; }
.faq-search-clear:hover { color: var(--text); }
.faq-status { min-height: 1.5em; margin: 10px 0 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.faq-head { padding-bottom: 0; }

.faq-layout { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
.faq-tabs { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.faq-tab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .93rem; font-weight: 600; color: var(--text); text-decoration: none; }
.faq-tab span:not(.faq-tab-icon) { flex: 1; }
.faq-tab b { min-width: 26px; padding: 1px 7px; border-radius: 999px; font-size: .75rem; text-align: center; color: var(--muted); background: var(--tint); }
.faq-tab-icon { display: inline-flex; color: var(--accent); }
.faq-tab-icon svg { width: 18px; height: 18px; }
.faq-tab:hover { color: var(--navy); background: var(--tint); }
.faq-tab.active { color: var(--white); background: var(--navy); }
.faq-tab.active b { color: var(--navy); background: var(--white); }
.faq-tab.active .faq-tab-icon { color: var(--accent-light); }
.faq-tab.dimmed { opacity: .55; }
.faq-body { display: grid; gap: 40px; min-width: 0; }
.faq-group { scroll-margin-top: 90px; }
.faq-group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.35rem; }
.faq-group-title .card-icon { width: 40px; height: 40px; border-radius: 11px; }
.faq-group-title .card-icon svg { width: 20px; height: 20px; }
.faq-item mark { padding: 0 2px; border-radius: 3px; color: inherit; background: var(--accent-soft); }
.faq-empty { padding: 32px; border: 2px dashed #d3dae3; border-radius: var(--radius); text-align: center; background: var(--tint); }
.faq-empty p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; gap: 24px; }
    .faq-tabs {
        position: sticky; top: 70px; z-index: 5; flex-direction: row; gap: 8px; margin-inline: -20px; padding: 10px 20px;
        overflow-x: auto; scrollbar-width: none; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border);
    }
    .faq-tabs::-webkit-scrollbar { display: none; }
    .faq-tab { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
    .faq-tab.active { border-color: var(--navy); }
    .faq-tab-icon { display: none; }
    .faq-group { scroll-margin-top: 140px; }
}

/* ---------- footer ---------- */
.site-footer { color: var(--muted); background: var(--tint); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .8fr 1.3fr; gap: 32px; padding-block: 56px 32px; }
.footer-brand p { margin-top: 14px; font-size: .92rem; max-width: 40ch; }
/* social links: one style for all — a white round button with a light border and the site's logo in its own
   colour; on hover the button fills with that colour and the logo turns white */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.site-footer .footer-social a {
    --brand: var(--text);
    display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%; color: var(--brand); background: var(--white);
    transition: background .15s, border-color .15s, color .15s;
}
.site-footer .footer-social a:hover { color: var(--white); background: var(--brand); border-color: var(--brand); }
.footer-social svg { width: 18px; height: 18px; }
.site-footer .footer-social a.footer-wa { --brand: #25d366; }
.site-footer .footer-social a.footer-wa svg { width: 20px; height: 20px; }
.site-footer .footer-social a.social-linkedin { --brand: #0a66c2; }
.site-footer .footer-social a.social-instagram { --brand: #e1306c; }
.site-footer .footer-social a.social-facebook { --brand: #1877f2; }
.site-footer .footer-social a.social-x { --brand: #000000; }
.site-footer .footer-social a.social-youtube { --brand: #ff0000; }
.footer-title { margin-bottom: 14px; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .92rem; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--navy); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; color: var(--navy); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px; border-top: 1px solid var(--border); font-size: .85rem; }
.footer-bottom a { margin-left: 16px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .nav-actions .btn-ghost { display: none; }
}

/* grid children may shrink below their content */
.split > *, .form-layout > *, .faq-layout > *, .faq-split > * { min-width: 0; }

@media (max-width: 1024px) {
    .split, .faq-split { grid-template-columns: minmax(0, 1fr); }
    .hero-center { padding-block: 72px 80px; }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .service-block { grid-template-columns: 1fr; gap: 28px; }
    .service-block-list { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: 70px 0 auto 0; z-index: 49;
        flex-direction: column; align-items: stretch; gap: 16px;
        max-height: calc(100vh - 70px); overflow-y: auto; padding: 16px 20px 24px;
        background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        display: none;
    }
    .nav-open .site-nav { display: flex; }
    .nav-links { flex-direction: column; align-items: stretch; margin: 0; }
    /* phone menu stays short: Services opens the services page, which lists every service */
    .nav-menu { display: none; }
    .nav-links > li > a { padding: 12px; font-size: 1rem; }
    .nav-actions { flex-direction: column; align-items: stretch; }
    .nav-actions .btn-ghost { display: inline-flex; }
    .form-layout { grid-template-columns: 1fr; }
    /* on a phone the form comes first; the contact details follow it */
    .form-layout > .form-card { order: -1; }
}

@media (max-width: 600px) {
    .section { padding-block: 56px; }
    .section-tight { padding-block: 28px 56px; }
    .page-head { padding-top: 28px; }
    .card-grid-3, .card-grid-4, .check-columns { grid-template-columns: 1fr; }
    .card { padding: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 20px; }
    .contact-card b { font-size: .95rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    /* footer links: a finger-sized tap area on phones */
    .site-footer ul { gap: 0; }
    .site-footer ul a { display: inline-block; padding: 9px 0; }
    .footer-contact svg { margin-top: 12px; }
    .footer-bottom a { display: inline-block; margin: 0 16px 0 0; padding: 9px 0; }
    .hero-center { padding-block: 56px 64px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .tech-strip ul { justify-content: flex-start; }
    .service-block { padding: 22px; }
    .stack-table div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
