/*
Theme Name: GalvaRacks
Theme URI: https://galvaracks.ch
Author: Dizain
Author URI: https://dizain.pt
Description: Theme personnalisé pour GalvaRacks — sous-marque du groupe GalvaMat. Design inspiré de Novatil.ch, palette bleu et rouge (Suisse).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: galvaracks
Tags: industrial, products, custom-header, custom-menu, featured-images
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --gr-blue: #036da2;
    --gr-blue-dark: #025a86;
    --gr-blue-light: #0580b8;
    --gr-red: #e1121a;
    --gr-red-dark: #c00e16;
    --gr-white: #FFFFFF;
    --gr-gray-100: #F8F9FA;
    --gr-gray-200: #E9ECEF;
    --gr-gray-300: #DEE2E6;
    --gr-gray-500: #6C757D;
    --gr-gray-700: #495057;
    --gr-gray-900: #212529;
    --gr-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gr-font-heading: 'Montserrat', 'Inter', sans-serif;
    --gr-container: 1200px;
    --gr-transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--gr-font-primary);
    color: var(--gr-gray-900);
    line-height: 1.7;
    background: var(--gr-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gr-blue);
    text-decoration: none;
    transition: color var(--gr-transition);
}

a:hover {
    color: var(--gr-red);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gr-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gr-blue-dark);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
    max-width: var(--gr-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--gr-blue-dark);
    color: var(--gr-white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.top-bar a {
    color: var(--gr-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity var(--gr-transition);
}

.top-bar a:hover {
    opacity: 0.8;
    color: var(--gr-white);
}

.top-bar svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    background: var(--gr-white);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--gr-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo img,
.site-logo svg {
    height: 45px;
    width: auto;
}

.site-logo .logo-text {
    font-family: var(--gr-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gr-blue-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-logo .logo-text span {
    color: var(--gr-red);
}

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gr-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color var(--gr-transition);
    white-space: nowrap;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gr-red);
    transform: scaleX(0);
    transition: transform var(--gr-transition);
}

.main-navigation > ul > li {
    display: flex;
    align-items: center;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current-page-ancestor a {
    color: var(--gr-red);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    transform: scaleX(1);
}

.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--gr-white);
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--gr-red);
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 100;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    text-transform: none;
}

.main-navigation .sub-menu a::after {
    display: none;
}

/* Separator dots between menu items */
.main-navigation > ul > li + li::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    background: var(--gr-gray-300);
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--gr-blue-dark);
    margin: 5px 0;
    transition: var(--gr-transition);
    border-radius: 2px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--gr-gray-900);
    height: 600px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,37,64,0.85) 0%, rgba(15,37,64,0.4) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 3rem;
    max-width: var(--gr-container);
    margin: 0 auto;
}

.hero-slide-content h1 {
    color: var(--gr-white);
    font-size: 3.25rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-slide-content h1 strong {
    display: block;
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--gr-red);
}

.hero-slide-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 2rem;
}

.hero-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.hero-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gr-red);
    color: var(--gr-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background var(--gr-transition);
}

.hero-nav button:hover {
    background: var(--gr-red-dark);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--gr-transition);
    font-family: var(--gr-font-primary);
}

.btn-red {
    background: var(--gr-red);
    color: var(--gr-white);
}

.btn-red:hover {
    background: var(--gr-red-dark);
    color: var(--gr-white);
}

.btn-blue {
    background: var(--gr-blue);
    color: var(--gr-white);
}

.btn-blue:hover {
    background: var(--gr-blue-dark);
    color: var(--gr-white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gr-white);
    color: var(--gr-white);
}

.btn-outline:hover {
    background: var(--gr-white);
    color: var(--gr-blue-dark);
}

.btn-outline-red {
    background: transparent;
    border: 2px solid var(--gr-red);
    color: var(--gr-red);
}

.btn-outline-red:hover {
    background: var(--gr-red);
    color: var(--gr-white);
}

/* ============================================
   SECTION HEADING (with line + highlight box)
   ============================================ */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading .label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gr-blue-dark);
    font-family: var(--gr-font-heading);
}

.section-heading .label::before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 3px;
    background: var(--gr-red);
}

.section-heading .highlight {
    background: var(--gr-red);
    color: var(--gr-white);
    padding: 0.15rem 0.75rem;
    display: inline;
}

