/*
Theme Name: MS Templates
Theme URI: https://mstemplates.com
Author: MS Templates
Author URI: https://mstemplates.com
Description: Professional, premium WordPress theme for MS Templates.com. Specially designed for industrial templates (flanges, dummies, gaskets) with a clean, high-precision engineering aesthetic, responsive navigation, contact/order forms, and sticky sidebar filters.
Version: 1.0.0
Text Domain: ms-templates
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ─────────────────────────────────────────────────────────────────────────────
 * 1. CSS Custom Properties & Design Tokens (Clean Light CAD/Engineering Theme)
 * ─────────────────────────────────────────────────────────────────────────── */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --accent-blue: #2563eb;
    --accent-cyan: #0284c7;
    --accent-glow: rgba(37, 99, 235, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s ease;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    --container-width: 1250px;
    --header-height: 70px;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 2. Reset & Base Styles
 * ─────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
}

body {
    margin: 0;
    padding: 0;
    padding-top: var(--header-height);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
}

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

a:hover {
    color: var(--accent-cyan);
}

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

ul, ol {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Layout Wrapper */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.container,
.footer-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 3. Header & Navigation (Clean glassmorphism)
 * ─────────────────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.header-tagline-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Left Corner: Website Title Stylized */
.header-title {
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-size: 1.8rem;
    font-family: "Outfit", "Inter", sans-serif;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: var(--transition-normal);
}

.site-title a {
    display: flex;
    align-items: baseline;
    justify-content: center;
    text-decoration: none;
}

/* Shrink header text when scrolled */
.site-header.scrolled .site-title {
    font-size: 1.4rem;
}

.site-header.scrolled .site-tagline {
    font-size: 1.62rem;
}

.text-gradient {
    font-size: 1.38em;
    font-weight: 850;
    background: linear-gradient(135deg, #0036e6 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.text-black {
    font-size: 0.945em;
    font-weight: 700;
    color: #000000;
    -webkit-text-fill-color: #000000;
}

.site-tagline {
    font-size: 1.67rem;
    font-family: "Outfit", "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: 4px;
    margin: 6px 0 0 0;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0036e6 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 100%;
    text-align: center;
    padding-left: 4px; /* Offset the letter-spacing on the last character to ensure perfect centering */
}

/* Right: Navigation */
.header-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.primary-menu,
.main-navigation ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav__item,
.menu-item {
    position: relative;
}

.nav__link,
.menu-item a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav__link:hover,
.menu-item a:hover,
.nav__item--active .nav__link,
.current-menu-item > a {
    color: var(--accent-blue);
}

.nav__link::after,
.menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav__link:hover::after,
.menu-item a:hover::after,
.nav__item--active .nav__link::after,
.current-menu-item > a::after {
    width: 100%;
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 24px;
}

.hamburger-icon .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 4. Hero Section
 * ─────────────────────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 100px 0 100px;
    background: radial-gradient(circle at 85% 20%, #eff6ff 0%, var(--bg-primary) 70%);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 60%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    line-height: 1.6;
}

/* Decorative elements */
.hero-shape-1, .hero-shape-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

.hero-shape-1 {
    top: -10%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: rgba(37, 99, 235, 0.15);
    animation: floatShape 8s ease-in-out infinite alternate;
}

.hero-shape-2 {
    bottom: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.15);
    animation: floatShape 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatShape {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(20px) scale(1.1); }
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 5. General Layout & Columns
 * ─────────────────────────────────────────────────────────────────────────── */
.site-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 6. Sticky Sidebar (Clean White Card)
 * ─────────────────────────────────────────────────────────────────────────── */
.sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-section {
    width: 100%;
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
}

.sidebar-title i {
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.sidebar-link i {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

.sidebar-link:hover i,
.sidebar-link.active i {
    transform: translateX(3px);
    color: var(--accent-blue);
}

.term-count {
    margin-left: auto;
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-link:hover .term-count,
.sidebar-link.active .term-count {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 7. Main Content & Product Grid
 * ─────────────────────────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
}

.section-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 50px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* ── Product Grid: 3 columns, image-only cards ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Card: image-only, click to reveal details */
.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-blue);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-lg);
}

/* Image fills the card */
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    background-color: #ffffff;
    transition: transform 0.4s ease;
}

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

/* Hover zoom-in hint overlay */
.product-card::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    background: rgba(37, 99, 235, 0);
    transition: background 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.product-card:hover::after {
    background: rgba(37, 99, 235, 0.18);
}

/* Hide info & order button — shown only in modal */
.product-info,
.btn-order {
    display: none;
}

.product-card .btn-order {
    display: none !important;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* ── Template Detail Modal ── */
.template-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 40, 0.75);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
}

.template-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.template-modal {
    background: #ffffff;
    border-radius: 22px;
    max-width: 820px;
    width: 100%;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    overflow: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;     /* ← stacked: image on top, details below */
    position: relative;
    transform: scale(0.9) translateY(24px);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    max-height: 90vh;
}

.template-modal-overlay.active .template-modal {
    transform: scale(1) translateY(0);
}

