/*
Theme Name: Ventilation Tools Theme
Author: Ylliterm
Description: Custom theme for ventilation and HVAC equipment.
Version: 2.0
Text Domain: ventilation-theme
*/

/* ===========================================
   TABLE OF CONTENTS
   1.  Variables & Reset
   2.  Typography & Base
   3.  Buttons
   4.  Header & Navigation
   5.  Mobile Navigation
   6.  Language Switcher
   7.  Breadcrumb
   8.  Hero – Homepage
   9.  Archive Grid & Tool Cards
   10. Category Archive (Taxonomy)
   11. Sidebar Widgets
   12. Single Product Page
   13. Technical Specifications Table
   14. Page Template (Generic)
   15. About Page
   16. Contact Page
   17. Footer
   18. Utilities
   19. Responsive – Tablet (≤ 960px)
   20. Responsive – Mobile (≤ 640px)
=========================================== */

/* ===========================================
   1. VARIABLES & RESET
=========================================== */
:root {
    --blue-dark:   #53a7b1;
    --blue:        #53a7b1;
    --blue-light:  #53a7b1;
    --blue-hover:  #53a7b1;
    --text:        #2c2c2c;
    --text-muted:  #666;
    --border:      #dde3ed;
    --bg:          #f5f7fb;
    --bg-white:    #ffffff;
    --footer-bg:   #32646a;
    --footer-text: #b0b8c8;
    --radius:      8px;
    --shadow:      0 4px 16px rgba(0,0,0,0.08);
    --transition:  0.22s ease;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

a { text-decoration: none; color: inherit; }
a:focus-visible { outline: 3px solid var(--blue-hover); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================================
   2. TYPOGRAPHY
=========================================== */
h1, h2, h3, h4, h5 {
    line-height: 1.25;
    color: var(--text);
    font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-muted); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ===========================================
   3. BUTTONS
=========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    text-align: center;
}
.btn--primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    transform: translateY(-1px);
}
.btn--outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn--outline:hover {
    background: var(--blue);
    color: #fff;
}
.btn--outline-light {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn--outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}
.btn--full { width: 100%; }
.btn--submit { width: 100%; padding: 14px; font-size: 1rem; }

/* ===========================================
   4. HEADER & NAVIGATION
=========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.logo img { height: 74px; width: auto; }

/* Nav wrapper — houses nav + lang switcher */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Navigation */
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav > ul > li > a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a {
    color: var(--blue);
    background: rgba(0,86,179,0.07);
}

/* ===========================================
   5. MOBILE NAVIGATION
=========================================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Animated X state */
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================
   6. LANGUAGE SWITCHER
=========================================== */
.lang-switcher ul,
.footer-lang-switcher ul {
    display: flex;
    align-items: center;
    gap: 2px;
}
.lang-switcher .lang-item a,
.footer-lang-switcher .lang-item a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
}
.lang-switcher .lang-item a:hover,
.lang-switcher .lang-item.current-lang a {
    color: var(--blue);
    background: rgba(0,86,179,0.07);
}
.lang-switcher .lang-item img { width: 18px; height: auto; border-radius: 2px; }