.section-heading .subtitle {
    color: var(--gr-gray-500);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   INTRO SECTION (below hero)
   ============================================ */
.intro-section {
    padding: 5rem 0 2rem;
    text-align: center;
    background: var(--gr-white);
}

.intro-section .intro-text {
    color: var(--gr-blue-dark);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.intro-section .intro-text strong {
    color: var(--gr-red);
    font-weight: 700;
}

/* ============================================
   PRODUCT CATEGORIES (Home)
   ============================================ */
.products-home {
    padding: 5rem 0;
    background: var(--gr-gray-100);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--gr-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform var(--gr-transition), box-shadow var(--gr-transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-card-image {
    height: 250px;
    overflow: hidden;
    background: var(--gr-gray-200);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card-body h3 a {
    color: var(--gr-blue-dark);
}

.product-card-body h3 a:hover {
    color: var(--gr-red);
}

.product-card-body p {
    color: var(--gr-gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-card-body .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
}

/* ============================================
   ABOUT / FEATURES SECTION (Red bg like Novatil)
   ============================================ */
.features-section {
    padding: 5rem 0;
    background: var(--gr-blue-dark);
    color: var(--gr-white);
}

.features-section .section-heading .label {
    color: var(--gr-white);
}

.features-section .section-heading .label::before {
    background: var(--gr-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--gr-red);
}

.feature-card .icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.feature-card h4 {
    color: var(--gr-white);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gr-red);
    display: inline-block;
}

.feature-card p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   GALVAMAT TRIBUTE SECTION
   ============================================ */
.galvamat-section {
    padding: 5rem 0;
    background: var(--gr-white);
}

.galvamat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.galvamat-content .text h2 {
    margin-bottom: 1.5rem;
}

.galvamat-content .text h2 span {
    color: var(--gr-red);
}

.galvamat-content .text p {
    color: var(--gr-gray-500);
    margin-bottom: 1rem;
}

.galvamat-content .image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ============================================
   NEWS / BLOG SECTION
   ============================================ */
.news-section {
    padding: 5rem 0;
    background: var(--gr-gray-100);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--gr-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform var(--gr-transition);
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gr-red);
    color: var(--gr-white);
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
}

.news-card-date .day {
    display: block;
    font-size: 1.5rem;
}

.news-card-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.news-card-body h3 a {
    color: var(--gr-blue-dark);
}

.news-card-body h3 a:hover {
    color: var(--gr-red);
}

.news-card-body p {
    color: var(--gr-gray-500);
    font-size: 0.9rem;
}

.news-card-meta {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gr-gray-200);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gr-gray-500);
}

/* ============================================
   PAGE HEADER (internal pages)
   ============================================ */
.page-header {
    background: var(--gr-blue-dark);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gr-red);
}

.page-header h1 {
    color: var(--gr-white);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-header .breadcrumb {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb a:hover {
    color: var(--gr-red);
}

.page-header .breadcrumb .separator {
    margin: 0 0.5rem;
}

/* ============================================
   PRODUCTS PAGE (Category listing like Novatil /produits/)
   ============================================ */
.products-page {
    padding: 5rem 0;
}

.product-category-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gr-gray-200);
}

.product-category-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-category-image {
    border-radius: 4px;
    overflow: hidden;
    height: 160px;
    background: var(--gr-gray-200);
}

.product-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category-info h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--gr-gray-900);
}

.product-category-info p {
    display: none;
}

.product-category-info .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
}

/* Product examples - alternating 2-col layout */
.product-example-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gr-gray-200);
}

.product-example-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-example-row .ex-image {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gr-gray-200);
}

.product-example-row .ex-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-example-row .ex-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gr-gray-500);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

.product-example-row .ex-text {
    padding: 1rem 0;
}

.product-example-row .ex-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gr-gray-900);
}

.product-example-row .ex-text p {
    font-size: 0.9rem;
    color: var(--gr-gray-500);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}


/* ============================================
   SINGLE PRODUCT CATEGORY (like Racks /paniers/)
   ============================================ */
.product-detail-section {
    padding: 4rem 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.product-detail-content h2 {
    color: var(--gr-red);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.product-detail-content h3 {
    color: var(--gr-red);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.product-detail-content p {
    color: var(--gr-gray-700);
    margin-bottom: 1rem;
}

.product-detail-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.product-detail-content ul li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--gr-gray-700);
}

.product-detail-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--gr-red);
    border-radius: 50%;
}

.product-detail-content .btn-question {
    margin: 2rem 0;
}

/* Product images grid */
.product-examples {
    margin-top: 2rem;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-gallery-item {
    background: var(--gr-gray-100);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow var(--gr-transition);
}

.product-gallery-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background: var(--gr-white);
}

.product-gallery-item .caption {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--gr-gray-700);
    border-top: 1px solid var(--gr-gray-200);
}

/* Sidebar */
.product-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: var(--gr-white);
    border: 1px solid var(--gr-gray-200);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-widget-title {
    background: var(--gr-blue-dark);
    color: var(--gr-white);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--gr-font-heading);
}

.sidebar-categories ul {
    list-style: none;
    padding: 0;
}

