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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #eef2f7;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}
/* ==========================================================================
   2. CONTAINERS & LAYOUT WRAPPERS
   ========================================================================= */
.container {
/*    max-width: 1100px; */
	max-width: 90vw;
    margin: 0 auto;
    padding: 0 15px;
}

/* Main Layout Wrapper - Mobile First (Stacked) */
.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;    /* Stacks main content on top, sidebar below on mobile */
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Tablet and Laptop Screens (Side-by-side 2-column layout) */
@media (min-width: 768px) {
    .layout-wrapper {
        grid-template-columns: minmax(0, 1fr) 280px; /* Restores your side-by-side layout on larger screens */
    }
}


.content-area {
    min-width: 0;
}

/* ==========================================================================
   3. HEADER & SVG LOGO STYLING (Enlarged & Bold)
   ========================================================================= */
.site-header {
    background-color: #ffffff;
    border-bottom: 3px solid #1e3a8a;
    padding: 25px 0 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Container styling to center and scale the SVG nicely */
.gold-leaf-logo {
  display: block;
  width: 100%;          /* Allows it to shrink fluidly on small phone screens */
  max-width: 480px;     /* Prevents it from ballooning on laptops and desktops */
  height: auto;         /* Maintains aspect ratio automatically */
  margin: 0 auto;       /* Centers the logo horizontally in its container */
  overflow: visible;
}

/* Base font styling shared across all layers */
.logo-text,
.logo-text-glint,
.logo-text-gold {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 72px;
  letter-spacing: 4px;
  text-anchor: middle;
}

/* 1. Background 3D Extrusion Layers (Solid fill ONLY, zero strokes to avoid internal grid lines) */
.block-extrusion-blue text {
  fill: #0F2D59;
  stroke: none;
}

/* 2. Mid-Facet Glint Pass (Soft highlight overlay across the 3D depth) */
.block-glint-pass text {
  fill: url(#blueBlockGlint);
  stroke: none;
  mix-blend-mode: overlay;
}

/* 3. Front Gold-Leaf Face (Rich metallic gradient with a crisp, clean outer contour) */
.logo-text-gold {
  fill: url(#goldGradient);
  stroke: #4A3502;       /* Deep rich brown/gold tone for the outer edge instead of harsh black */
  stroke-width: 0.75px;  /* Thin, elegant outer definition */
  paint-order: stroke fill;
}
.site-tagline {
    text-align: center;
    font-size: 1.05em;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   4. NAVIGATION BAR
   ========================================================================= */
.main-nav {
    background-color: #1e3a8a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;           /* Allows items to wrap onto a second line gracefully on mobile */
    justify-content: center;
    gap: 8px 16px;             /* Compact vertical/horizontal gap for mobile */
    list-style: none;
    padding: 12px 15px;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95em;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.15s ease-in-out;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.main-nav a.active {
    background-color: #d97706;
    color: #ffffff;
}

/* Tablet and Laptop Screens: Restore wider spacing */
@media (min-width: 768px) {
    .main-nav ul {
        gap: 2rem;             /* Restores your original generous desktop gap */
        padding: 10px 0;
    }
    
    .main-nav a {
        font-size: 1em;
        padding: 6px 14px;
    }
}


/* ==========================================================================
   5. HERO SHOWCASE SECTION (index.php)
   ========================================================================= */
.hero-showcase {
    background: #ffffff;
    padding: 35px 0;
    border-bottom: 1px solid #cbd5e1;
    margin-bottom: 0;
}

/* Hero Showcase Container - Mobile First (Stacked) */
.hero-container {
    display: grid;
    grid-template-columns: 1fr; /* Stacks image on top, text below on mobile */
    gap: 30px;
    align-items: center;
}

/* Tablet and Laptop Screens (Side-by-side 2-column grid) */
@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1.2fr; /* Restores your side-by-side layout on larger screens */
    }
}


.hero-image-wrapper {
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hero-caption {
    display: block;
    font-size: 0.85em;
    color: #64748b;
    margin-top: 10px;
    font-style: italic;
}

.hero-text-content h1 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-text-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #334155;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
    transition: background 0.2s;
}

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

.btn-secondary {
    display: inline-block;
    background-color: #f8fafc;
    color: #1e3a8a;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #cbd5e1;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
}

/* ==========================================================================
   6. CARDS, RANGES & ANNOUNCEMENTS (index.php)
   ========================================================================= */
.welcome-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.welcome-card h2 {
    color: #1e3a8a;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.announcement-box {
    background-color: #fef3c7;
    border-left: 5px solid #d97706;
    padding: 18px;
    border-radius: 0 6px 6px 0;
    margin-top: 20px;
}

.announcement-box h3 {
    color: #92400e;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.announcement-box p {
    color: #78350f;
}

.product-ranges h2 {
    color: #1e3a8a;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.range-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
}

.range-card.featured {
    border: 2px solid #3b82f6;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-card h3 {
    color: #1e3a8a;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.scale-list {
    margin-top: 15px;
    padding-left: 20px;
    font-size: 0.95em;
    color: #4b5563;
}

.scale-list li {
    margin-bottom: 8px;
}

/* ==========================================================================
   7. LIST PAGE CATALOG & FILTER STYLES (list.php)
   ========================================================================= */
.page-title {
    margin-bottom: 20px;
}

.page-title h2 {
    color: #1e3a8a;
    font-size: 1.8rem;
}

.filter-bar {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: bold;
    font-size: 0.9em;
    color: #334155;
}

.btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 7px 14px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-filter:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e3a8a;
}

.btn-filter.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

/* Catalog Group Cards Grid */
.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin: 20px 0 40px 0;
}

.group-card {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #1e3a8a;
}

.thumbnail-container {
    width: 100%;
    height: 180px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #94a3b8;
    font-size: 0.9em;
    font-style: italic;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-body h3 {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    color: #1e3a8a;
}

.view-link {
    font-size: 0.9em;
    font-weight: bold;
    color: #1d4ed8;
}

.group-card:hover .view-link {
    text-decoration: underline;
}

/* ==========================================================================
   8. SIDEBAR & FOOTER
   ========================================================================= */
.sidebar-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sidebar-box h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

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

.sidebar-box li {
    margin-bottom: 10px;
}

.sidebar-box a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-box a:hover {
    text-decoration: underline;
    color: #1e3a8a;
}

.site-footer {
    background-color: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 3px solid #1e3a8a;
    font-size: 0.95em;
}