/* Footer lang switcher */
.footer-lang-switcher .lang-item a { color: var(--footer-text); }
.footer-lang-switcher .lang-item a:hover,
.footer-lang-switcher .lang-item.current-lang a { color: #fff; background: rgba(255,255,255,0.1); }

/* ===========================================
   7. BREADCRUMB
=========================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ===========================================
   8. HERO – HOMEPAGE
=========================================== */
.hero-categories {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 560px;
}
.hero-box {
    width: 25%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background var(--transition);
    border-right: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.hero-box:nth-child(1) { background: #53a7b1; }
.hero-box:nth-child(2) { background: #3f7f86; }
.hero-box:nth-child(3) { background: #32646a; }
.hero-box:nth-child(4) { background: rgb(37, 74, 79); }

.hero-box--empty { background: #555 !important; cursor: default; pointer-events: none; }
.hero-box span {
    position: relative;
    z-index: 1;
    padding: 10px 16px;
    background: rgba(0,0,0,0.18);
    border-radius: 6px;
}

.hero-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--blue-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-box:hover::after {
    opacity: 0.5;
}

/* Keep the text above the overlay */
.hero-box span {
    position: relative;
    z-index: 1;
}

/* Filler content section */
.filler-content { padding: 64px 0; background: var(--bg-white); }
.filler-content h2 { margin-bottom: 16px; color: var(--text); }

/* ===========================================
   9. ARCHIVE GRID & TOOL CARDS
=========================================== */
.archive-header {
    padding: 52px 0 40px;
    text-align: center;
    background: var(--blue-dark);
    color: #fff;
    margin-bottom: 48px;
}
.archive-header h1 { color: #fff; }
.archive-header p { color: rgba(255,255,255,0.75); margin-top: 8px; }

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 64px;
}

/* Card */
.tool-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--text);
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.tool-image {
    height: 220px;
    overflow: hidden;
    background: #e8ecf2;
    flex-shrink: 0;
}
.tool-image img {
    width: 90%;
    height: 90%;
    margin: 3% auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}
.tool-card:hover .tool-image img { transform: scale(1.04); }
.tool-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dde3ee 0%, #c8d0e0 100%);
}
.tool-details { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tool-details h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tool-excerpt { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin-bottom: 14px; }
.tool-excerpt p { margin: 0; font-size: inherit; }

/* "View Details" CTA inside card */
.tool-cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    margin-top: auto;
    transition: gap var(--transition);
}
.tool-card:hover .tool-cta { text-decoration: underline; }

/* ===========================================
   10. CATEGORY ARCHIVE (TAXONOMY)
=========================================== */
.cat-hero {
    background: var(--blue-dark);
    color: #fff;
    padding: 60px 0 48px;
    margin-bottom: 0;
}
.cat-hero h1 { color: #fff; margin-bottom: 12px; }
.cat-hero-desc { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 10px; }
.cat-hero-count { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.cat-hero-count strong { color: rgba(255,255,255,0.9); }

.cat-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 64px;
    align-items: start;
}

.cat-main { min-width: 0; }

/* Override grid for cat archive — 2 cols since sidebar takes space */
.tool-grid--cat { grid-template-columns: repeat(2, 1fr); }

.cat-empty {
    text-align: center;
    padding: 64px 24px;
}
.cat-empty p { margin-bottom: 24px; font-size: 1.05rem; }

/* ===========================================
   11. SIDEBAR WIDGETS
=========================================== */
.cat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.sidebar-widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a {
    font-size: 0.9rem;
    color: var(--text);
    transition: color var(--transition);
}
.sidebar-cat-list a:hover { color: var(--blue); }
.sidebar-cat-list li.is-active a {
    color: var(--blue);
    font-weight: 600;
}
.cat-count {
    font-size: 0.8rem;
    background: var(--bg);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 2px 8px;
    flex-shrink: 0;
}

.sidebar-widget--cta { background: var(--blue-dark); border-color: var(--blue-dark); }
.sidebar-widget--cta .sidebar-widget-title { color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.15); }
.sidebar-widget--cta p { color: rgba(255,255,255,0.8); margin-bottom: 16px; }

/* ===========================================
   12. SINGLE PRODUCT PAGE
=========================================== */
.single-tool-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--blue-dark);
}
.single-tool-hero.no-image { min-height: 220px; }

.single-tool-hero-bg {
    position: absolute;
    inset: 0;
}
.single-tool-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.45;
}
.single-tool-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 48px 0 36px;
    background: linear-gradient(to top, rgba(0,20,60,0.85) 0%, rgba(0,20,60,0) 100%);
}
.single-tool-hero-overlay h1 {
    color: #fff;
    margin-bottom: 0;
}

.single-tool-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 64px;
    align-items: start;
}

.single-tool-description {
    font-size: 1rem;
    line-height: 1.7;
}
.single-tool-description p { color: var(--text); margin-bottom: 1.2em; }
.single-tool-description h2,
.single-tool-description h3 { margin: 1.5em 0 0.6em; }
.single-tool-description ul,
.single-tool-description ol { margin: 0.8em 0 0.8em 1.4em; }
.single-tool-description li { margin-bottom: 0.4em; color: var(--text); }
.single-tool-description img { border-radius: var(--radius); margin: 1.5em 0; }

.single-tool-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }

