:root {
    /* The Canvas: Industrial & Professional */
    --bg-light: #F9FAFB;
    --theme-primary: #841617; /* Brick Red */
    --theme-charcoal: #2C3539; /* Gunmetal Charcoal */
    --theme-sand: #EAE3D2; /* Light Sandstone */
    --theme-gold: #C5A059; /* Subtle Bronze/Gold for accents */
    
    --bg-light: #F7F5F0;
    --bg-dark: #1A1F22;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --header-bg: rgba(255, 255, 255, 0.98);
    --white: #ffffff;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Roboto Slab', serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.15);

    /* Animation */
    --fade-in: fade-in 0.8s ease forwards;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

body.dark-mode {
    --bg-light: #030712;
    --white: #111827;
    --text-dark: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: #1F2937;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(3, 7, 18, 0.98);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-light);
    font-weight: 400;
}

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

ul {
    list-style: none;
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

/* Navigation */
header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex: 1;
}

.logo-img {
    height: 60px; /* Refined size */
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.logo-text span {
    color: var(--theme-primary);
    font-family: var(--font-main);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    flex: 2;
    justify-content: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-links a:hover {
    color: var(--theme-primary);
}

.nav-links a.active {
    color: var(--theme-primary);
    font-weight: 600;
}

/* Hero Sections */
.hero, .about-hero, .hero-small, .area-hero, .contact-hero {
    background-color: var(--theme-charcoal);
    background-image: linear-gradient(rgba(44, 53, 57, 0.6), rgba(44, 53, 57, 0.9)), url('../assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--theme-sand);
    padding: 8rem 0;
    text-align: center;
    border-bottom: 6px solid var(--theme-primary);
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay for heroes */
.hero::before, .about-hero::before, .hero-small::before, .area-hero::before, .contact-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23000000" fill-opacity="0.05" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.2;
    z-index: 0;
}

.hero .container, .about-hero .container, .hero-small .container, .area-hero .container, .contact-hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: var(--white);
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--theme-sand);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-weight: 300;
    line-height: 1.6;
}


/* Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--theme-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: var(--theme-secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--theme-secondary-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--theme-charcoal);
    color: var(--theme-charcoal);
}

.btn-outline:hover {
    background-color: var(--theme-charcoal);
    color: var(--white);
}

/* Why Choose Us */
.why-us {
    background-color: var(--white);
    text-align: center;
}

.why-us h2 {
    margin-bottom: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--theme-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--theme-gold);
}

.card h3 {
    color: var(--theme-charcoal);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--theme-sand);
    color: var(--theme-charcoal);
    padding: 4rem 0 2rem 0;
    border-top: 4px solid var(--theme-primary);
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--theme-charcoal);
    border-bottom: 2px solid var(--theme-primary);
    display: inline-block;
}

.footer-section p, .footer-section li, .footer-section a {
    color: var(--theme-charcoal);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--theme-charcoal);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--theme-primary);
    transform: scale(1.1);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-family: var(--font-heading); /* Apply Serif */
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Elegant underline accent for H2 */
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--theme-secondary), transparent);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #343a40;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color); 
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: 50%; /* Friendly circular button */
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.05); /* Very soft shadow */
}

.theme-toggle:hover {
    background: var(--white);
    color: var(--theme-primary);
    transform: rotate(15deg); /* Playful hover */
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .nav-links { display: none; }
    .theme-toggle { margin-right: 0; }
    .hero { padding: 4rem 0; }
}
/* Professional Icons & Utilities */
.lucide {
    stroke-width: 1.5px;
    vertical-align: middle;
}

.icon-primary { color: var(--theme-primary); }
.icon-gold { color: var(--theme-gold); }
.icon-sand { color: var(--theme-sand); }

.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 28px; height: 28px; }

.card i {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--theme-primary);
}

/* Heritage Quote Engine */
.quote-engine {
    background-color: var(--bg-dark);
    color: var(--theme-sand);
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 180px; /* Prevent layout shift */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 2rem;
    animation: slide-in 0.8s ease;
}

.quote-author {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--theme-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quote-author::before, .quote-author::after {
    content: '';
    width: 40px;
    height: 1px;
    background-color: var(--theme-gold);
    opacity: 0.5;
}

/* Theme Toggle Fixes */
.theme-toggle i {
    font-size: 1.2rem;
    pointer-events: none;
}
