/* ==========================================================================
   Connect Portugal: main stylesheet
   Palette: navy (trust), Portugal green, Portugal red, white.
   Brand colours are overridden from Connect Portugal > Design in the admin.
   ========================================================================== */

:root {
    --navy: #0b2545;
    --navy-2: #123561;
    --green: #046a38;
    --red: #da291c;
    --ink: #17233a;
    --muted: #5a6478;
    --line: #dfe5ee;
    --tint: #f3f6fa;
    --white: #ffffff;
    --radius: 8px;
    --font-head: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
.ico { flex: none; vertical-align: middle; }
.screen-reader-text, .skip-link:not(:focus) {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: .82em 1.5em; border-radius: var(--radius); border: 2px solid transparent;
    font: 700 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b81f14; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e9eef6; color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }

/* Top bar ---------------------------------------------------------------- */
.topbar { background: var(--navy); color: #d6deec; font-size: .86rem; }
.topbar__in { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.topbar__spacer { flex: 1; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.topbar a.topbar__item:hover { color: #fff; text-decoration: underline; }

/* Language switcher ------------------------------------------------------ */
.lang { position: relative; z-index: 80; }
.lang__btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 4px 10px; font: 600 .84rem var(--font-body); cursor: pointer; }
.lang__btn:hover { background: rgba(255, 255, 255, .2); }
.lang__list { list-style: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(11, 37, 69, .2); padding: 6px; margin: 0; }
.lang__list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 6px; color: var(--ink); font: 600 .95rem var(--font-body); cursor: pointer; }
.lang__list button:hover { background: var(--tint); color: var(--green); }
.lang__list .is-active button { color: var(--green); background: #eef7f1; }

/* Hide Google Translate's own banner/tooltip (we use our own switcher) */
body > .skiptranslate, .goog-te-banner-frame, iframe.skiptranslate, .goog-tooltip, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#goog-gt-tt { display: none !important; }

/* Right-to-left languages (Arabic etc.) */
html.cp-rtl body { direction: rtl; text-align: right; }
.cp-rtl .lang__list { right: auto; left: 0; }
.cp-rtl .lang__list button { text-align: right; }
.cp-rtl .svc-card { border-left: 1px solid var(--line); border-right: 4px solid var(--green); }
.cp-rtl .svc-card:hover { border-left-color: var(--navy); border-right-color: var(--red); }
.cp-rtl .primary-nav .sub-menu { left: auto; right: 0; }
.cp-rtl .faq__item summary { padding: 18px 22px 18px 54px; }
.cp-rtl .faq__item summary::after { right: auto; left: 22px; }
.cp-rtl .prose ul, .cp-rtl .prose ol { padding-left: 0; padding-right: 1.3em; }
.cp-rtl .steps__item { padding: 0 0 0 22px; }
.cp-rtl .steps__item::before { left: 0; right: 44px; }
.cp-rtl .hero::before { -webkit-mask-image: linear-gradient(260deg, transparent 30%, #000 80%); mask-image: linear-gradient(260deg, transparent 30%, #000 80%); }
.cp-rtl .wa-float { right: auto; left: 20px; }
.cp-rtl .ico { transform: none; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand .custom-logo { max-height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 700 1.35rem/1.1 var(--font-head); color: var(--navy); }
.brand__tag { font-size: .78rem; color: var(--muted); margin-top: 3px; }

.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav .menu { list-style: none; display: flex; align-items: center; gap: 4px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: 6px; }
.primary-nav .menu > li > a:hover,
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-menu-ancestor > a { color: var(--navy); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.primary-nav .sub-menu {
    list-style: none; position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 14px 34px rgba(11, 37, 69, .14);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { font-weight: 500; padding: 9px 12px; }
.primary-nav .sub-menu a:hover { background: var(--tint); color: var(--green); }
.sub-toggle { display: none; }

.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

/* Hero (azulejo tile pattern is the one decorative flourish) ---------------- */
.hero {
    --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.4'%3E%3Cpath d='M48 6 90 48 48 90 6 48Z'/%3E%3Ccircle cx='48' cy='48' r='16'/%3E%3Cpath d='M48 32v32M32 48h32'/%3E%3Cpath d='M0 0a20 20 0 0 1 20 20M96 0a20 20 0 0 0-20 20M0 96a20 20 0 0 0 20-20M96 96a20 20 0 0 1-20-20'/%3E%3C/svg%3E");
    position: relative; overflow: hidden; color: #fff; background: var(--navy);
    padding: clamp(56px, 8vw, 104px) 0;
}
.hero::before {
    content: ""; position: absolute; inset: 0; background-image: var(--tile); background-size: 96px 96px;
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 80%);
            mask-image: linear-gradient(100deg, transparent 30%, #000 80%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--green) 0 40%, var(--red) 40% 100%); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero__lead { font-size: 1.15rem; color: #d3dcec; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__panel { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 22px 14px; border-top: 4px solid var(--green); }
.hero__panel-title { font: 600 1.25rem var(--font-head); color: var(--navy); margin: 0 0 8px; }
.hero__panel ul { list-style: none; }
.hero__panel li + li { border-top: 1px solid var(--line); }
.hero__panel a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 600; }
.hero__panel a > span:nth-child(2) { flex: 1; }
.hero__panel a:hover { color: var(--green); }
.hero__panel-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--tint); color: var(--navy); }

/* Page hero -------------------------------------------------------------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 5px solid var(--green); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .3em; }
.page-hero p { color: #cbd6e8; font-size: 1.1rem; max-width: 40em; margin: 0; }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 46em; margin-bottom: 32px; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__more { margin: 32px 0 0; }

/* Category cards --------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cat-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, background-color .15s; }
.cat-card:hover { border-color: var(--green); background: #fbfdfc; color: var(--ink); }
.cat-card__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 8px; background: var(--navy); color: #fff; }
.cat-card:hover .cat-card__icon { background: var(--green); }
.cat-card__body { display: flex; flex-direction: column; gap: 3px; font-size: .95rem; color: var(--muted); }
.cat-card__body strong { color: var(--navy); font-size: 1.05rem; }

/* Service cards ---------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.svc-card { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.svc-card:hover { border-color: var(--navy); border-left-color: var(--red); color: var(--ink); }
.svc-card__icon { color: var(--green); margin-bottom: 14px; }
.svc-card__title { margin-bottom: .4em; }
.svc-card__text { color: var(--muted); font-size: .97rem; flex: 1; }
.svc-card__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--navy); }
.group + .group { margin-top: 56px; }
.group__head { margin-bottom: 20px; }
.group__head h2 { margin-bottom: .2em; }
.group__head h2 a { text-decoration: none; }
.group__head p { color: var(--muted); margin: 0; }

/* Split / checklist ------------------------------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.checkcard { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section--tint .checkcard { background: #fff; }
.checkcard__title { font: 600 1.2rem var(--font-head); color: var(--navy); margin-bottom: 14px; }
.checklist { list-style: none; display: grid; gap: 12px; margin-bottom: 4px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ico { color: var(--green); margin-top: 2px; }
.checkcard .btn { margin-top: 22px; }

/* Steps ------------------------------------------------------------------ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps__item { position: relative; padding: 0 22px 0 0; }
.steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.05rem var(--font-head); margin-bottom: 16px; position: relative; z-index: 1; }
.steps__item::before { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--line); }
.steps__item:last-child::before { display: none; }
.steps__item p { color: var(--muted); font-size: .97rem; }

/* Why choose us ---------------------------------------------------------- */
.why { background: var(--navy); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.why h2 { color: #fff; margin-bottom: 26px; }
.why__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 32px; }
.why__grid li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 1.05rem; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.why__grid .ico { color: #6fd39a; margin-top: 3px; }

/* Posts ------------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 22px; }
.post-card__date { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--green); }
.post-hero-img { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Prose ------------------------------------------------------------------ */
.prose { font-size: 1.06rem; line-height: 1.75; max-width: 46em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .35em; }

/* Service detail --------------------------------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.detail__aside { position: sticky; top: 110px; }
.detail__call { text-align: center; margin: 14px 0 0; font-size: .95rem; }

/* FAQ -------------------------------------------------------------------- */
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font: 600 1.1rem var(--font-head); color: var(--navy); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-body); color: var(--green); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item[open] { border-color: var(--green); }
.faq__answer { padding: 0 22px 8px; color: var(--muted); }

/* CTA -------------------------------------------------------------------- */
.cta { background: var(--green); color: #fff; padding: 44px 0; }
.cta__in { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin-bottom: .2em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta p { margin: 0; color: #dff2e7; max-width: 38em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact ---------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__list { list-style: none; display: grid; gap: 22px; margin: 22px 0 28px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list .ico { color: var(--green); margin-top: 4px; }
.contact__list span { display: flex; flex-direction: column; }
.cp-form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.cp-form h2 { margin-bottom: .2em; font-size: 1.6rem; }
.cp-form__intro { color: var(--muted); }
.cp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cp-form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.cp-form input[type="text"], .cp-form input[type="email"], .cp-form input[type="tel"], .cp-form select, .cp-form textarea {
    width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9c3d3; border-radius: var(--radius);
}
.cp-form input:focus, .cp-form select:focus, .cp-form textarea:focus { outline: 3px solid rgba(4, 106, 56, .3); border-color: var(--green); }
.cp-form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.cp-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.cp-alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.cp-alert--ok { background: #e6f5ec; color: #0b5a2f; border: 1px solid #a9dcc0; }
.cp-alert--err { background: #fdecea; color: #9a1a10; border: 1px solid #f3b7b1; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #081c36; color: #c0cce0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer__name { font: 600 1.5rem var(--font-head); color: #fff; margin-bottom: .4em; }
.footer__title { font: 600 1.05rem var(--font-head); color: #fff; margin-bottom: 14px; }
.site-footer a { color: #c0cce0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__menu, .footer__contact, .footer__social { list-style: none; display: grid; gap: 10px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { margin-top: 3px; color: #6fd39a; }
.footer__social { grid-auto-flow: column; justify-content: start; gap: 18px; margin-top: 16px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: .87rem; color: #93a3bd; }
.footer__bottom p { margin: 0 0 6px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.wa-float:hover { background: #178a45; color: #fff; }

/* Team ------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.team-card__photo { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: var(--navy); display: grid; place-items: center; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__initials { font: 600 3.4rem var(--font-head); color: #fff; }
.team-card h3 { margin-bottom: .15em; }
.team-card__role { color: var(--green); font-weight: 700; margin-bottom: .8em; }
.team-card__bio { color: var(--muted); font-size: .96rem; }
.team-card__bio p:last-child { margin-bottom: 0; }
.team-card__link { margin: 12px 0 0; font-weight: 700; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1020px) {
    .hero__in, .split, .detail, .contact { grid-template-columns: 1fr; }
    .detail__aside { position: static; }
    .why__grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .steps__item:nth-child(2)::before { display: none; }
    .footer__grid { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: inline-flex; }
    .primary-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; max-height: calc(100vh - 120px); overflow-y: auto;
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav .menu { flex-direction: column; align-items: stretch; }
    .primary-nav .menu > li { border-bottom: 1px solid var(--line); }
    .primary-nav .menu > li > a { padding: 14px 4px; }
    .primary-nav .menu > li > a:hover, .primary-nav .menu > li.current-menu-item > a { box-shadow: none; }
    .primary-nav .menu-item-has-children > a::after { display: none; }
    .primary-nav .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; }
    .primary-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
    .primary-nav .menu-item-has-children { position: relative; }
    .sub-toggle { display: block; position: absolute; right: 0; top: 4px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
    .sub-toggle::after { content: ""; display: block; width: 8px; height: 8px; margin: auto; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
    .is-open > .sub-toggle::after { transform: rotate(-135deg); }
    .header__cta { margin-top: 16px; }
    .topbar__email { display: none; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
    .wrap { padding: 0 18px; }
    .cat-grid, .svc-grid, .post-grid { grid-template-columns: 1fr; }
    .why__grid, .cp-form__grid, .footer__grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .steps__item::before { display: none; }
    .topbar__in { gap: 14px; font-size: .8rem; }
    .topbar__item:first-child { display: none; }
    .hero__actions .btn, .cta__actions .btn { width: 100%; }
    .brand__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