/* TOP: image panel — image fills full width */
.template-modal__image-panel {
    flex: none;
    width: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.template-modal__image {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f1f5f9;
    padding: 1rem;
}

/* BOTTOM: details panel */
.template-modal__body {
    flex: none;
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.template-modal__title {
    font-size: 1.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.template-modal__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.template-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.template-modal__order {
    align-self: flex-start;
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.template-modal__order:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    color: #ffffff;
}

.template-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.template-modal__close:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

/* Responsive: tighten spacing on small screens */
@media (max-width: 600px) {
    .template-modal {
        max-height: 92vh;
    }
    .template-modal__image {
        max-height: 45vh;
        padding: 0.5rem;
    }
    .template-modal__body {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

/* Buttons */
.btn, .mst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary, .mst-btn--primary {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover, .mst-btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-order {
    background: var(--accent-blue);
    color: #ffffff;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-order:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 8. Templates / Inner Pages (About Us, Contact Us, Order Product)
 * ─────────────────────────────────────────────────────────────────────────── */
.page-banner {
    position: relative;
    padding: 60px 0 50px;
    background: radial-gradient(ellipse at center, #eff6ff 0%, var(--bg-primary) 80%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-banner h1 {
    font-size: 2.8rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -1px;
}

/* Forms (Contact & Order styling) */
.mst-contact-form-wrap,
.mst-order-form-wrap {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
}

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

.mst-form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.mst-form-group label .required {
    color: #ef4444;
}

.mst-form-group input,
.mst-form-group select,
.mst-form-group textarea {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.mst-form-group input:focus,
.mst-form-group select:focus,
.mst-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: var(--bg-secondary);
}

.mst-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.mst-form-message {
    padding: 0.9rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.mst-form-message--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.mst-form-message--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Page - About Us */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.card-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.card-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent-blue);
}

.card-box p {
    color: var(--text-secondary);
    margin: 0;
}

.why-choose-us-section {
    text-align: center;
}

.why-choose-us-section h2 {
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.4rem;
    color: var(--accent-blue);
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Page - Contact Us */
.contact-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
}

.contact-info-cards,
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card,
.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.info-card i,
.contact-card__icon i {
    font-size: 1.2rem;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.65rem;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card h4,
.contact-card__details h3 {
    font-size: 1.05rem;
    margin: 0 0 0.2rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.info-card p,
.info-card a,
.contact-card__details p,
.contact-card__details a {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.info-card a:hover,
.contact-card__details a:hover {
    color: var(--accent-blue);
}

.map-placeholder {
    margin-top: 3rem;
    height: 300px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.map-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-secondary);
}

.map-overlay-text i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

/* Page - Order Product */
.order-instructions {
    margin-bottom: 2.5rem;
    background: rgba(37, 99, 235, 0.04);
    border: 1px dashed rgba(37, 99, 235, 0.3);
    border-radius: 16px;
    padding: 1.75rem;
}

.order-instructions h3 {
    color: var(--accent-blue);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-instructions ol {
    padding-left: 1.25rem;
    list-style: decimal;
    color: var(--text-secondary);
}

.order-instructions li {
    margin-bottom: 0.4rem;
}

.order-faq {
    margin-top: 4rem;
}

.order-faq h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 9. Site Footer
 * ─────────────────────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--text-primary); /* Dark footer contrast */
    color: #94a3b8;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer h3 {
    color: #ffffff;
}

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

.footer-column h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.footer-about p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-logo {
    max-height: 40px;
}

.footer-logo img,
.footer-logo-img {
    max-height: 40px;
    width: auto;
    border-radius: 4px;
    background-color: white;
    padding: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    padding-left: 3px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-item,
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.footer-contact-item i,
.contact-item i {
    color: var(--accent-blue);
    width: 16px;
}

.footer-socials,
.social-media {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

/* Copyright Section */
.copyright-bar,
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.copyright-bar p,
.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

/* Back to top button style */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Form spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────────────────────
 * 10. Responsive Media Queries
 * ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .site-content {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 900px) {
    .site-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        position: relative;
        top: 0;
        width: 100%;
    }
    
    .about-grid,
    .vision-mission-grid,
    .contact-layout,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .copyright-bar,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .header-container {
        position: relative;
    }
    
    .site-title {
        font-size: 1.8rem; /* Smaller font on mobile */
    }
    
    .site-tagline {
        display: none; /* Hide tagline on mobile to fit nicely */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        transition: max-height 0.35s ease;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }
    
    .header-nav.active {
        max-height: 350px;
    }
    
    .primary-menu,
    .main-navigation ul {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        align-items: flex-start;
    }
    
    .nav__link,
    .menu-item a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
    
    .nav__link::after,
    .menu-item a::after {
        display: none;
    }
    
    /* Hamburger Active Animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .section-heading {
        font-size: 1.7rem;
    }
    
    .mst-contact-form-wrap,
    .mst-order-form-wrap {
        padding: 1.5rem;
    }
}



/* ─────────────────────────────────────────────────────────────────────────────
 * 12. Floating Admin Edit Button
 * ─────────────────────────────────────────────────────────────────────────── */
.admin-edit-floating-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1001;
}

.admin-edit-floating-btn a.post-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ef4444;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transition: var(--transition-normal);
}

.admin-edit-floating-btn a.post-edit-link:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.admin-edit-floating-btn a.post-edit-link::before {
    content: "\f044";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