/* ===========================================
   13. TECHNICAL SPECIFICATIONS TABLE
=========================================== */
.specs-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.specs-box-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.specs-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.specs-table tbody tr:last-child { border-bottom: none; }
.specs-table tbody tr:hover { background: var(--bg); }
.specs-table th {
    padding: 10px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    width: 45%;
    vertical-align: top;
}
.specs-table td {
    padding: 10px 12px;
    color: var(--text-muted);
    vertical-align: top;
}
.specs-unit {
    font-size: 0.8rem;
    color: #999;
    padding-left: 4px !important;
    width: 60px;
}

.specs-box--category .sidebar-cat-list { padding: 12px 20px; }
.specs-box--category .sidebar-cat-list li { border-bottom-color: var(--border); }

.specs-box--cta {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    padding: 24px;
    text-align: center;
}
.specs-box--cta p { color: rgba(255,255,255,0.8); margin-bottom: 16px; }

/* Full-width specs table (below product description) */
.specs-full-wrap {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 48px 0 64px;
    margin-top: 48px;
}
.specs-full-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text);
}
.specs-table-full {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.95rem;
}
.specs-table-full thead{
    background-color: var(--blue-dark);
}
.specs-table-full thead tr th{
    color: rgb(255, 255, 255);
}
.specs-table-full tbody tr {
    border-bottom: 1px solid var(--border);
}
.specs-table-full tbody tr:last-child {
    border-bottom: none;
}
.specs-table-full tbody tr:nth-child(odd) {
    background: var(--bg);
}
.specs-table-full tbody tr:hover {
    background: rgba(0,86,179,0.04);
}
.specs-table-full th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    width: 35%;
    border-right: 1px solid var(--border);
}
.specs-table-full td {
    padding: 14px 20px;
    color: var(--text-muted);
}
.specs-table-full__unit {
    color: #999;
    font-size: 0.85rem;
    width: 100px;
    border-left: 1px solid var(--border);
    text-align: left;
}

/* ===========================================
   14. PAGE TEMPLATE (GENERIC)
=========================================== */
.page-hero {
    background: var(--blue-dark);
    color: #fff;
    padding: 56px 0 44px;
    margin-bottom: 48px;
}
.page-hero h1 { color: #fff; }
.page-hero p  { color: rgba(255,255,255,0.75); margin-top: 10px; font-size: 1.05rem; }

.page-content {
    padding-bottom: 64px;
}
.entry-content p,
.entry-content li { color: var(--text); }
.entry-content h2, .entry-content h3 { margin: 1.5em 0 0.6em; }

/* ===========================================
   15. ABOUT PAGE
=========================================== */
.about-intro {
    /* padding: 56px 0 48px; */
    /* max-width: 820px; */
    margin: 0 auto;
}
.about-intro .entry-content { font-size: 1.05rem; }

.about-intro h2{
    text-align: center;
}

.about-values {
    padding: 64px 0;
    text-align: center;
}
.about-values > h2 { margin-bottom: 40px; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}
.value-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,86,179,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--blue);
}
.value-card h3 { margin-bottom: 10px; }
.value-card p  { font-size: 0.9rem; }

