/* ============================================
   Aquaduo — Frontend Brand Styles
   Brand palette aligned with the symbol/logo SVGs.
   ============================================ */

:root {
    /* Brand-true palette (matches SVG fills) */
    --aq-navy:       #08146E;
    --aq-navy-deep:  #04094A;
    --aq-mint:       #1AFFD5;
    --aq-mint-soft:  #8FF3D9;
    --aq-lavender:   #A8B0E0;

    /* Working tokens (kept for legacy components) */
    --aq-primary:      #08146E;
    --aq-primary-dark: #04094A;
    --aq-secondary:    #08146E;
    --aq-accent:       #1AFFD5;
    --aq-text:         #0F172A;
    --aq-muted:        #64748B;
    --aq-bg:           #F6F7FB;
    --aq-white:        #FFFFFF;
}

/* ---- Base ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--aq-text);
    background: var(--aq-white);
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--aq-mint); color: var(--aq-navy); }

/* ---- Navbar (transparent over hero, dark over content) ---- */
.aq-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
    background: transparent;
    backdrop-filter: blur(0);
}
.aq-navbar.is-stuck {
    background: rgba(8, 20, 110, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(8, 20, 110, 0.12);
}
.aq-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(14px, 1.6vw, 22px) clamp(20px, 4vw, 56px);
}
.aq-logo {
    display: inline-flex;
    align-items: center;
    transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.aq-logo:hover { transform: scale(1.04); }
.aq-logo img {
    height: clamp(24px, 2.2vw, 32px);
    width: auto;
    display: block;
}
.aq-logo .aq-logo-dark { display: none; }
.aq-nav {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.6vw, 36px);
}
.aq-nav > li > a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.005em;
    position: relative;
    transition: color .25s;
}
.aq-nav > li > a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--aq-mint);
    transition: width .35s cubic-bezier(.22,1,.36,1), left .35s cubic-bezier(.22,1,.36,1);
}
.aq-nav > li > a:hover::after,
.aq-nav > li.is-active > a::after {
    width: 100%;
    left: 0;
}
.aq-nav > li > a:hover { color: var(--aq-mint); }
.aq-nav > li.is-active > a { color: var(--aq-mint); }
.aq-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--aq-mint);
    color: var(--aq-navy) !important;
    padding: 10px 20px !important;
    border-radius: 999px;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, background .25s;
    box-shadow: 0 8px 24px rgba(26, 255, 213, 0.18);
}
.aq-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(26, 255, 213, 0.32);
    background: var(--aq-mint-soft);
}
.aq-btn-cta::after { display: none !important; }

/* Burger */
.aq-burger {
    background: transparent;
    border: 0;
    width: 40px; height: 40px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}
.aq-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--aq-white);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* ---- Offcanvas ---- */
.aq-offcanvas {
    background: var(--aq-navy) !important;
    color: var(--aq-white);
    padding: 32px 28px !important;
}
.aq-offcanvas-logo { height: 28px; width: auto; margin-bottom: 36px; }
.aq-offcanvas-nav { list-style: none; padding: 0; margin: 0; }
.aq-offcanvas-nav li { margin-bottom: 6px; }
.aq-offcanvas-nav a {
    display: block;
    padding: 10px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.02em;
    transition: color .2s, transform .25s;
}
.aq-offcanvas-nav li.is-active a,
.aq-offcanvas-nav a:hover { color: var(--aq-mint); transform: translateX(4px); }
.aq-offcanvas-foot {
    margin-top: 48px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aq-mint);
    opacity: 0.6;
}

/* ---- Hero ---- */
.aq-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--aq-secondary) 0%, #1e3a5f 100%);
    position: relative;
    overflow: hidden;
}
.aq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(14,165,233,.15) 0%, transparent 60%);
}
.aq-hero-content { position: relative; z-index: 1; }
.aq-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--aq-white);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.aq-hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 540px;
    line-height: 1.6;
}
.aq-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--aq-primary);
    color: var(--aq-white) !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background .2s, transform .1s;
    text-decoration: none;
}
.aq-btn-primary:hover {
    background: var(--aq-primary-dark);
    transform: translateY(-1px);
}
.aq-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--aq-white) !important;
    padding: 11px 28px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,.3);
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color .2s, background .2s;
    text-decoration: none;
}
.aq-btn-outline:hover {
    border-color: var(--aq-white);
    background: rgba(255,255,255,.08);
}

