/* ===========================================
   D & D Redoubt - Main Stylesheet
   Montana Rugged Patriotic Design
   =========================================== */

/* === ROOT VARIABLES === */
:root {
    /* Montana Color Palette */
    --color-montana-blue: #1a3a52;
    --color-deep-blue: #0d1f2d;
    --color-gunmetal: #4a5859;
    --color-flag-red: #b22234;
    --color-dark-red: #8b1a1a;
    --color-leather-brown: #5d4e37;
    --color-forest-green: #2d4a2b;
    --color-brass: #b5a642;
    --color-antique-gold: #d4af37;
    --color-cream: #f5f1e8;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-light-gray: #e8e8e8;
    --color-medium-gray: #6b6b6b;
    --color-dark-gray: #2a2a2a;
    --color-black: #0a0a0a;
    
    /* Typography */
    --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
    --font-body: 'Lora', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-dark-gray);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-deep-blue); 
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

.page-hero-title {
    color: var(--color-cream);
		
}
.page-hero-subtitle {
    color: var(--color-cream);
		
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gunmetal);
}

a {
    color: var(--color-flag-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-dark-red);
}

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

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-flag-red);
    color: white;
    padding: var(--spacing-sm);
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
}

.container-narrow {
    max-width: 900px;
}

/* === TOP BAR === */
.top-bar {
    background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-montana-blue) 100%);
    color: var(--color-white);
    padding: var(--spacing-xs) 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item a {
    color: var(--color-white);
}

.top-bar-item a:hover {
    color: var(--color-antique-gold);
}

.top-bar-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* === HEADER & NAVIGATION === */
.main-header {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.main-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-deep-blue);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-flag-red);
    transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-flag-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--color-deep-blue);
    position: relative;
    transition: all var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--color-deep-blue);
    transition: all var(--transition-smooth);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* === BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-hero,
.btn-nav,
.btn-service {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-flag-red) 0%, var(--color-dark-red) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--color-dark-red) 0%, var(--color-flag-red) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-montana-blue) 0%, var(--color-deep-blue) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--color-deep-blue);
    border: 2px solid var(--color-deep-blue);
}

.btn-outline:hover {
    background: var(--color-deep-blue);
    color: var(--color-white);
}

.btn-hero {
    background: rgba(255,255,255,0.95);
    color: var(--color-deep-blue);
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
    box-shadow: var(--shadow-xl);
}

.btn-hero:hover {
    background: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.btn-nav {
    background: var(--color-flag-red);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-nav:hover {
    background: var(--color-dark-red);
}

.btn-service {
    background: var(--color-brass);
    color: var(--color-deep-blue);
    width: 100%;
    padding: 0.875rem 1.5rem;
}

.btn-service:hover {
    background: var(--color-antique-gold);
    transform: translateX(5px);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    font-style: italic;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    color: var(--color-antique-gold);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* === SERVICES SECTION === */
.services-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    color: var(--color-deep-blue);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-gunmetal);
    font-style: italic;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-sm);
}

.service-badge {
    background: var(--color-flag-red);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-content {
    padding: var(--spacing-md);
}

.service-content h3 {
    color: var(--color-deep-blue);
    margin-bottom: var(--spacing-sm);
}

.service-features {
    list-style: none;
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-gunmetal);
}

.service-features .icon {
    width: 20px;
    height: 20px;
    color: var(--color-forest-green);
}

/* === VALUES SECTION === */
.values-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-montana-blue) 0%, var(--color-deep-blue) 100%);
    color: var(--color-white);
}

.values-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.values-text h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.value-item {
    background: rgba(255,255,255,0.1);
    padding: var(--spacing-md);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-antique-gold);
}

.value-item h4 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.values-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
}

/* === TESTIMONIALS === */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-light-gray);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-stars {
    font-size: 1.5rem;
    color: var(--color-brass);
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-gunmetal);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-deep-blue);
}

/* === CTA SECTION === */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-flag-red) 0%, var(--color-dark-red) 100%);
    color: var(--color-white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* === FOOTER === */
.main-footer {
    background: var(--color-deep-blue);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 60px;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-md);
}

.footer-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-badges .badge {
    height: 40px;
    width: auto;
}

.footer-title {
    color: var(--color-antique-gold);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.footer-links,
.footer-contact {
    list-style: none;
}

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

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-antique-gold);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-icon {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
    transition: fill var(--transition-fast);
}

.footer-social a:hover .social-icon {
    fill: var(--color-antique-gold);
}

.footer-partners {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: var(--spacing-lg);
}

.footer-partners h5 {
    color: var(--color-antique-gold);
    margin-bottom: var(--spacing-md);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.partner-logo {
    height: 50px;
    width: auto;
   /* filter: brightness(0) invert(1); */
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.partner-logo:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--color-antique-gold);
}

.footer-credit {
    margin-top: 0.5rem;
    font-weight: 600;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-flag-red);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-dark-red);
    transform: translateY(-5px);
}
