/*
Theme Name: IronGrip Fasteners
Theme URI: https://example.com/irongrip
Author: Your Name
Author URI: https://example.com
Description: A professional WordPress theme for industrial fastener suppliers, based on the Underscores starter theme. Features a modern design with hero slider, product showcases, quote forms, and responsive mobile navigation.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: irongrip
Tags: one-column, two-columns, custom-menu, featured-images, full-width-template, custom-logo, custom-background, threaded-comments, translation-ready

This theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-steel: #474747;
    --primary-blue: #1e40af;
    --accent-sky: #e87250;
    --accent-slate: #64748b;
    --accent-maroon: #652c2c;
    --accent-zinc: #b2b2b2;
    --light-metal: #f0f0f0;
    --chrome: #e2e8f0;
    --highlight-cyan: #06b6d4;
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-metal);
    color: var(--primary-steel);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
    font-size: 0.875em;
    color: var(--accent-slate);
}

.gallery {
    margin-bottom: 1.5em;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background: var(--primary-steel);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: var(--chrome);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--accent-sky);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-right {
    justify-content: flex-end;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--chrome);
}

.top-bar-item i {
    color: var(--accent-sky);
}

/* ==========================================================================
   Main Header
   ========================================================================== */
.main-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.main-header.scrolled {
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-steel);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo:hover {
    color: var(--primary-blue);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-sky));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: rotate(-5deg);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

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

/* ==========================================================================
   Desktop Navigation
   ========================================================================== */
.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link-custom,
.desktop-nav a {
    font-weight: 600;
    color: var(--primary-steel);
    text-decoration: none;
    padding: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-custom::after,
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link-custom:hover,
.desktop-nav a:hover {
    color: var(--primary-blue);
}

.nav-link-custom:hover::after,
.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav .current-menu-item > a,
.desktop-nav .current_page_item > a {
    color: var(--primary-blue);
}

.desktop-nav .current-menu-item > a::after,
.desktop-nav .current_page_item > a::after {
    width: 100%;
}

.btn-quote-header {
    background: linear-gradient(135deg, var(--accent-sky), #d46848);
    color: white !important;
    font-weight: 700;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-quote-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 112, 74, 0.4);
    color: white !important;
}

.btn-quote-header::after {
    display: none !important;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-steel);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 100%;
    height: 100%;
    background: var(--primary-steel);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
    font-family: var(--font-display);
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-body {
    padding: 1rem;
}

.mobile-menu-body ul {
    margin: 0;
    padding: 0;
}

.mobile-menu-body a {
    color: var(--chrome);
    font-size: 1.1rem;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mobile-menu-body a:hover {
    color: var(--accent-sky);
    padding-left: 10px;
}

.mobile-menu-body a i {
    color: var(--accent-sky);
}

.mobile-cta {
    margin-top: 2rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    border-radius: 10px;
    text-align: center;
}

.mobile-cta a {
    color: white !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    border: none;
    padding: 0;
}

.mobile-contact {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact p {
    color: var(--chrome);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-contact i {
    color: var(--accent-sky);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
}

.hero-slide {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;

    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.6) 50%, rgba(26, 26, 46, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(101, 44, 44, 0.2);
    border: 1px solid #c48888;
    color: var(--accent-sky);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title span {
    color: var(--accent-sky);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--chrome);
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent-sky), #d46848);
    color: white;
    font-weight: 700;
    padding: 16px 36px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(222, 61, 73, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 16px 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-steel);
    border-color: white;
}

/* Hero Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: var(--primary-blue);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.carousel-indicators button {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: var(--accent-sky);
    width: 60px;
}

/* Hero Stats Bar */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(101, 44, 44);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #FFFFFF;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #c48888;
    margin-top: 0.25rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .hero-stats {
        display: none;
    }

    .carousel-control {
        display: none;
    }

    .carousel-indicators {
        bottom: 40px;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: 70vh;
    }

    .hero-content {
        min-height: 70vh;
    }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
    padding: 6rem 0;
}

.section-white {
    background: white;
}

.section-gray {
    background: linear-gradient(180deg, var(--light-metal) 0%, white 100%);
}

.section-dark {
    background: var(--primary-steel);
}

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

.section-tag {
    display: inline-block;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-steel);
    margin-bottom: 1rem;
}

.section-dark .section-title {
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--accent-slate);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-metal);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-sky));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 64, 175, 0.2);
    box-shadow: var(--shadow-heavy);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-sky));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.25);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-steel);
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--accent-slate);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--chrome), var(--light-metal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-slate);
    position: relative;
    overflow: hidden;
}

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

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(30, 64, 175, 0.1));
}