.sidebar-categories li {
    border-bottom: 1px solid var(--gr-gray-200);
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--gr-gray-700);
    font-size: 0.9rem;
    transition: all var(--gr-transition);
}

.sidebar-categories a:hover,
.sidebar-categories .current a {
    color: var(--gr-red);
    background: var(--gr-gray-100);
    padding-left: 1.5rem;
}

.sidebar-categories .current a {
    font-weight: 600;
    color: var(--gr-red);
    border-left: 3px solid var(--gr-red);
}

.sidebar-contact {
    padding: 1.25rem;
}

.sidebar-contact p {
    font-size: 0.85rem;
    color: var(--gr-gray-700);
    margin-bottom: 0.5rem;
}

.sidebar-contact a {
    font-weight: 600;
}

.sidebar-contact .map-placeholder {
    height: 180px;
    background: var(--gr-gray-200);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.sidebar-contact .map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-grid .text h2 {
    margin-bottom: 1.5rem;
}

.about-grid .text h2 span {
    color: var(--gr-red);
}

.about-grid .text p {
    color: var(--gr-gray-700);
}

.about-grid .image-stack {
    position: relative;
}

.about-grid .image-stack .img-main {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-grid .image-stack .img-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 200px;
    height: 200px;
    background: var(--gr-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gr-white);
    font-family: var(--gr-font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 10px 30px rgba(226,0,26,0.3);
}

.timeline {
    padding: 3rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.timeline-year {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gr-blue-dark);
    color: var(--gr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gr-font-heading);
    font-weight: 800;
    font-size: 1rem;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gr-gray-500);
    font-size: 0.9rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-card {
    background: var(--gr-gray-100);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    border-top: 3px solid var(--gr-red);
}

.contact-info-card .icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--gr-red);
}

.contact-info-card .icon svg {
    width: 100%;
    height: 100%;
}

.contact-info-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info-card p, .contact-info-card a {
    font-size: 0.9rem;
    color: var(--gr-gray-500);
}

.contact-map {
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact form */
.contact-form {
    background: var(--gr-gray-100);
    padding: 2.5rem;
    border-radius: 4px;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gr-gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gr-gray-300);
    border-radius: 3px;
    font-family: var(--gr-font-primary);
    font-size: 0.9rem;
    transition: border-color var(--gr-transition);
    background: var(--gr-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gr-blue);
    box-shadow: 0 0 0 3px rgba(27,58,92,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--gr-blue-dark);
    color: rgba(255,255,255,0.7);
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h4 {
    color: var(--gr-white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gr-red);
    display: inline-block;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--gr-transition);
}

.footer-col ul a:hover {
    color: var(--gr-red);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    font-family: var(--gr-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gr-white);
    letter-spacing: 2px;
}

.footer-logo .logo-text span {
    color: var(--gr-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: var(--gr-red);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--gr-red);
    color: var(--gr-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(226,0,26,0.3);
    transition: all var(--gr-transition);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--gr-red-dark);
    transform: translateY(-3px);
}

/* ============================================
   GENERIC PAGE CONTENT
   ============================================ */
.page-content {
    padding: 4rem 0;
}

.page-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content .entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content .entry-content p {
    color: var(--gr-gray-700);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        position: static;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--gr-white);
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        border-top: 3px solid var(--gr-red);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    .main-navigation > ul > li + li::before {
        display: none;
    }

    .main-navigation a {
        padding: 0.75rem 1.5rem;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        display: none;
        background: var(--gr-gray-100);
    }

    .main-navigation .menu-item-has-children.open .sub-menu {
        display: flex;
    }

    .hero-slider {
        height: 450px;
    }

    .hero-slide-content {
        padding: 0 1.5rem;
    }

    .hero-slide-content h1 {
        font-size: 1.75rem;
    }

    .hero-slide-content h1 strong {
        font-size: 2rem;
    }

    .hero-slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-nav {
        bottom: 0.75rem;
        right: 1.5rem;
        left: auto;
        transform: none;
    }

    .hero-nav button {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .hero-slide-content .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }

    .products-grid,
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .product-category-row {
        grid-template-columns: 1fr;
    }

    .product-example-row {
        grid-template-columns: 1fr;
    }

    .product-example-row:nth-child(even) {
        direction: ltr;
    }

    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .galvamat-content {
        grid-template-columns: 1fr;
    }

    .section-heading .label {
        font-size: 1.35rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-heading .label::before {
        display: none;
    }

    .about-grid .image-stack .img-accent {
        right: 0;
        bottom: -1rem;
        width: 140px;
        height: 140px;
        font-size: 1.2rem;
    }

    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }

    .hero-slide-content h1 {
        font-size: 1.5rem;
    }

    .hero-slide-content h1 strong {
        font-size: 1.75rem;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }
}
