/*
Theme Name: Alum Glass Rail v2
Theme URI: https://alumglassrail.ca/
Author: AlumGlassRail
Author URI: https://alumglassrail.ca/
Description: A high-end, modern, architectural WordPress theme for AlumGlassRail featuring glassmorphism aesthetics, Tailwind CSS, and premium typography. Showcases Windows, Glass, Doors, and Railing services.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alum-glass-v2
Tags: full-width-template, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   CUSTOM CSS — Tailwind handles most styling via CDN.
   This file only covers WordPress-specific and custom
   components that Tailwind classes cannot cover alone.
   ========================================================= */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove default WP body padding */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Counter Animation */
.counter-value {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Glassmorphism card base */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(180, 220, 255, 0.08);
}

/* Nav glass effect */
.nav-glass {
    background: rgba(5, 8, 15, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-glass.scrolled {
    background: rgba(5, 8, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(5, 8, 20, 0.55) 0%,
        rgba(5, 8, 20, 0.35) 40%,
        rgba(5, 8, 20, 0.80) 100%
    );
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(135deg, #e0f0ff 0%, #a8d4f5 40%, #c5e8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Accent line */
.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
    border-radius: 2px;
}

/* Service icon glow */
.icon-glow {
    filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.5));
    transition: filter 0.3s ease;
}

.glass-card:hover .icon-glow {
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.8));
}

/* Stats counter number */
.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Section fade-in animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* CTA hover shimmer */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

/* WordPress alignment utilities */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

/* Screen reader text */
.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;
    width: 1px;
    word-wrap: normal !important;
}