.product-body {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary-steel);
    margin: 0.5rem 0;
}

.product-specs {
    color: var(--accent-slate);
    font-size: 0.9rem;
    margin: 0;
}

.products-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   Quote Section
   ========================================================================== */
.quote-section {
    padding: 6rem 0;
    background: var(--primary-steel);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-content {
    position: relative;
    z-index: 10;
}

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

@media (max-width: 991px) {
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.quote-info h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 1.5rem;
}

.quote-info h2 span {
    color: var(--accent-sky);
}

.quote-info p {
    color: var(--chrome);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.quote-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quote-benefits li {
    color: var(--chrome);
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quote-benefits li i {
    color: var(--accent-sky);
    font-size: 1.2rem;
}

.quote-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-heavy);
}

@media (max-width: 767px) {
    .quote-form-wrapper {
        padding: 1.5rem;
    }
}

.quote-form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-steel);
    margin-bottom: 0.5rem;
}

.quote-form-subtitle {
    color: var(--accent-slate);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: 1rem;
}

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

@media (max-width: 575px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-floating {
    position: relative;
}

.form-floating input,
.form-floating select,
.form-floating textarea {
    width: 100%;
    border: 2px solid var(--chrome);
    border-radius: 10px;
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: white;
}

.form-floating input:focus,
.form-floating select:focus,
.form-floating textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-floating label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-slate);
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.25rem;
}

.form-floating textarea ~ label {
    top: 1.5rem;
    transform: none;
}

.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label,
.form-floating select:focus ~ label,
.form-floating select:not([value=""]) ~ label,
.form-floating textarea:focus ~ label,
.form-floating textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--accent-sky);
}

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

.btn-submit-quote {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-sky), #d46848);
    color: white;
    font-weight: 700;
    padding: 18px 36px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
}

.btn-submit-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.4);
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent-slate);
}

.form-note i {
    color: var(--primary-blue);
}

/* Contact Form 7 Styles */
.wpcf7-form {
    max-width: 100%;
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    border: 2px solid var(--chrome);
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: white;
    font-weight: 700;
    padding: 18px 36px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.3);
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #5f5f5f;
    padding: 4rem 0 2rem;
}

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

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.footer-text {
    color: var(--accent-zinc);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--accent-zinc);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-sky);
    padding-left: 5px;
}

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

.footer-contact li {
    color: var(--accent-zinc);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact i {
    color: var(--accent-sky);
    margin-top: 4px;
}

.footer-contact a {
    color: var(--accent-zinc);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-sky);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chrome);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-sky);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 2rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--accent-zinc);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--accent-zinc);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-sky);
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.5);
}

/* ==========================================================================
   Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* ==========================================================================
   WordPress Content Styles
   ========================================================================== */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-display);
    color: var(--primary-steel);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--accent-slate);
}

.entry-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--accent-sky);
}

/* Page/Post Title */
.page-header,
.entry-header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: var(--light-metal);
}

.page-title,
.entry-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-steel);
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: var(--accent-slate);
    font-size: 0.9rem;
}

.entry-meta a {
    color: var(--primary-blue);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.comments-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-steel);
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--accent-slate);
    margin-bottom: 1rem;
}

.comment-respond {
    background: var(--light-metal);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.comment-reply-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 2px solid var(--chrome);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

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

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Widgets / Sidebar
   ========================================================================== */
.widget-area {
    padding: 2rem 0;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary-steel);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-metal);
}

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

.widget a {
    color: var(--primary-steel);
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--primary-blue);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 6rem 1rem;
}

.error-404 h1 {
    font-family: var(--font-display);
    font-size: 8rem;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-steel);
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--accent-slate);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 6px;
    color: var(--primary-steel);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-blue);
    color: white;
}

.pagination .current {
    background: var(--primary-blue);
    color: white;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .d-md-none {
        display: none !important;
    }
}
