/*
Theme Name: Smart Pipeline Solutions
Theme URI: https://spsksa.com
Description: A professional WordPress theme designed for Smart Pipeline Solutions - specialized industrial equipment company serving oil, gas, and construction industries.
Author: Chethan S Poojary
Author URI: https://chethanspoojary.com
Version: 1.0.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sps-theme
*/

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

a.logo {
    display: none;
}

a.custom-logo-link {
    max-width: 120px;
    width: 100%;
}

img {
    width: 100%;
    height: auto;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #a6330c;
    --accent-color: #eb5928;
    --dark-blue: #1e40af;
    --light-gray: #f8fafc;
    --dark-gray: #374151;
    --text-gray: #6b7280;
    --white: #ffffff;
    --black: #000000;
    --gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --hero-overlay: rgba(0,0,0,0.65);
    --thumb-height: 260px;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}


/* Utility Classes */
.w-full { width: 100%; }
.text-center { text-align: center; }

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--animation-normal);
    font-size: 1rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary-light), var(--accent));
    opacity: 0;
    transition: opacity var(--animation-normal);
}

.btn-hero:hover::before {
    opacity: 1;
}

.btn-hero > * {
    position: relative;
    z-index: 10;
}

.btn-hero:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.btn-outline-hero {
    background: white;
    border: 1px solid hsla(255, 255, 255, 0.3);
    color: var(--accent);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

.btn-outline-hero:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
    transition: transform var(--animation-normal);
}

.btn-hero:hover .btn-icon {
    transform: translateX(0.25rem);
}


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



/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    max-height: 50px;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Dynamic menu styling (wp_nav_menu .menu) */
.main-navigation .menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation .menu li {
    position: relative;
}

.main-navigation .menu li a {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 10px 12px;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-navigation .menu li a:hover,
.main-navigation .menu li a:focus {
    background: rgba(30,58,138,0.06);
    color: var(--primary-color);
}

/* Caret for items that have children */
.main-navigation .menu li.menu-item-has-children > a::after {
    content: 'Ã¢â€“Â¾';
    margin-left: 8px;
    font-size: 12px;
    color: var(--primary-color);
}

/* Submenu (dropdown) */
.main-navigation .menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16,24,40,0.08);
    border-radius: 8px;
    padding: 10px 8px;
    display: none;
    min-width: 220px;
    z-index: 999;
}

.main-navigation .menu .sub-menu li a {
    padding: 8px 12px;
    display: block;
}

.main-navigation .menu li:hover > .sub-menu,
.main-navigation .menu li:focus-within > .sub-menu {
    display: block;
}

ul.sub-menu {
    padding: 0 !important;
}

ul.sub-menu  li {
    margin:0;
}

ul.sub-menu a{
	font-size:14px !important;
}

/* Second-level submenu positioning */
.main-navigation .menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Third-level submenu positioning */
.main-navigation .menu .sub-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    margin-left: 0;
    margin-top: 0;
}

/* Mobile Submenu Fix */
@media (max-width: 768px) {
    .main-navigation .menu .sub-menu {
        position: relative;   /* not absolute */
        top: 0;               /* reset top */
        left: 0;              /* reset left */
        box-shadow: none;
        padding-left: 16px;   /* indent submenu items */
        margin-top: 8px;
        display: none;        /* keep hidden by default */
    }

    /* Show submenu when parent is expanded */
    .main-navigation .menu li.open > .sub-menu {
        display: block;
    }

    /* Second-level submenu (nested submenu) also stacks below */
    .main-navigation .menu .sub-menu .sub-menu {
        position: relative;
        left: 0;
        top: 0;
        margin-top: 6px;
        padding-left: 16px;
    }

    /* Third-level submenu (nested inside second) */
    .main-navigation .menu .sub-menu .sub-menu .sub-menu {
        position: relative;
        left: 0;
        top: 0;
        margin-top: 6px;
        padding-left: 16px;
    }

    /* Caret change when expanded */
    .main-navigation .menu li.menu-item-has-children > a::after {
        content: 'Ã¢â€“Â¸';
        float: right;
    }
    .main-navigation .menu li.open > a::after {
        content: 'Ã¢â€“Â¾'; /* down arrow when open */
    }
}


