/* Steampunk-inspired Sales Website Styles */
/* Color Palette: Black (#1a1a1a), White (#ffffff), Gold (#d4af37) */

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

:root {
    --primary-black: #1a1a1a;
    --secondary-black: #2d2d2d;
    --primary-white: #ffffff;
    --off-white: #f8f8f8;
    --primary-gold: #d4af37;
    --secondary-gold: #b8941f;
    --dark-gold: #9a7c1a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --soft-shadow: rgba(0, 0, 0, 0.1);
    --border-radius-2xl: 1rem;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 150px;
    --header-line-y: 135px; /* vertical position of the gold line inside header */
}

body {
    font-family: 'PT Sans', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    color: var(--primary-white);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    /* border-bottom moved inside via pseudo-element to crop logo */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px var(--soft-shadow);
    height: var(--header-height);
    overflow: visible;
    padding-bottom: 2px;
}

.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-line-y);
    height: 2px;
    background: var(--primary-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

/* Tighten header spacing: ensure logo has no margins */
.nav-brand img { margin: 0; display: block; margin-top: -10px; }

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-title {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.brand-subtitle {
    color: var(--off-white);
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    top: -6px; /* nudge up slightly so buttons aren't clipped by the line */
}

.nav-link {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-2xl);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--soft-shadow);
}

/* Button Styles */
.cta-button {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--primary-black);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-2xl);
    font-family: 'PT Sans', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--secondary-gold), var(--dark-gold));
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-white);
    border: 2px solid var(--primary-gold);
}

.cta-button.secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--primary-black);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
    padding: 0.05rem 2rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-white), var(--primary-gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--off-white);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gear-decoration {
    width: 300px;
    height: 300px;
    border: 4px solid var(--primary-gold);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
    box-shadow: 
        inset 0 0 30px rgba(212, 175, 55, 0.2),
        0 0 50px rgba(212, 175, 55, 0.1);
    animation: rotate 20s linear infinite;
}

.gear-decoration::before,
.gear-decoration::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
}

.gear-decoration::before {
    top: -20px;
    left: 50px;
    animation: rotate-reverse 15s linear infinite;
}

.gear-decoration::after {
    bottom: -20px;
    right: 50px;
    animation: rotate 10s linear infinite;
}

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

@keyframes rotate-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px var(--shadow-color);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.05));
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius-2xl);
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px var(--soft-shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: sepia(1) hue-rotate(35deg) brightness(1.2);
}

.feature-title {
    color: var(--primary-gold);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--off-white);
    opacity: 0.9;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: rgba(26, 26, 26, 0.3);
}

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

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-2xl);
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px var(--soft-shadow);
    position: relative;
    /* Layout for consistent button alignment */
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

/* Ensure product images have consistent space */
.pricing-card > a > img, .pricing-card > img {
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 220px;
    width: 100%;
    object-fit: cover;
}

/* Constrain description height for alignment */
.pricing-card .feature-description { 
    min-height: 60px;
    flex-grow: 0;
    flex-shrink: 0;
}

/* List styling in pricing cards */
.pricing-card ul {
    text-align: left;
    flex-grow: 0;
    flex-shrink: 0;
}

/* Push price and button to bottom */
.pricing-card .pricing-amount { 
    margin-top: auto;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.pricing-card .cta-button { 
    margin-top: 0;
    width: 100%;
}

.pricing-card .add-to-cart { 
    margin-top: 0; 
    width: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-2xl);
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.2);
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.05);
}

.pricing-title {
    color: var(--primary-gold);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 2rem;
}

/* Push add-to-cart button to bottom of product cards */
.pricing-card .add-to-cart { margin-top: auto; }

/* 2x2 grid specifically for Why Choose Us section */
.why-grid { grid-template-columns: repeat(2, 1fr) !important; }
@media (max-width: 820px){
    .why-grid { grid-template-columns: 1fr !important; }
}

.pricing-period {
    font-size: 1rem;
    color: var(--off-white);
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--off-white);
    opacity: 0.9;
}

.pricing-features li:before {
    content: '⚙️';
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: var(--primary-black);
    border-top: 1px solid var(--primary-gold);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Powered badge (bottom-right) */
.powered-badge {
    position: fixed;
    right: 14px;
    bottom: 0;
    width: 84px;
    height: 84px;
    opacity: 0.85;
    z-index: 500;
}
.powered-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
}
.powered-badge:hover { opacity: 1; }

.footer-brand h3 {
    color: var(--primary-gold);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--off-white);
    opacity: 0.8;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--primary-white);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 0.5rem;
    border-radius: var(--border-radius-2xl);
}

.footer-link:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 4rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gear-decoration {
        width: 200px;
        height: 200px;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #1f1f1f;
    border: 2px solid #d4af37;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Message Animation */
#welcomeMessage {
    animation: slideInRight 0.5s ease-out;
}

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

/* Radio button hover effects in modals */
.modal-content label:has(input[type="radio"]) {
    transition: all 0.3s ease;
}

.modal-content label:has(input[type="radio"]):hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37 !important;
}

.modal-content label:has(input[type="radio"]:checked) {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37 !important;
}

/* Input field focus effects */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input {
    transition: all 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}