/* ---- Section ---- */
.aq-section { padding: 80px 0; }
.aq-section-alt { background: var(--aq-bg); }
.aq-section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--aq-secondary);
    letter-spacing: -0.02em;
}
.aq-section-sub {
    color: var(--aq-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}
.aq-badge {
    display: inline-block;
    background: rgba(14,165,233,.1);
    color: var(--aq-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* ---- Cards ---- */
.aq-card {
    background: var(--aq-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.aq-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-3px);
}
.aq-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #e2e8f0;
}
.aq-card-body { padding: 20px; flex: 1; }
.aq-card-cat {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--aq-primary);
    margin-bottom: 6px;
}
.aq-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--aq-secondary);
    margin: 0 0 8px;
    line-height: 1.4;
}
.aq-card-desc {
    font-size: 0.85rem;
    color: var(--aq-muted);
    line-height: 1.55;
}
.aq-card-footer {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.aq-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--aq-secondary);
}
.aq-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--aq-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.aq-card-link:hover { color: var(--aq-primary-dark); }

/* ---- Filters subnav ---- */
.aq-filters { margin-bottom: 32px; }
.aq-filters .uk-subnav-pill > * > a {
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--aq-muted);
    padding: 6px 14px;
}
.aq-filters .uk-subnav-pill > .uk-active > a,
.aq-filters .uk-subnav-pill > * > a:hover {
    background: var(--aq-primary);
    color: var(--aq-white);
}

/* ---- Features grid ---- */
.aq-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(14,165,233,.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aq-primary);
    margin-bottom: 16px;
}
.aq-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--aq-secondary);
    margin-bottom: 8px;
}
.aq-feature-text {
    font-size: 0.875rem;
    color: var(--aq-muted);
    line-height: 1.6;
}

/* ---- Contact form ---- */
.aq-contact-card {
    background: var(--aq-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.uk-input, .uk-textarea, .uk-select {
    border-radius: 8px !important;
    border-color: #e2e8f0 !important;
    font-size: 0.9rem !important;
    transition: border-color .2s !important;
}
.uk-input:focus, .uk-textarea:focus, .uk-select:focus {
    border-color: var(--aq-primary) !important;
    box-shadow: 0 0 0 3px rgba(14,165,233,.15) !important;
    outline: none !important;
}
.uk-form-label { font-size: 0.85rem; font-weight: 500; color: var(--aq-secondary); }
.aq-submit-btn {
    background: var(--aq-primary) !important;
    color: var(--aq-white) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 28px !important;
    border: none !important;
    transition: background .2s !important;
    cursor: pointer;
}
.aq-submit-btn:hover { background: var(--aq-primary-dark) !important; }

/* ---- Flatpage content ---- */
.aq-page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--aq-text);
    max-width: 760px;
    margin: 0 auto;
}
.aq-page-content h2, .aq-page-content h3 { color: var(--aq-secondary); font-weight: 700; }

/* ---- Page header band ---- */
.aq-page-header {
    background: linear-gradient(135deg, var(--aq-navy) 0%, #112191 100%);
    padding: clamp(140px, 14vw, 200px) 0 clamp(60px, 8vw, 100px);
    color: var(--aq-white);
    position: relative;
    overflow: hidden;
}
.aq-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 30%, rgba(26, 255, 213, 0.15), transparent 60%);
}
.aq-page-header > .uk-container { position: relative; z-index: 2; }
.aq-page-header h1 {
    color: var(--aq-white);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.6rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 16px;
}
.aq-page-header p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 60ch;
}

/* ---- Footer ---- */
.aq-footer {
    background: var(--aq-navy);
    color: var(--aq-white);
    padding: clamp(60px, 9vw, 120px) 0 32px;
    position: relative;
    overflow: hidden;
}
.aq-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aq-mint), transparent);
    opacity: 0.6;
}
.aq-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
}
.aq-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    padding-bottom: clamp(40px, 6vw, 64px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 860px) {
    .aq-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .aq-footer-grid { grid-template-columns: 1fr; }
}
.aq-footer-logo { height: 32px; width: auto; margin-bottom: 20px; }
.aq-footer-tagline {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    max-width: 38ch;
}
.aq-footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aq-mint);
    margin: 0 0 16px;
}
.aq-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aq-footer-list li { margin-bottom: 10px; }
.aq-footer-list a, .aq-footer-list li {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color .2s;
}
.aq-footer-list a:hover { color: var(--aq-mint); }
.aq-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}
.aq-footer-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--aq-mint);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.aq-footer-pulse > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aq-mint);
    box-shadow: 0 0 0 0 rgba(26, 255, 213, 0.6);
    animation: aq-pulse 2s infinite;
}
@keyframes aq-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(26, 255, 213, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(26, 255, 213, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 255, 213, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .aq-footer-pulse > span { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .aq-section { padding: 56px 0; }
    .aq-contact-card { padding: 24px; }
}