.about-cta-banner {
    background: var(--blue-dark);
    border-radius: var(--radius);
    margin: 0 0 64px;
    padding: 56px 40px;
    text-align: center;
}
.about-cta-inner h2 { color: #fff; margin-bottom: 12px; }
.about-cta-inner p  { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.about-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===========================================
   16. CONTACT PAGE
=========================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    padding-bottom: 64px;
    align-items: start;
}

/* Form */
.contact-form-col {}

.form-notice {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    font-size: 0.95rem;
}
.form-notice strong { display: block; margin-bottom: 4px; }
.form-notice--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-notice--error   { background: #fbe9e7; color: #c62828; border: 1px solid #ef9a9a; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.required { color: #c62828; }
.form-group input, .form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,86,179,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Contact Info Sidebar */
.contact-info-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.contact-info-box h3 { margin-bottom: 24px; }
.contact-info-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item svg {
    flex-shrink: 0;
    color: var(--blue);
    margin-top: 4px;
}
.contact-info-item strong { display: block; font-size: 0.85rem; margin-bottom: 2px; color: var(--text); }
.contact-info-item p { font-size: 0.9rem; margin: 0; }
.contact-info-item a { color: var(--blue); }
.contact-info-item a:hover { text-decoration: underline; }

/* ===========================================
   17. FOOTER
=========================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 0;
}

.footer-top { padding: 64px 0 48px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo a {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 0.9rem;
    color: var(--footer-text);
    line-height: 1.5;
    margin: 0;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--footer-text);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }

/* Contact list with icons */
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--footer-text);
    line-height: 1.5;
}
.footer-contact-list li svg { flex-shrink: 0; color: var(--blue-light); margin-top: 3px; }
.footer-contact-list a { color: var(--footer-text); }
.footer-contact-list a:hover { color: #fff; }

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-bottom p {
    font-size: 0.85rem;
    color: var(--footer-text);
    margin: 0;
}

/* ===========================================
   18. UTILITIES
=========================================== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===========================================
   19. RESPONSIVE – TABLET (≤ 960px)
=========================================== */
@media (max-width: 960px) {

    /* Header */
    .nav-toggle { display: flex; }
    .nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 24px 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        border-top: 1px solid var(--border);
    }
    .nav-wrapper.is-open { display: flex; }

    .site-header { position: relative; } /* Needed for absolute nav-wrapper */

    .main-nav { width: 100%; }
    .main-nav > ul { flex-direction: column; gap: 2px; width: 100%; }
    .main-nav > ul > li > a { padding: 10px 12px; font-size: 1rem; }

    .lang-switcher { padding-top: 12px; border-top: 1px solid var(--border); width: 100%; }

    /* Hero */
    .hero-box { width: 50%; min-height: 240px; }

    /* Grids */
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .tool-grid--cat { grid-template-columns: 1fr; }

    /* Category layout */
    .cat-layout {
        grid-template-columns: 1fr;
    }
    .cat-sidebar {
        position: static;
        order: -1; /* Sidebar above grid on tablet */
    }
    .cat-sidebar .sidebar-widget--cta { display: none; } /* Hide on tablet to save space */

    /* Single product */
    .single-tool-body {
        grid-template-columns: 1fr;
    }
    .single-tool-sidebar { position: static; }

    /* Contact */
    .contact-layout { grid-template-columns: 1fr; }

    /* About */
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===========================================
   20. RESPONSIVE – MOBILE (≤ 640px)
=========================================== */
@media (max-width: 640px) {

    /* Hero */
    .hero-box { width: 100%; min-height: 160px; font-size: 1rem; }

    /* Grids */
    .tool-grid { grid-template-columns: 1fr; gap: 20px; }
    .tool-grid--cat { grid-template-columns: 1fr; }

    /* Category hero */
    .cat-hero { padding: 40px 0 32px; }

    /* Single product hero */
    .single-tool-hero { min-height: 220px; }
    .single-tool-body { gap: 28px; }

    /* Page hero */
    .page-hero { padding: 40px 0 32px; margin-bottom: 32px; }

    /* Form 2-col collapses */
    .form-row--2col { grid-template-columns: 1fr; }

    /* About */
    .values-grid { grid-template-columns: 1fr; }
    .about-cta-banner { padding: 40px 24px; }
    .about-cta-buttons { flex-direction: column; align-items: center; }

    /* Contact */
    .contact-info-box { padding: 24px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-top { padding: 40px 0 32px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

.contact-social-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    padding: 0.6rem 1rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-social-link:hover {
    opacity: 0.7;
}

.footer-social{
    margin-top: 20px;
    margin-left: -5px;
}

.homepage-heading{
    text-align: center;
}

/* cookie banner */
:root {
    --cookie-bg: #111;
    --cookie-text: #fff;
    --cookie-btn-accept: #53a7b1;
    --cookie-btn-decline: #666;
    --cookie-font: system-ui, sans-serif;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--cookie-bg);
    color: var(--cookie-text);
    font-family: var(--cookie-font);
    padding: 16px;
    z-index: 9999;

    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.cookie-text {
    margin: 0;
    font-size: 14px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}

.cookie-btn.accept {
    background: var(--cookie-btn-accept);
    color: #fff;
}

.cookie-btn.decline {
    background: var(--cookie-btn-decline);
    color: #fff;
}

/* mobile */
@media (max-width: 600px) {
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        width: 100%;
    }
}

.page-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-cta-buttons .btn {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    min-width: 200px;
    text-align: center;
}

.page-cta-buttons .btn--secondary {
    background: transparent;
    border: 2px solid var(--blue-dark);
    color: var(--blue-dark);
}

.page-cta-buttons .btn--secondary:hover {
    background: var(--blue-dark);
    color: #fff;
}   