/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.8)), url('images/industrial-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Overlay so hero content remains readable over background image */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.archive .section-title {
    margin-block: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}


/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    min-height: 61px;
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.industry-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.industry-card-header {
    background: var(--gradient);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.industry-card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.industry-card-body {
    padding: 20px;
}

.industry-card-body p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    /* fixed column width: min and max equal so items don't stretch */
    grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
    justify-content: center; /* center grid when there's leftover space */
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%; /* stretch to match other grid items */
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-card > img,
.product-card .product-thumb {
    width: 100%;
    min-height: var(--thumb-height);
    object-fit: cover;
    display: block;
    max-height: var(--thumb-height);
}

.product-card-body {
    padding: 25px;
    flex: 1 1 auto; /* allow body to grow so all cards equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 16px;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
    z-index: 3; /* above overlay */
}

.view-all:hover,
.view-all:focus {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* overlay link that makes the whole card clickable but sits under the button */
.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.product-card { position: relative; }

.product-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-card a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.archive .product-card a {
    color: var(--accent-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.archive .products-grid a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.archive .products-grid a:hover {
    color: var(--black);
}

.archive .products-grid h3 a {
    color: var(--black);
}

.product-card a:hover {
    color: var(--accent-color);
}



.product-card,
.post-card {
    background: var(--white);
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover,
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(16,24,40,0.08);
}

.product-thumb,
.post-thumb {
    width: 100%;
    height: var(--thumb-height);
    object-fit: cover;
    display: block;
}

/* keyboard focus for whole-card links */
.product-card:focus,
.product-card:focus-visible {
    outline: 3px solid rgba(245,159,11,0.18);
    outline-offset: 4px;
}

.product-card-body,
.post-card-body {
    padding: 18px;
}

.product-cats {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item-content h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item-content p {
    color: var(--text-gray);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: var(--dark-blue);
}

/* Footer */
.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4b5563;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-navigation li {
        margin: 10px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.hidden {
    display: none;
}

/* Contact Form 7 Styling */
.wpcf7 form {
  max-width: 600px;
  margin: 0 auto;
  font-family: inherit; /* inherit from body */
}

.wpcf7-form p {
  margin-bottom: 1.25rem; /* 20px */
}

/* Labels */
.wpcf7-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem; /* ~6px */
  color: var(--dark-gray);
}

/* Input fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem; /* 12px 16px */
  border: 1px solid #d1d5db; /* matches .form-group style */
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: var(--dark-gray);
  background-color: var(--white);
}

/* Focus effect */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 4px rgba(30, 58, 138, 0.25); /* soft primary glow */
}

/* Textarea */
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit button */
.wpcf7 input[type="submit"] {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.5rem; /* 12px 24px */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--dark-blue);
  transform: translateY(-2px);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
}

/* Response messages */
.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.wpcf7-mail-sent-ok {
  background: #e6f9ec;
  border: 1px solid #28a745;
  color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: #fcebea;
  border: 1px solid #e3342f;
  color: #cc1f1a;
}


html {
    scroll-behavior: smooth;
}

:root {
    /* Core Brand Colors - HSL Values */
    --primary: hsl(225, 73%, 24%);
    --primary-light: hsl(225, 73%, 35%);
    --primary-dark: hsl(225, 73%, 15%);
    --primary-foreground: hsl(0, 0%, 100%);
    
    --secondary: hsl(18, 89%, 49%);
    --secondary-light: hsl(18, 89%, 60%);
    --secondary-dark: hsl(18, 89%, 35%);
    --secondary-foreground: hsl(0, 0%, 100%);
    
    --accent: hsl(18, 95%, 55%);
    --accent-foreground: hsl(0, 0%, 100%);
    
    /* Supporting Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(215, 25%, 15%);
    --muted: hsl(220, 13%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --border: hsl(220, 13%, 91%);
    --card: hsl(0, 0%, 100%);
    
    /* Industrial Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-mixed: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --gradient-hero: linear-gradient(135deg, hsla(225, 73%, 15%, 0.75) 0%, hsla(225, 73%, 24%, 0.8) 50%, hsla(18, 89%, 35%, 0.8) 100%);
    --gradient-section: linear-gradient(180deg, hsl(220, 13%, 98%) 0%, hsl(0, 0%, 100%) 100%);
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px hsla(225, 73%, 24%, 0.05);
    --shadow-md: 0 4px 12px hsla(225, 73%, 24%, 0.1);
    --shadow-lg: 0 8px 24px hsla(225, 73%, 24%, 0.15);
    --shadow-xl: 0 16px 48px hsla(225, 73%, 24%, 0.2);
    --shadow-glow: 0 0 32px hsla(18, 89%, 49%, 0.3);
    
    /* Animations */
    --animation-fast: 0.15s ease-out;
    --animation-normal: 0.3s ease-out;
    --animation-slow: 0.5s ease-out;
    
    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/wp-content/uploads/2025/09/industrial-hero-Dwbjp6X3.jpeg') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, hsla(225, 73%, 24%, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, hsla(18, 89%, 49%, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, hsla(225, 73%, 35%, 0.08) 0%, transparent 50%);
    opacity: 0.3;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    padding: 0 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

/* Make indicator visible and interactive */
.scroll-indicator {
    z-index: 60; /* sit above hero overlays */
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    cursor: pointer;
}

.scroll-indicator:focus {
    outline: none;
    box-shadow: 0 0 0 6px rgba(30,58,138,0.12);
    border-radius: 999px;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid var(--white);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
}

.scroll-mouse {
    align-items: flex-start;
    padding-top: 6px;
    background: transparent;
}

.scroll-wheel {
    width: 0.25rem;
    height: 0.75rem;
    background:  var(--white);
    border-radius: 0.125rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

/* wheel click animation */
.scroll-wheel.scrolling {
    animation: none;
    transform: translateY(0);
    animation: wheel-down 0.9s ease-in-out both;
}

@keyframes wheel-down {
    0% { transform: translateY(0); opacity: 1; }
    30% { transform: translateY(8px); opacity: .9; }
    60% { transform: translateY(3px); opacity: .95; }
    100% { transform: translateY(0); opacity: 1; }
}

/* subtle bounce for the scroll indicator */
@keyframes bounce {
    0% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* small pulse for the scroll wheel idle state */
@keyframes pulse {
    0% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
    100% { opacity: 0.7; transform: translateY(0); }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--gradient-section);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}


/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--animation-normal);
}

.elevated {
    box-shadow: var(--shadow-lg);
}

.elevated:hover {
    transform: translateY(-0.375rem) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: 2rem 2rem 1rem;
}

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform var(--animation-normal);
}

.elevated:hover .card-icon {
    transform: scale(1.1);
}

.card-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.primary-gradient {
    background: var(--gradient-primary);
}

.secondary-gradient {
    background: var(--gradient-secondary);
}

.mixed-gradient {
    background: var(--gradient-mixed);
}

.accent-gradient {
    background: var(--gradient-accent);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-content {
    padding: 0 2rem 2rem;
}

.card-content p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--foreground);
}

.value-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--secondary);
    border-radius: 50%;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--animation-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-0.375rem) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.service-header {
    padding: 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.service-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: transform var(--animation-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
    transition: color var(--animation-normal);
}

.service-card:hover .service-title {
    color: var(--secondary);
}

.service-content {
    padding: 010px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 0;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.feature-dot {
    width: 0.375rem;
    height: 0.375rem;
    background: var(--secondary);
    border-radius: 50%;
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.industry-card {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--animation-normal);
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-0.375rem);
    box-shadow: var(--shadow-xl);
}

.industry-header {
    padding: 2rem;
    color: white;
    position: relative;
    text-align: center;
}

.industry-bg-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.2;
}

.industry-title {
    font-size: 1.25rem;
    font-weight: bold;
    position: relative;
    z-index: 10;
}

.industry-content {
    padding: 2rem;
}

.industry-content p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.expertise-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.expertise-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.expertise-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    width: 0.75rem;
    height: 0.75rem;
    background: var(--secondary);
    border-radius: 50%;
}

/* Custom Caret for Dropdowns */
.main-navigation .menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 26px;
    height: 29px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M7 10L12 15L17 10" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-size: 25px 30px;
    vertical-align: middle;
    margin-left: 0;
}