/*
Theme Name: Zait Firm
Theme URI: https://zaitfirm.com/
Author: Zait Firm
Author URI: https://zaitfirm.com/
Description: A complete SEO, guest-posting and link-building agency theme with services, publisher sites, enquiries, newsletter, account and cart flows.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: zaitfirm
Tags: custom-logo, custom-menu, featured-images, e-commerce, one-column, two-columns, accessibility-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --zait-primary: #0b6f78;
  --zait-primary-dark: #064e57;
  --zait-accent: #ff7a59;
  --zait-mint: #12b8a6;
  --zait-cyan: #67e8f9;
  --zait-ink: #071b33;
  --zait-text: #41536b;
  --zait-muted: #708197;
  --zait-cloud: #f3f8fa;
  --zait-line: #dce8ec;
  --zait-white: #ffffff;
  --zait-shadow: 0 24px 65px rgba(7, 27, 51, .12);
  --zait-radius: 20px;
  --zait-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--zait-text);
  background: #fff;
  font: 400 16px/1.75 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--zait-primary); text-decoration: none; }
a:hover { color: var(--zait-accent); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .75rem;
  color: var(--zait-ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.65rem, 6vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
p { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.25rem; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 0; padding: 12px 18px;
  top: 8px; left: 8px; z-index: 99999; color: var(--zait-ink); background: #fff;
  border-radius: 8px; box-shadow: var(--zait-shadow);
}
.container { width: min(calc(100% - 40px), var(--zait-container)); margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-muted { background: var(--zait-cloud); }
.section-dark { color: #c9d9e8; background: var(--zait-ink); }
.section-heading { max-width: 740px; margin: 0 auto 48px; text-align: center; }
.section-heading.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  color: var(--zait-primary); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 99px; background: var(--zait-accent); }
.lead { font-size: 1.12rem; color: var(--zait-muted); }
.button,
button[type="submit"],
input[type="submit"],
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border: 0; border-radius: 10px;
  color: #fff !important; background: var(--zait-primary); font-weight: 800;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 12px 24px rgba(11, 111, 120, .2);
}
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  color: #fff !important; background: var(--zait-primary-dark); transform: translateY(-2px);
}
.button-accent { background: var(--zait-accent); box-shadow: 0 12px 25px rgba(255, 122, 89, .25); }
.button-accent:hover { background: #ed5f3c; }
.button-ghost { color: var(--zait-primary) !important; background: transparent; border: 1px solid currentColor; box-shadow: none; }
.button-ghost:hover { color: #fff !important; border-color: var(--zait-primary); }
.button-sm { min-height: 42px; padding: 9px 17px; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,232,236,.85); backdrop-filter: blur(16px);
}
.home .site-header { position: absolute; width: 100%; background: transparent; border: 0; }
.home .site-header.is-scrolled { position: fixed; background: rgba(7,27,51,.96); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--zait-ink); font-size: 1.3rem; font-weight: 900; letter-spacing: -.04em; }
.home .site-header:not(.is-scrolled) .brand { color: #fff; }
.brand:hover { color: var(--zait-primary); }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--zait-mint), var(--zait-primary)); border-radius: 13px 13px 13px 4px;
  font-size: 1.25rem; box-shadow: 0 10px 24px rgba(18,184,166,.25);
}
.custom-logo { width: auto; max-height: 48px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 11px 13px; color: var(--zait-ink); font-size: .95rem; font-weight: 700; }
.home .site-header:not(.is-scrolled) .primary-nav > ul > li > a { color: #d8e7f2; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--zait-accent) !important; }
.primary-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 210px; display: block; padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px); background: #fff; border: 1px solid var(--zait-line);
  border-radius: 12px; box-shadow: var(--zait-shadow); transition: .2s ease;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { color: var(--zait-ink) !important; border-radius: 8px; }
.primary-nav .sub-menu a:hover { background: var(--zait-cloud); }
.header-cta { white-space: nowrap; }
.home .site-header:not(.is-scrolled) .header-cta { color: var(--zait-ink) !important; background: #fff; box-shadow: none; }
.cart-badge { display: inline-grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; color: #fff; background: var(--zait-accent); border-radius: 999px; font-size: .72rem; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; color: var(--zait-ink); background: #fff; border: 1px solid var(--zait-line); border-radius: 10px; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 21px; height: 2px; margin: 5px auto; background: currentColor; }

/* Hero */
.hero {
  min-height: 710px; display: flex; align-items: center; padding: 138px 0 78px; color: #cfe2ed;
  overflow: hidden; background:
    radial-gradient(circle at 8% 22%, rgba(18,184,166,.34), transparent 30%),
    radial-gradient(circle at 89% 8%, rgba(103,232,249,.16), transparent 28%),
    linear-gradient(125deg, #06182d 0%, #083e52 55%, #0b6f78 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 56px; }
.hero h1 { min-height: 2.05em; color: #fff; }
.typed-wrap { color: var(--zait-cyan); }
.typed-text::after { content: ""; display: inline-block; width: 3px; height: .86em; margin-left: 7px; vertical-align: -.05em; background: var(--zait-accent); animation: zaitBlink .8s steps(1) infinite; }
@keyframes zaitBlink { 50% { opacity: 0; } }
.hero-copy > p { max-width: 620px; font-size: 1.12rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 25px; font-size: .88rem; font-weight: 700; }
.hero-note span::before { content: "✓"; margin-right: 7px; color: var(--zait-mint); }
.hero-art { position: relative; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.32); transform: perspective(1100px) rotateY(-3deg); }
.hero-art img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.hero-stat { position: absolute; left: -24px; bottom: 30px; padding: 13px 17px; color: var(--zait-ink); background: #fff; border-radius: 12px; box-shadow: var(--zait-shadow); font-size: .85rem; font-weight: 800; }
.hero-stat strong { display: block; color: var(--zait-primary); font-size: 1.3rem; }

/* Cards and home sections */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -48px; position: relative; z-index: 4; }
.benefit-card, .service-card, .contact-card, .account-card, .content-card {
  padding: 32px; background: #fff; border: 1px solid var(--zait-line); border-radius: var(--zait-radius); box-shadow: 0 18px 50px rgba(7,27,51,.07); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.benefit-card:hover, .service-card:hover { transform: translateY(-7px); border-color: rgba(18,184,166,.5); box-shadow: var(--zait-shadow); }
.icon-box { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 22px; color: #fff; background: linear-gradient(135deg, var(--zait-primary), var(--zait-mint)); border-radius: 16px; font-size: 1.35rem; font-weight: 900; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 74px; align-items: center; }
.trust-panel { position: relative; min-height: 500px; padding: 30px; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(145deg, var(--zait-ink), var(--zait-primary)); border-radius: 30px; box-shadow: var(--zait-shadow); }
.trust-panel::before { content: ""; position: absolute; width: 330px; height: 330px; left: -80px; top: -70px; border: 55px solid rgba(103,232,249,.13); border-radius: 50%; }
.trust-panel::after { content: "↗"; position: absolute; right: 26px; top: 10px; color: rgba(255,255,255,.12); font-size: 14rem; line-height: 1; font-weight: 900; }
.trust-card { position: relative; width: 100%; padding: 28px; color: #d8e8f2; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; backdrop-filter: blur(12px); }
.trust-card h3 { color: #fff; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.metric { padding: 16px 10px; text-align: center; background: rgba(255,255,255,.08); border-radius: 12px; }
.metric strong { display: block; color: var(--zait-cyan); font-size: 1.45rem; }
.check-list { margin: 24px 0 30px; padding: 0; list-style: none; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center; color: #fff; background: var(--zait-mint); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: flex; flex-direction: column; }
.service-card p { flex: 1; }
.service-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; padding: 5px 10px; color: var(--zait-primary); background: rgba(18,184,166,.1); border-radius: 999px; font-size: .75rem; font-weight: 800; }
.price { color: var(--zait-ink); font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.price small { color: var(--zait-muted); font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.testimonial-section { overflow: hidden; background: linear-gradient(130deg, #071b33, #0a5264); }
.testimonial-section .section-heading h2, .testimonial-section .section-heading p { color: #fff; }
.testimonial-slider { position: relative; max-width: 820px; margin: auto; }
.testimonial { display: none; padding: 45px; color: #d8e8f2; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 24px; }
.testimonial.is-active { display: block; animation: zaitFade .35s ease; }
@keyframes zaitFade { from { opacity: 0; transform: translateY(8px); } }
.testimonial blockquote { margin: 0 0 24px; font-size: 1.2rem; }
.testimonial strong { display: block; color: var(--zait-cyan); }
.testimonial-nav { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.testimonial-nav button { width: 40px; height: 40px; padding: 0; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.cta-band { overflow: hidden; background: var(--zait-cloud); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.newsletter { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--zait-primary-dark), var(--zait-primary)); border-radius: 28px; }
.newsletter::after { content: "@"; position: absolute; right: 5%; top: -55px; color: rgba(255,255,255,.08); font-size: 17rem; font-weight: 900; }
.newsletter-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; align-items: center; padding: 58px; }
.newsletter h2, .newsletter p { color: #fff; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input[type="email"] { flex: 1; min-width: 0; }

/* Inner pages */
.page-hero { padding: 96px 0 72px; color: #cfe2ed; background: linear-gradient(125deg, var(--zait-ink), var(--zait-primary)); }
.page-hero h1 { color: #fff; font-size: clamp(2.35rem, 5vw, 4rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #cfe2ed; font-size: .9rem; }
.breadcrumbs a { color: var(--zait-cyan); }
.filter-bar { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 12px; margin-bottom: 26px; padding: 18px; background: var(--zait-cloud); border: 1px solid var(--zait-line); border-radius: 16px; }
.form-control,
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; color: var(--zait-ink); background: #fff; border: 1px solid #cad9df; border-radius: 9px; outline: 0;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--zait-primary); box-shadow: 0 0 0 3px rgba(18,184,166,.14); }
label { display: block; margin-bottom: 7px; color: var(--zait-ink); font-size: .9rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field.full { grid-column: 1 / -1; }
.required { color: #b62d32; }
.alert { margin-bottom: 22px; padding: 14px 17px; border-radius: 10px; font-weight: 700; }
.alert-success { color: #0d5e43; background: #e4f8ef; border: 1px solid #b8ead5; }
.alert-error { color: #8c2528; background: #fff0f0; border: 1px solid #f2c2c3; }
.honeypot { position: absolute !important; left: -9999px !important; }
.services-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; }
.services-toolbar select { width: auto; }
.pricing-card { position: relative; }
.pricing-card.is-featured { border-color: var(--zait-mint); box-shadow: 0 22px 60px rgba(18,184,166,.16); }
.featured-label { position: absolute; top: 18px; right: 18px; padding: 5px 9px; color: #fff; background: var(--zait-accent); border-radius: 999px; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.pricing-card .check-list { font-size: .9rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--zait-line); border-radius: 16px; box-shadow: 0 16px 45px rgba(7,27,51,.06); }
.sites-table, .cart-table { width: 100%; border-collapse: collapse; background: #fff; }
.sites-table th, .sites-table td, .cart-table th, .cart-table td { padding: 15px 13px; border-bottom: 1px solid var(--zait-line); text-align: left; white-space: nowrap; }
.sites-table th, .cart-table th { color: #fff; background: var(--zait-ink); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.sites-table tbody tr:hover { background: #f7fbfc; }
.sites-table td:first-child { font-weight: 800; }
.empty-state { padding: 45px 24px; text-align: center; background: var(--zait-cloud); border-radius: 16px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--zait-line); border-radius: 14px; overflow: hidden; }
.faq-question { width: 100%; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--zait-ink); text-align: left; background: transparent; border: 0; font-weight: 800; }
.faq-question::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--zait-primary); border-radius: 50%; }
.faq-question[aria-expanded="true"]::after { content: "−"; background: var(--zait-accent); }
.faq-answer { padding: 0 22px 20px; }
.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 34px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 25px; }
.contact-card span { display: block; margin-bottom: 5px; color: var(--zait-primary); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.account-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.account-card h2 { font-size: 1.55rem; }
.dashboard-grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
.dashboard-nav { padding: 20px; background: var(--zait-ink); border-radius: 16px; }
.dashboard-nav a { display: block; padding: 11px 12px; color: #dbeaf3; border-radius: 8px; font-weight: 700; }
.dashboard-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.order-card { margin-bottom: 14px; padding: 18px; border: 1px solid var(--zait-line); border-radius: 12px; }
.cart-summary { max-width: 430px; margin: 28px 0 0 auto; padding: 24px; background: var(--zait-cloud); border-radius: 14px; }
.cart-summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.cart-summary-row.total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--zait-line); color: var(--zait-ink); font-size: 1.15rem; font-weight: 900; }
.checkout-box { margin-top: 36px; padding: 30px; border: 1px solid var(--zait-line); border-radius: 16px; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--zait-container); }
.entry-content > .alignfull { max-width: none; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 12px; border: 1px solid var(--zait-line); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--zait-line); border-radius: 16px; }
.post-card-content { padding: 24px; }
.post-thumbnail img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pagination { margin-top: 42px; text-align: center; }

/* Footer */
.site-footer { color: #b8cada; background: #041426; }
.footer-main { padding: 78px 0 52px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .75fr .85fr 1.15fr; gap: 42px; }
.footer-brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #b8cada; }
.site-footer a:hover { color: var(--zait-cyan); }
.social-links { display: flex; gap: 8px; margin-top: 20px; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border-radius: 10px; font-size: .78rem; font-weight: 900; }
.footer-contact li { padding-left: 0; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: #fff; background: var(--zait-accent); border: 0; border-radius: 12px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; box-shadow: 0 12px 28px rgba(255,122,89,.3); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* WooCommerce */
.woocommerce .woocommerce-error, .woocommerce .woocommerce-info, .woocommerce .woocommerce-message { border-top-color: var(--zait-primary); background: var(--zait-cloud); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--zait-primary); }
.woocommerce ul.products li.product { padding: 18px; border: 1px solid var(--zait-line); border-radius: 14px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { padding: 11px 14px; border: 1px solid #cad9df; border-radius: 9px; }

@media (max-width: 1024px) {
  .primary-nav a { padding-inline: 9px; }
  .header-cta { display: none; }
  .hero-grid, .about-grid { gap: 42px; }
  .service-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  .section { padding: 78px 0; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 86px 20px auto; display: none; padding: 14px; background: #fff; border: 1px solid var(--zait-line); border-radius: 16px; box-shadow: var(--zait-shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a, .home .site-header:not(.is-scrolled) .primary-nav > ul > li > a { color: var(--zait-ink); }
  .primary-nav .sub-menu { position: static; width: auto; display: block; padding: 0 0 0 15px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; }
  .hero { min-height: auto; padding-top: 132px; }
  .hero-grid, .about-grid, .newsletter-inner, .contact-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .hero-art { transform: none; }
  .hero-stat { left: 15px; }
  .benefit-grid { grid-template-columns: 1fr; margin-top: 0; padding-top: 28px; }
  .metric-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { padding: 38px 28px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--zait-container)); }
  .header-inner { min-height: 76px; }
  .primary-nav { inset: 76px 14px auto; }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { padding: 118px 0 62px; }
  .hero h1 { min-height: 2.45em; }
  .service-grid, .post-grid, .form-grid, .account-layout, .filter-bar, .footer-grid { grid-template-columns: 1fr; }
  .service-card, .benefit-card, .contact-card, .account-card, .content-card { padding: 24px; }
  .testimonial { padding: 30px 22px; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom .container { display: block; text-align: center; }
  .services-toolbar { align-items: stretch; flex-direction: column; }
  .services-toolbar select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
