/*
Theme Name: ALPHATECH
Theme URI: https://alphatech.com
Author: ALPHATECH Team
Author URI: https://alphatech.com
Description: Custom theme for ALPHATECH - Security and Surveillance Solutions
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alphatech
Tags: custom-theme, security, surveillance, business
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.entry-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    background-color: #dc2626;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-square {
    width: 50px;
    height: 50px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-weight: 700;
    font-size: 24px;
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
}

.logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.contact-button {
    background-color: #fff;
    color: #dc2626;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/images/hero-bg.jpg') center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #dc2626;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: inline-block;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.btn-primary:hover {
    background-color: #b91c1c;
}

.btn-primary:not(a) {
    cursor: default;
}

/* White button with red text (for INQUIRE NOW) */
.btn-primary.btn-white {
    background-color: #fff;
    color: #dc2626;
}

.btn-primary.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #b91c1c;
}

/* Brands Section */
.brands-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: #000;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.brands-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-slider {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: slide 40s linear infinite;
    will-change: transform;
}

.brands-slider:hover {
    animation-play-state: paused;
}

.brand-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.brand-logo {
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s;
    max-height: 100px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 30px));
    }
}

/* Who We Are Section */
.who-we-are-section {
    padding: 80px 20px;
    background-color: #fff;
}

.who-we-are-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px;
    align-items: stretch;
}

.who-we-are-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.who-we-are-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    max-width: 100%;
    object-fit: contain;
}

.who-we-are-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.who-we-are-content {
    font-family: 'Inter', sans-serif;
}

.who-we-are-content p {
    margin-bottom: 15px;
    color: #666666;
    line-height: 1.8;
    font-size: 20px;
    font-weight: 400;
}

.who-we-are-content > div {
    line-height: 1.8;
    color: #666666;
    font-size: 20px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    padding: 20px 0px;
}

/* Statistics Section */
.stats-section {
    background-color: #dc2626;
    padding: 60px 20px;
    color: #fff;
    width: 50%;
    max-width: 50%;
    margin: 0 auto;
    clear: both;
    position: relative;
    margin-bottom: -50px;
    z-index: 10;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item p {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-bottom: 10px;
    color: #fff;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #fff;
    margin: 0;
}

/* Services Section (home) — .services-section + legacy section.services / .service-item */
.services-section,
section.services {
    background-color: #1a1a1a;
    padding: clamp(72px, 9vw, 104px) clamp(16px, 4vw, 28px) clamp(80px, 10vw, 112px);
    color: #fff;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 40px 48px;
    align-items: start;
    margin-bottom: 52px;
}

.services-heading {
    font-size: clamp(28px, 3.6vw, 40px);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin: 0;
    line-height: 1.12;
    letter-spacing: 0.02em;
}

.services-header-intro {
    color: #fff;
    line-height: 1.75;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin: 0;
    padding-top: 4px;
    text-align: right;
    opacity: 0.94;
}

/* Legacy shortcode: single intro above grid */
section.services > p.services-intro {
    max-width: 1200px;
    margin: 0 auto 48px;
    color: #fff;
    line-height: 1.75;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    text-align: center;
    opacity: 0.94;
}

.services-grid,
section.services .services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 22px;
    margin: 0 auto 44px;
    max-width: 1200px;
}

.service-card,
section.services .service-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 42px 22px 24px;
    background: rgba(0, 0, 0, 0.15);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover,
section.services .service-item:hover {
    transform: translateY(-3px);
    border-color: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.service-card-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
}

.service-card-notch-pill {
    width: 30px;
    height: 6px;
    background: #fff;
    border-radius: 3px;
}

.service-card-notch-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
}

.service-card-inner {
    min-width: 0;
}

.service-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

/* Legacy shortcode: number, title, description as direct children */
section.services .service-item {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 12px;
    align-items: start;
}

section.services .service-item > .service-number {
    grid-column: 1;
    grid-row: 1;
}

section.services .service-item > h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding-top: 6px;
}

section.services .service-item > p {
    grid-column: 1 / -1;
    grid-row: 2;
}

.service-number,
section.services .service-item .service-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: #dc2626;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 5px;
    line-height: 1;
}

.service-card-title {
    font-size: 17px;
    margin: 2px 0 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.35;
}

section.services .service-item > h3 {
    font-size: 17px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.35;
}

.service-card-desc,
section.services .service-item > p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.72;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    margin: 0;
}

.services-button {
    text-align: center;
}

.services-cta-btn {
    display: inline-block;
    background-color: #dc2626;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    border: none;
}

.services-cta-btn:hover {
    background-color: #b91c1c;
    color: #fff;
}

.services-cta-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .services-grid,
    section.services .services-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* FAQs Section */
.faqs-section {
    padding: 80px 20px;
    background-color: #fff;
}

.faqs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    flex-direction: column;
}

.faqs-header h2 {
    font-size: 36px;
    color: #000;
}

.faq-item {
    background-color: #f5f5f5;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #000;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #e5e5e5;
}

.faq-question.active {
    background-color: #dc2626;
    color: #fff;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

.faq-toggle {
    font-size: 24px;
    font-weight: normal;
    transition: all 0.3s;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

/* Featured Products Section */
.products-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/images/products-bg.jpg') center/cover;
    padding: 80px 20px;
    color: #fff;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-header {
    margin-bottom: 40px;
}

.products-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #fff;
}

.products-header p {
    color: #ccc;
    margin-bottom: 20px;
}

.products-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    color: #000;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Why Choose Us — timeline row, red connector, circular icons */
.why-choose-section {
    padding: 80px 20px 90px;
    background-color: #fff;
}

.why-choose-container {
    max-width: 1200px;
    margin: 0 auto;
}

.why-choose-header {
    text-align: center;
    margin-bottom: 56px;
}

.why-choose-header h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    color: #111;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin: 0;
    letter-spacing: 0.02em;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 16px;
    align-items: stretch;
    position: relative;
}

/* Red bar through icon centers (desktop) */
.why-choose-grid::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 39px;
    height: 4px;
    background-color: #dc2626;
    z-index: 0;
    pointer-events: none;
    margin-top: 200px;
}

.why-choose-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    background-color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.why-choose-icon:has(img) {
    background-color: transparent;
    padding: 0;
    overflow: hidden;
}

.why-choose-icon i {
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.why-choose-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.why-choose-item-content {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 14px 22px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.why-choose-item-content h3 {
    font-size: 16px;
    color: #111;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.35;
}

.why-choose-item-content p {
    color: #333;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

/* Legacy: flat section.why-choose > .why-item (no grid wrapper) */
section.why-choose {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 90px;
    background-color: #fff;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

section.why-choose:not(.why-choose-section) {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 16px;
    position: relative;
}

section.why-choose:not(.why-choose-section)::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(39px + 0px);
    height: 4px;
    background-color: #dc2626;
    z-index: 0;
    pointer-events: none;
}

section.why-choose:not(.why-choose-section) > .why-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

section.why-choose:not(.why-choose-section) > .why-item > i {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    background-color: #dc2626;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

section.why-choose:not(.why-choose-section) > .why-item > img:first-child {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
    display: block;
}

section.why-choose:not(.why-choose-section) > .why-item > h3 {
    font-size: 16px;
    color: #111;
    margin: 0 0 0;
    font-weight: 700;
    line-height: 1.35;
    width: 100%;
    padding: 20px 14px 8px;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
    background: #fff;
}

section.why-choose:not(.why-choose-section) > .why-item > p {
    color: #333;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    width: 100%;
    padding: 8px 14px 22px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    background: #fff;
    flex: 1;
}

@media (max-width: 1100px) {
    .why-choose-grid,
    section.why-choose:not(.why-choose-section) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .why-choose-grid::before,
    section.why-choose:not(.why-choose-section)::before {
        display: none;
    }
}

/* Contact Section */
.contact-section-wrapper {
    padding: 56px 0 40px;
    background-color: #fff;
    width: 100%;
}

.contact-section-container {
    width: 100%;
}

.contact-section {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    overflow: hidden;
}

.contact-info {
    background-color: #dc2626;
    padding: 60px 50px 50px 350px !important;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* Home: equal-height columns — red panel stretches to match form (no white gap under left column) */
.contact-section.contact-section--home:not(.contact-section--no-form) {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 0;
}

.contact-section.contact-section--home.contact-section--no-form {
    grid-template-columns: 1fr;
    max-width: 720px;
}

/* Home contact — two-column brand layout (red panel + dark form) */
.contact-section.contact-section--home {
    min-height: 0;
}

.contact-section.contact-section--home .contact-info {
    background-color: #F50303;
    background-image:
        linear-gradient(
            180deg,
            rgba(245, 3, 3, 0.88) 0%,
            rgba(245, 3, 3, 0.78) 45%,
            rgba(245, 3, 3, 0.70) 70%,
            rgba(245, 3, 3, 0.82) 100%
        ),
        url('/wp-content/uploads/2026/05/contact-section-overlay.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 80px 40px 200px !important;
    justify-content: flex-start;
    align-self: stretch;
    min-height: 100%;
    box-sizing: border-box;
}

.contact-section.contact-section--home .contact-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.contact-section.contact-section--home .contact-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #e50000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    line-height: 1;
}

.contact-section.contact-section--home .contact-brand-name {
    color: #fff;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    letter-spacing: 0.06em;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.contact-section.contact-section--home .contact-brand-logo {
    max-height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.contact-section.contact-section--home .contact-info-box {
    background-color: #F50303D9;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    padding: 50px 40px 50px 40px;
    margin-bottom: 0;
    gap: 10;
    flex: 0 0 auto;
}

.contact-section.contact-section--home .contact-info-box .contact-item {
    margin-bottom: 22px;
}

.contact-section.contact-section--home .contact-item--phones {
    margin-bottom: 22px;
}

.contact-section.contact-section--home .contact-phones-line a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.55;
    font-weight: 500;
}

.contact-section.contact-section--home .contact-phones-line a:hover {
    text-decoration: underline;
}

.contact-section.contact-section--home .contact-info-box .contact-item span {
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.55;
}

.contact-section.contact-section--home .contact-social-row.contact-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    list-style: none;
}

.contact-section.contact-section--home .contact-social-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-section.contact-section--home .contact-social-link {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    line-height: 1;
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-section.contact-section--home .contact-social-link:hover {
    opacity: 1;
    transform: scale(1.08);
    color: #fff;
}

.contact-section.contact-section--home .contact-social-link--nourl {
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-section.contact-section--home a.contact-social-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.contact-section.contact-section--home .contact-social-img {
    width: 28px;
    height: 28px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    display: block;
}

.contact-section.contact-section--home .contact-form--home {
    background-color: #1a1a1a;
    padding: 80px 40px 40px 80px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    align-items: stretch;
    align-self: stretch;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form--home .contact-form-heading {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 700;
    margin: 0 0 28px;
    color: #fff;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}

.contact-form--home form,
.contact-form--home .wpcf7-form {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.contact-form--home .wpcf7-form > p {
    margin: 0 0 14px;
}

.contact-form--home label,
.contact-form--home .wpcf7-form label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 6px;
}

.contact-form--home input[type="text"],
.contact-form--home input[type="email"],
.contact-form--home input[type="tel"],
.contact-form--home input[type="url"],
.contact-form--home textarea,
.contact-form--home .wpcf7-form input[type="text"],
.contact-form--home .wpcf7-form input[type="email"],
.contact-form--home .wpcf7-form input[type="tel"],
.contact-form--home .wpcf7-form input[type="url"],
.contact-form--home .wpcf7-form textarea {
    background-color: #fff !important;
    color: #111 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 2px !important;
    padding: 10px 10px !important;
    font-size: 15px !important;
    width: 70% !important;
    box-sizing: border-box !important;
}

.contact-form--home input::placeholder,
.contact-form--home textarea::placeholder,
.contact-form--home .wpcf7-form input::placeholder,
.contact-form--home .wpcf7-form textarea::placeholder {
    color: #777 !important;
}

.contact-form--home textarea,
.contact-form--home .wpcf7-form textarea {
    min-height: 140px !important;
    resize: vertical;
}

.contact-form--home input[type="submit"],
.contact-form--home .wpcf7-submit {
    width: auto !important;
    min-width: 140px !important;
    margin-top: 12px !important;
    align-self: flex-start !important;
    background-color: #e50000 !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 36px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.contact-form--home input[type="submit"]:hover,
.contact-form--home .wpcf7-submit:hover {
    background-color: #c40000 !important;
}

.contact-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-logo .connect-logo-image {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}


.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background-color: #00000044;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    color: #333;
}

.contact-info-box .contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.contact-info-box .contact-item:last-child {
    margin-bottom: 0;
}

.contact-info-box .contact-item i {
    color: #ffffff;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
}

.contact-info-box .contact-item span {
    color: #ffffff;
    flex: 1;
    font-size: 20px;
}

.contact-info-box .contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.contact-info-box .contact-item a:hover {
    color: #dc2626;
    text-decoration: underline;
}

.contact-info-box .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.social-icon:hover {
    background-color: #fff;
    color: #dc2626;
}

.social-icon:hover img {
    filter: brightness(0) invert(0);
}

.contact-form {
    background-color: #2d2d2d;
    padding: 60px 50px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.contact-form h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    text-align: start;
    width: 100%;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 530px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #e5e5e5;
    color: #333;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .contact-submit,
.contact-form input[type="submit"],
.contact-form button[type="submit"] {
    background-color: #dc2626;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.contact-form .contact-submit:hover,
.contact-form input[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
    background-color: #b91c1c;
}

/* Contact Form 7 styling */
.contact-form .wpcf7-form input,
.contact-form .wpcf7-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #e5e5e5;
    color: #333;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form .wpcf7-form input::placeholder,
.contact-form .wpcf7-form textarea::placeholder {
    color: #666;
}

.contact-form .wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .wpcf7-submit {
    background-color: #dc2626 !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100% !important;
    box-sizing: border-box !important;
}

.contact-form .wpcf7-submit:hover {
    background-color: #b91c1c !important;
}

/* Projects Section */
.projects-section {
    padding: 80px 20px;
    background-color: #fff;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-header h2 {
    font-size: 36px;
    color: #000;
}

.projects-content {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
    gap: 48px 56px;
    align-items: start;
}

/* Home “Our Recent Projects” slider (data-alphatech-projects) */
.projects-recent {
    width: 100%;
}

.projects-content--recent {
    align-items: start;
    min-width: 0;
}

/* Let the gallery column shrink inside CSS Grid so % widths resolve to the visible track */
.projects-content--recent > .project-info,
.projects-content--recent > .projects-gallery.projects-gallery--strip {
    min-width: 0;
}

.projects-recent .project-info h3 {
    min-height: 2.75rem;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    line-height: 1.35;
    font-weight: 700;
}

.projects-recent .project-info time,
.projects-recent .project-info p {
    color: #666;
    font-size: 15px;
    margin: 0 0 8px;
}

.projects-recent-arrows {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

/* Horizontal strip: 3-up; scroll when more than three images */
.projects-recent .projects-gallery.projects-gallery--strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 280px;
    height: auto !important;
    max-height: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    padding: 4px 4px 12px 0;
    box-sizing: border-box;
}

.projects-recent .projects-gallery.projects-gallery--strip::-webkit-scrollbar {
    height: 6px;
}

.projects-recent .projects-gallery.projects-gallery--strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Featured first image ~half width; two smaller images ~quarter each (gaps: 32px) */
.projects-recent .project-strip-img {
    --projects-strip-inner: calc(100% - 32px);
    flex: 0 0 calc(var(--projects-strip-inner) * 0.25);
    width: calc(var(--projects-strip-inner) * 0.25);
    max-width: calc(var(--projects-strip-inner) * 0.25);
    min-width: 0;
    height: clamp(160px, 28vw, 260px);
    border-radius: 14px;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
    cursor: default;
}

.projects-recent .project-strip-img:first-child {
    flex: 0 0 calc(var(--projects-strip-inner) * 0.5);
    width: calc(var(--projects-strip-inner) * 0.5);
    max-width: calc(var(--projects-strip-inner) * 0.5);
    height: clamp(220px, 40vw, 360px);
}

.project-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #000;
}

.project-info p {
    color: #666;
    margin-bottom: 20px;
}

.project-navigation {
    display: flex;
    gap: 15px;
}

.project-nav-btn {
    width: 50px;
    height: 50px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background-color 0.3s;
}

.project-nav-btn:hover {
    background-color: #dc2626;
    color: #fff;
}

.projects-recent .project-nav-btn {
    width: 44px;
    height: 44px;
    background-color: #ececec;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.projects-recent .project-nav-btn:hover {
    background-color: #dedede;
    color: #111;
}

.projects-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
    justify-content: flex-start;
    height: 300px;
    width: 100%;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.project-image {
    border-radius: 8px;
    object-fit: cover;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    will-change: width, height, opacity;
    box-sizing: border-box;
}

.project-image-large {
    width: calc(50% - 7.5px);
    min-width: 250px;
    height: 300px;
    opacity: 1;
    order: 0;
    flex-shrink: 0;
}

.project-image-small {
    width: calc(20% - 7.5px);
    min-width: 120px;
    height: 150px;
    opacity: 0.6;
    order: 1;
    flex-shrink: 0;
}

.project-image-small:hover {
    opacity: 0.8;
}

.projects-button {
    text-align: center;
    margin-top: 40px;
}

.projects-button--recent {
    margin-top: 48px;
}

/* Footer */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer {
    background-color: #111111;
    padding: 56px 24px 24px;
    color: #fff;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
    margin-bottom: 36px;
}

.footer-column h3 {
    font-size: 17px;
    margin: 0 0 20px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-separator {
    border: 0;
    border-bottom: 1px solid #333333;
    margin: 0 0 18px;
    width: 100%;
    height: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #c4c4c4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: #c4c4c4;
}

.footer-column .contact-item i {
    font-size: 15px;
    width: 20px;
    flex-shrink: 0;
    color: #fff;
    margin-top: 2px;
}

.footer-column .contact-item span {
    color: inherit;
}

.footer-column .contact-item span a {
    color: #c4c4c4;
}

.footer-column .contact-item span a:hover {
    color: #fff;
}

.contact-item--footer .footer-contact-text a {
    color: #c4c4c4;
}

.contact-item--footer .footer-contact-text a:hover {
    color: #fff;
}

.contact-item--footer .footer-contact-text.contact-phones-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.contact-item--footer .footer-contact-text.contact-phones-stack .contact-phone-link {
    display: block;
    white-space: nowrap;
}

.footer-column .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.footer-column .social-icon {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: opacity 0.2s ease;
}

.footer-column .social-icon:hover {
    opacity: 0.75;
}

.footer-column .social-icon img,
.footer-social-nourl img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.footer-social-nourl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.footer-logo--stacked {
    margin-bottom: 20px;
}

.footer-logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
}

.footer-logo-image {
    max-width: 220px;
    width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.06em;
}

.newsletter-label {
    margin-bottom: 12px;
    color: #fff;
}

.newsletter-label--footer {
    color: #b8b8b8;
    font-size: 14px;
    margin-top: 0;
    line-height: 1.5;
}

.footer-newsletter-msg {
    font-size: 13px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.footer-newsletter-msg--ok {
    color: #8fd68f;
}

.footer-newsletter-msg--err {
    color: #ff8a8a;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form--footer {
    gap: 12px;
    max-width: 100%;
}

.newsletter-form input {
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #111111;
    border-radius: 2px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-form input::placeholder {
    color: #888888;
}

.newsletter-form .btn-primary {
    padding: 12px 20px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease;
}

.newsletter-form .btn-primary:hover {
    background-color: #d60000;
}

.newsletter-submit {
    padding: 12px 20px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-submit:hover {
    background-color: #d60000;
}

.footer-copyright {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid #2a2a2a;
    color: #888888;
    font-size: 13px;
}

.footer-copyright .itworks-logo {
    height: 16px;
    width: auto;
    vertical-align: middle;
    margin-left: 6px;
    filter: brightness(0.85);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-copyright p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    line-height: 1.6;
}

.footer-copyright-main {
    color: #888888;
}

.footer-powered {
    color: #888888;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.itworks-link,
.itworks-text-link {
    color: #aaaaaa;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.itworks-link:hover,
.itworks-text-link:hover {
    color: #fff;
}

/* Archive & Blog Styles */
.archive-header {
    padding: 60px 20px 40px;
    text-align: center;
    background-color: #f5f5f5;
}

.archive-title {
    font-size: 36px;
    color: #000;
}

.posts-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.post-content h2 a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h2 a:hover {
    color: #dc2626;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 404 Page Styles */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-content h1 {
    font-size: 120px;
    color: #dc2626;
    margin-bottom: 20px;
    font-weight: bold;
}

.error-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #000;
}

.error-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Pagination Styles */
.pagination {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: #f5f5f5;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a:hover,
.pagination .current {
    background-color: #dc2626;
    color: #fff;
}

/* Search Form Styles */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 30px auto;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-submit {
    padding: 12px 25px;
}

/* No Results Styles */
.no-results {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 20px;
    text-align: center;
}

.no-results p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .who-we-are-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .services-header {
        grid-template-columns: 1fr;
    }

    .services-header-intro {
        text-align: left;
    }
    
    .services-grid,
    section.services .services-list {
        grid-template-columns: 1fr;
    }
    
    .faqs-container {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-grid,
    section.why-choose:not(.why-choose-section) {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .projects-content {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .error-content h1 {
        font-size: 80px;
    }
}

/* Alphatech main stylesheet – About Us layout tweaks */

.about-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111;
}

.about-hero {
    position: relative;
    min-height: 220px;
    background-color: #c00;
    overflow: hidden;
}

.about-hero-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    filter: brightness(0.4);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-hero-overlay h1 {
    font-size: 40px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.about-content {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-content p {
    line-height: 1.7;
    margin-bottom: 18px;
}

.about-feature-image {
    width: 100%;
    border-radius: 4px;
    margin: 25px 0;
}

.about-body-content {
    margin-top: 10px;
}

/* Full width of content column (avoid nested .container cutting width in half) */
.about-statements {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 70px;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

/* Mission / Vision: single rounded shell, true 50/50 split; left = red text (top) + image (bottom) */
.about-statements-split {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.about-mission-stack {
    flex: 1 1 0;
    min-width: 0;
    width: 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
}

/* No image: red block fills the full left column */
.about-mission-stack > .about-mission-text:only-child {
    flex: 1 1 auto;
    min-height: 320px;
}

.about-mission-text {
    flex: 1 1 50%;
    min-height: 200px;
    background-color: #e20b0b;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 28px;
    box-sizing: border-box;
}

.about-mission-heading {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    color: #fff;
    line-height: 1.25;
}

.about-mission-tagline {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.95);
    max-width: 100%;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.about-mission-image-wrap {
    flex: 1 1 50%;
    min-height: 220px;
    position: relative;
    background: #111;
}

.about-mission-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-vision-panel {
    flex: 1 1 0;
    min-width: 0;
    width: 50%;
    max-width: 50%;
    background-color: #1a1a1a;
    color: #fff;
    padding: 36px 40px 40px;
    display: flex;
    flex-direction: column;
    /* Top-align so short copy does not sit in the middle with a large empty band below */
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
}

.about-vision-heading {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 22px;
    color: #fff;
    line-height: 1.25;
}

.about-vision-body {
    width: 100%;
    max-width: none;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
}

/* Undo pasted editor widths (e.g. 50% inline) so copy uses the full dark column */
.about-vision-body * {
    max-width: 100% !important;
    box-sizing: border-box;
}

.about-vision-body p,
.about-vision-body div {
    width: 100% !important;
}

.about-vision-body p {
    margin: 0 0 1.1em;
    max-width: 100%;
}

.about-vision-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-hero-image {
        height: 200px;
    }

    .about-hero-overlay h1 {
        font-size: 30px;
    }

    .about-statements {
        margin-bottom: 40px;
    }

    .about-statements-split {
        flex-direction: column;
        min-height: 0;
    }

    .about-mission-stack,
    .about-vision-panel {
        width: 100%;
        max-width: none;
        flex: none;
    }

    .about-mission-text {
        min-height: 180px;
    }

    .about-mission-image-wrap {
        min-height: 240px;
    }

    .about-vision-panel {
        padding: 32px 24px 36px;
    }
}

/* Services page layout */

.services-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111;
}

.services-hero {
    position: relative;
    min-height: 220px;
    background-color: #c00;
    overflow: hidden;
}

.services-hero-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    filter: brightness(0.4);
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.services-hero-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    text-align: center;
    max-width: 90%;
}

.services-intro {
    max-width: 1100px;
    margin: 40px auto 30px;
    padding: 0 20px;
}

.services-intro-text {
    font-size: 16px;
    line-height: 1.7;
}

.services-intro-text p {
    margin-bottom: 1em;
}

.services-intro-text p:last-child {
    margin-bottom: 0;
}

.services-grid-wrap {
    padding-bottom: 60px;
}

.services-page-grid {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 24px;
    /* Start = each card height follows its own content (no giant gap in short cards) */
    align-items: start;
}

.services-page-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    align-items: stretch;
    height: auto;
}

/* Div-based title bar (no <h2>) so theme .post-content h2 rules cannot shrink the red bar */
.services-page .services-page-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    flex: 0 0 auto;
    background-color: #e20b0b;
    color: #fff;
    padding: 18px 20px;
    margin: 0;
}

.services-page .services-page-card-title-text {
    display: block;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0;
    padding: 0;
}

.services-page-card-body {
    flex: 0 1 auto;
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.services-page-card-text {
    font-size: 16px;
    line-height: 1.7;
}

/* Card uses overflow:hidden for rounded corners — outside bullets get clipped */
.services-page-card-text ul {
    list-style-type: disc;
    list-style-position: inside;
    margin: 0 0 0.5em;
    padding-left: 0;
}

.services-page-card-text ol {
    list-style-type: decimal;
    list-style-position: inside;
    margin: 0 0 0.5em;
    padding-left: 0;
}

.services-page-card-text li {
    display: list-item;
    margin-bottom: 8px;
    padding-left: 0;
}

.services-page-card-text li:last-child {
    margin-bottom: 0;
}

.services-page-card-image {
    /* Do not push image to bottom of a stretched card — keeps short cards tight */
    margin-top: 0;
    padding: 0 2px;
}

.services-page-card-image img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

@media (max-width: 1024px) {
    .services-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .services-page-grid {
        grid-template-columns: 1fr;
    }

    .services-hero-title {
        font-size: 28px;
    }
}

/* --------------------------------------------------------------------------
   Products page
   -------------------------------------------------------------------------- */

.products-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111;
    background: #fff;
}

.products-hero {
    position: relative;
    min-height: 220px;
    background-color: #c00;
    overflow: hidden;
}

.products-hero-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    filter: brightness(0.4);
}

.products-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.products-hero-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.products-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 72px;
    box-sizing: border-box;
}

.products-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.products-brand-tabs {
    position: sticky;
    top: 96px;
}

.products-brand-tabs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e3e3e3;
    background: #fafafa;
}

.products-brand-tabs-item + .products-brand-tabs-item {
    border-top: 1px solid #e3e3e3;
}

.products-brand-tab-link {
    display: block;
    padding: 12px 14px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.products-brand-tab-link:hover,
.products-brand-tab-link:focus-visible {
    background: #e20b0b;
    color: #fff;
    outline: none;
}

.products-brand-tab-link.is-active {
    background: #e20b0b;
    color: #fff;
}

.products-brand-content {
    min-width: 0;
}

.products-brand-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.products-brand-section[hidden] {
    display: none !important;
}

.products-brand-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.products-brand-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 28px;
    color: #111;
    text-align: left;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 18px;
    align-items: start;
}

.products-card {
    min-width: 0;
    width: 100%;
}

.products-card-thumb {
    position: relative;
    background: #ececec;
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    margin-bottom: 12px;
    overflow: hidden;
}

.products-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.products-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(30, 30, 30, 0.72);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.products-card-thumb:hover .products-card-hover,
.products-card-thumb:focus-within .products-card-hover {
    opacity: 1;
    pointer-events: auto;
}

.products-card-details-btn {
    width: 82%;
    max-width: 220px;
    padding: 12px 16px;
    border: none;
    border-radius: 2px;
    background: #e20b0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
}

.products-card-details-btn:hover,
.products-card-details-btn:focus-visible {
    background: #c00;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (hover: none) {
    .products-card-hover {
        opacity: 1;
        background: linear-gradient(to top, rgba(30, 30, 30, 0.85) 0%, transparent 45%);
        align-items: flex-end;
        padding-bottom: 16px;
        pointer-events: auto;
    }
}

/* Product detail modal */
/* Lock scroll; JS adds padding-right == scrollbar width so content does not shift sideways */
html.product-modal-open,
body.product-modal-open {
    overflow: hidden;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.product-modal[hidden] {
    display: none;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.product-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    max-height: min(90vh, 880px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.product-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: #e20b0b;
    color: #fff;
}

.product-modal-header-text {
    min-width: 0;
    flex: 1;
}

.product-modal-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.product-modal-subtitle {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.product-modal-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-close:hover,
.product-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.product-modal-body {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.product-modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-modal-gallery-item {
    background: #ececec;
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.product-modal-gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-modal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px 28px;
    align-content: start;
}

.product-modal-spec-heading {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #111;
}

.product-modal-spec-dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.product-modal-spec-dl dt {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.product-modal-spec-dl dd {
    margin: 0;
    color: #444;
}

.product-modal-footer-link {
    padding: 0 24px 20px;
}

.product-modal-external-link {
    font-size: 14px;
    font-weight: 600;
    color: #e20b0b;
}

@media (max-width: 640px) {
    .product-modal-body {
        grid-template-columns: 1fr;
    }

    .product-modal-gallery {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .product-modal-gallery-item {
        width: calc(50% - 6px);
        flex: 1 1 calc(50% - 6px);
    }
}

.products-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    color: #111;
    word-wrap: break-word;
}

@media (max-width: 1100px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .products-brand-tabs {
        position: static;
    }

    .products-brand-tabs-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
    }

    .products-brand-tabs-item + .products-brand-tabs-item {
        border-top: none;
        border-left: 1px solid #e3e3e3;
    }

    .products-brand-tab-link {
        padding: 11px 16px;
    }

    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .products-hero-title {
        font-size: 28px;
    }

    .products-hero-image {
        height: 200px;
    }
}

/* --------------------------------------------------------------------------
   Clients page
   -------------------------------------------------------------------------- */

.clients-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111;
    background: #fff;
}

.clients-hero {
    position: relative;
    min-height: 220px;
    background-color: #c00;
    overflow: hidden;
}

.clients-hero-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    filter: brightness(0.4);
}

.clients-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.clients-hero-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.clients-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 72px;
    box-sizing: border-box;
}

.clients-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 24px;
    align-items: center;
    justify-items: center;
}

.clients-card {
    width: 100%;
    min-width: 0;
    display: block;
}

.clients-card-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.clients-card-link:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.clients-cell {
    width: 100%;
    aspect-ratio: 1;
    max-width: 180px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clients-card-link .clients-cell {
    background: #f0f0f0;
}

.clients-cell-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.clients-cell-inner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 1100px) {
    .clients-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .clients-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 18px;
    }
}

@media (max-width: 640px) {
    .clients-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .clients-cell {
        max-width: none;
        border-radius: 12px;
    }

    .clients-hero-title {
        font-size: 28px;
    }

    .clients-hero-image {
        height: 200px;
    }
}

/* --------------------------------------------------------------------------
   Media page (page-media.php)
   -------------------------------------------------------------------------- */

.at-page-media .at-media-content {
    width: 100%;
}

.at-media-accordion {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fafafa;
    overflow: hidden;
}

.at-media-accordion:last-child {
    margin-bottom: 0;
}

.at-media-accordion__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #111;
    background: #fff;
    transition: background-color 0.15s ease;
}

.at-media-accordion__summary::-webkit-details-marker {
    display: none;
}

.at-media-accordion__summary::marker {
    content: '';
}

.at-media-accordion__summary:hover {
    background: #f7f7f7;
}

.at-media-accordion__title {
    flex: 1;
    min-width: 0;
}

.at-media-accordion__icon {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -4px;
}

.at-media-accordion[open] .at-media-accordion__icon {
    transform: rotate(225deg);
    margin-top: 4px;
}

.at-media-accordion__body {
    padding: 0 16px 20px;
    background: #fff;
}

.at-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
}

.at-media-grid__item {
    margin: 0;
    min-width: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}

.at-media-grid__img {
    display: block;
    width: 100%;
    height: auto;
}

.at-media-empty {
    margin: 0;
    padding: 12px 4px;
    color: #666;
    font-size: 15px;
}

.at-media-empty--page {
    text-align: center;
    padding: 32px 16px;
}

@media (max-width: 640px) {
    .at-media-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .at-media-accordion__summary {
        padding: 14px 16px;
        font-size: 16px;
    }
}

/* --------------------------------------------------------------------------
   Contact Us page (page-contact.php)
   -------------------------------------------------------------------------- */

.contact-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111;
    background: #fff;
}

.contact-page-hero {
    position: relative;
    min-height: 220px;
    background-color: #1a1a1a;
    overflow: hidden;
}

.contact-page-hero-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    filter: brightness(0.45);
}

.contact-page-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
}

.contact-page-hero-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.contact-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 48px;
    box-sizing: border-box;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px 48px;
    align-items: stretch;
}

.contact-page-form-col {
    min-width: 0;
    padding: 8px 8px 24px 0;
}

.contact-page-form-heading {
    margin: 0 0 16px;
    font-size: clamp(24px, 2.8vw, 30px);
    font-weight: 700;
    color: #e50000;
    line-height: 1.25;
}

.contact-page-intro {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    max-width: 560px;
}

.contact-page-intro p {
    margin: 0 0 1em;
}

.contact-page-intro p:last-child {
    margin-bottom: 0;
}

.contact-page-admin-hint {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* CF7 / form in left column (white area) */
.contact-page-form--cf7 form,
.contact-page-form--cf7 .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 520px;
}

.contact-page-form--cf7 .wpcf7-form > p {
    margin: 0 0 16px;
}

.contact-page-form--cf7 label,
.contact-page-form--cf7 .wpcf7-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.contact-page-form--cf7 input[type="text"],
.contact-page-form--cf7 input[type="email"],
.contact-page-form--cf7 input[type="tel"],
.contact-page-form--cf7 input[type="url"],
.contact-page-form--cf7 textarea,
.contact-page-form--cf7 .wpcf7-form input[type="text"],
.contact-page-form--cf7 .wpcf7-form input[type="email"],
.contact-page-form--cf7 .wpcf7-form input[type="tel"],
.contact-page-form--cf7 .wpcf7-form textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #111 !important;
}

.contact-page-form--cf7 textarea,
.contact-page-form--cf7 .wpcf7-form textarea {
    min-height: 160px !important;
    resize: vertical;
}

.contact-page-form--cf7 input[type="submit"],
.contact-page-form--cf7 .wpcf7-submit {
    margin-top: 8px !important;
    padding: 14px 40px !important;
    background: #e50000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 2px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    width: auto !important;
    align-self: flex-start !important;
    transition: background-color 0.2s ease !important;
}

.contact-page-form--cf7 input[type="submit"]:hover,
.contact-page-form--cf7 .wpcf7-submit:hover {
    background: #c40000 !important;
}

/* Red info card (right) */
.contact-page-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-page-card-inner {
    background: #e50000;
    color: #fff;
    border-radius: 14px;
    padding: 36px 32px 40px;
    box-sizing: border-box;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.contact-page-card-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.6;
}

.contact-page-card-item:last-of-type {
    margin-bottom: 0;
}

.contact-page-card-item i {
    flex-shrink: 0;
    width: 22px;
    margin-top: 3px;
    color: #fff;
    font-size: 16px;
}

.contact-page-card-item span,
.contact-page-card-item a {
    color: #fff;
    text-decoration: none;
}

.contact-page-card-item a:hover {
    text-decoration: underline;
}

.contact-page-card-item--phones {
    margin-bottom: 22px;
}

.contact-page-phones-stack a {
    font-weight: 500;
    word-break: break-word;
}

.contact-page-social-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.contact-page-social-item {
    margin: 0;
    padding: 0;
}

.contact-page-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-page-social-link:hover {
    opacity: 1;
    transform: scale(1.06);
}

.contact-page-social-link img,
.contact-page-social-link--nourl img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

/* Full-width map band below form (red frame, rounded top corners) */
.contact-page-map-section {
    width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
    background: #fff;
}

.contact-page-map-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-page-map {
    position: relative;
    border: 1px solid #F50303;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: #e5e5e5;
    box-shadow: 0 2px 0 rgba(229, 0, 0, 0.08);
    line-height: 0;
}

.contact-page-map iframe {
    display: block;
    width: 100% !important;
    min-height: 420px;
    height: 440px;
    border: 0;
    vertical-align: top;
}

@media (max-width: 900px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-page-form-col {
        padding-right: 0;
    }

    .contact-page-card-inner {
        background: #000;
        padding: 32px 24px 36px;
    }
}

@media (max-width: 640px) {
    .contact-page-hero-image {
        height: 200px;
    }

    .contact-page-inner {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .contact-page-map-section {
        padding-top: 24px;
        padding-bottom: 56px;
    }

    .contact-page-map iframe {
        min-height: 260px;
        height: 300px;
    }

    /* Home contact info panel to black on smaller phones */
    .contact-section.contact-section--home .contact-info {
        background: #000;
    }
}

/* Mobile side menu toggle + slide panel */
.mobile-navigation {
    display: none;
}

@media (max-width: 991px) {
    /* Contact section (home) mobile layout fix: prevent off-screen content */
    .contact-section.contact-section--home:not(.contact-section--no-form) {
        grid-template-columns: 1fr;
    }

    .contact-section.contact-section--home .contact-info {
        padding: 32px 20px !important;
        align-items: center;
        text-align: center;
    }

    .contact-section.contact-section--home .contact-phones-line {
        display: inline-block;
    }

    .contact-section.contact-section--home .contact-form--home {
        padding: 32px 20px;
        align-items: center;
    }

    .contact-section.contact-section--home .contact-info-box {
        padding: 24px 18px;
        width: 100%;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-section.contact-section--home .contact-social-row.contact-social-list {
        margin-top: 24px;
        justify-content: center;
    }

    .contact-section.contact-section--home .contact-brand {
        justify-content: center;
        width: 100%;
    }

    .contact-section.contact-section--home .contact-form-heading {
        text-align: center;
        width: 100%;
    }

    .contact-section.contact-section--home .contact-form--home form,
    .contact-section.contact-section--home .contact-form--home .wpcf7-form {
        width: 100%;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-section.contact-section--home .contact-form--home label {
        text-align: center;
    }

    .contact-section.contact-section--home .contact-form--home .wpcf7-form > p {
        text-align: center;
    }

    .contact-section.contact-section--home .contact-form--home input[type="submit"],
    .contact-section.contact-section--home .contact-form--home .wpcf7-submit {
        display: inline-block;
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: center !important;
    }

    /* Keep header in a single row on mobile */
    .header-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        position: relative;
    }

    /* Contact button should live inside the slide menu on mobile */
    .header-contact {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-right: 0;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #fff;
        font-size: 1.25rem;
        cursor: pointer;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .mobile-menu-toggle i {
        color: #fff;
        transition: transform 0.25s ease;
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .site-header .desktop-navigation {
        display: none;
    }

    .site-header .mobile-navigation {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1001;
        width: min(320px, 82vw);
        height: 100vh;
        padding: 90px 24px 24px;
        transform: translateX(-105%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        background: #e21d23;
    }

    .site-header .mobile-drawer-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 28px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .site-header .mobile-drawer-logo-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .site-header .mobile-drawer-logo {
        max-height: 48px;
        width: auto;
        display: block;
    }

    .site-header .mobile-navigation ul {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 0;
        padding: 0;
        list-style: none;
        text-align: left;
    }

    .site-header .mobile-navigation .menu-item--contact-cta {
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    .site-header .mobile-navigation .menu-item--contact-cta > a {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 12px 16px;
        min-height: 44px;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        background-color: #fff;
        color: #dc2626 !important;
        text-decoration: none;
    }

    .site-header .mobile-navigation a {
        transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
        border-radius: 2px;
        padding: 4px 6px;
    }

    .site-header .mobile-navigation a:hover {
        background: rgba(255, 255, 255, 0.14);
        transform: translateX(4px);
    }

    body.mobile-menu-open .mobile-menu-toggle {
        transform: translateY(-50%) scale(0.96);
        background: rgba(255, 255, 255, 0.2);
    }

    body.mobile-menu-open .mobile-menu-toggle i {
        transform: rotate(90deg);
    }

    body.mobile-menu-open .site-header .mobile-navigation {
        transform: translateX(0);
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 992px) {
    .mobile-menu-toggle,
    .mobile-menu-overlay {
        display: none !important;
    }

    .site-header .desktop-navigation {
        display: block;
    }

    .site-header .mobile-navigation {
        display: none !important;
    }
}

