/* --- 1. Global Styles & Variables --- */

/* :root is where we define our color palette and fonts for easy changes. */
:root {
    --bg-color: #1a1a1a;        /* Very dark grey, near-black */
    --header-bg: #252525;      /* Slightly lighter for the header */
    --text-color: #e0e0e0;      /* Off-white for readability */
    --accent-color: #5b9bd5;    /* A muted steel blue for accents */
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Basic reset for consistency */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.7;
    font-size: 18px; /* Slightly larger for readability */
}

/* --- 2. Layout Container --- */

/* This creates the narrow-ish content column you wanted. */
.container {
    max-width: 1100px;
    margin: 0 auto; /* Centers the container */
    padding: 0 2rem;  /* Space on the left/right */
}


/* --- 3. Header & Navigation --- */

.site-header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-navigation ul {
    list-style: none; /* Removes bullet points */
    display: flex;
    gap: 1.5rem; /* Space between nav items */
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent; /* Placeholder for active state */
    transition: color 0.3s, border-color 0.3s;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* Highlight the current page's link in the navigation */
#page-home .main-navigation a[href="index.shtml"],
#page-services .main-navigation a[href="services.shtml"],
#page-pricing .main-navigation a[href="pricing.shtml"],
#page-roles .main-navigation a[href="roles.shtml"],
#page-technology .main-navigation a[href="technology.shtml"],
#page-faq .main-navigation a[href="faq.shtml"],
#page-showroom .main-navigation a[href="showroom.shtml"],
#page-contact .main-navigation a[href="contact.shtml"] {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Login = subtle, text-based */
.login-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.85;
    transition: color 0.3s, opacity 0.3s;
}

.login-link:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Sign Up = primary action button */
.signup-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.signup-button:hover {
    background-color: #4a8ac9;
    transform: translateY(-1px);
}

/* --- 4. Main Content & Sections --- */

main {
    padding: 3rem 0; /* Vertical space for the main content area */
}

/* Add consistent spacing between all sections */
main section {
    padding: 3rem 0;
}

/* Style for typography */
h1, h2, h3 {
    color: var(--accent-color);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
p { margin-bottom: 1rem; }
.intro { font-size: 1.25rem; opacity: 0.9; }


/* --- 5. Home Page Specific Styles --- */

.hero {
    /* 1. The Image & Overlay */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-image.jpg');
    
    /* 2. Positioning & Sizing */
    background-size: cover;
    background-position: center 15%;   /* CHANGED: Shifts focus slightly down to show more body, but keeps heads safe */
    background-repeat: no-repeat;
    
    /* 3. Layout & Spacing */
    min-height: 55vh;                  /* CHANGED: increased from 45vh to 55vh to reveal more torso */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;                
    
    /* 4. Text Coloring */
    color: #ffffff;
}

/* Specific styling for the Hero Heading */
.hero h1 {
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

/* Specific styling for the intro paragraph */
.hero .intro {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    opacity: 1;
}

/* Features section remains the same */
.features .container {
    display: flex;
    gap: 2rem;
    text-align: center;
}

/* --- 6. Reusable Components (like Buttons) --- */
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.button:hover {
    background-color: #4a8ac9; /* A slightly lighter blue */
    transform: translateY(-2px);
}

/* --- 7. Footer --- */
.site-footer {
    border-top: 1px solid #333;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-navigation a {
    color: #aaa;
    text-decoration: none;
}
.footer-navigation a:hover {
    color: var(--accent-color);
}


/* --- 8. Responsiveness (Mobile-First) --- */

/* For tablets and smaller devices */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-wrap: wrap; /* Allow nav items to wrap to next line */
        justify-content: center;
        gap: 1rem;
    }

    .features .container {
        flex-direction: column; /* Stack the feature items vertically */
    }

    .auth-links {
    justify-content: center;
}

}
/* --- 9. Contact Form Styles --- */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
form button {
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- 10. Images --- */
.droid-image {
    width: 220px;
    height: 320px;
    object-fit: cover;   /* crops instead of stretching */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* === 11. CHECKLIST PAGE STYLES === */

/* Checklist Container */
.checklist {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Checklist Sections */
.checklist-section {
    background: var(--header-bg);
    border: 1px solid var(--accent-color); /* FIXED: Changed color to be visible */
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.checklist-section h2 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
    font-size: 1.8rem;
}

.checklist-section h3 {
    color: var(--text-color);
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1.3rem;
}

/* Checklist Items */
.checklist-item {
    display: flex;
    align-items: flex-start;
    margin: 0.8rem 0;
    padding: 0.5rem;
    background: #252525;
    border-radius: 4px;
    border-left: 4px solid #333;
    transition: all 0.2s;
    color: var(--text-color);
}

.checklist-item:hover {
    border-left-color: var(--accent-color);
    background: #2a2a2a;
}

.checklist-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    transform: scale(1.2);
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-color);
}

/* Prompt Access Section */
.prompt-access {
    background: #2a2a2a;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.prompt-access h4 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1.4rem;
}

.access-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Code Blocks for Prompts */
.code-block {
    background: #1a1a1a;
    color: var(--text-color);
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 1rem 0;
    overflow-x: auto;
    display: none;
    border: 1px solid #333;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background: #219653;
}

/* Notes Section */
.notes {
    background: #2a2a2a;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.notes h4 {
    margin-top: 0;
    color: var(--accent-color);
}

/* FIXED: Added styles for .btn and .btn-secondary */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #4a8ac9;
}

.btn-secondary {
    background: #4f5b66;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #6a7885;
}

/* Inline code in checklist */
.checklist-item code {
    background: #333;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .checklist {
        padding: 0 1rem;
    }
    
    .access-options {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* === 12. PROMPT CARD STYLES (Replaces old prompt styles) === */

.prompt-card {
    background: #222; /* From pricing card */
    border-radius: 1rem; /* From pricing card */
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5); /* From pricing card */
    margin: 1.5rem 0; /* Spacing above and below the card */
}

.prompt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem; /* Add space between header and content when visible */
}

.prompt-card-header h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.prompt-actions {
    display: flex;
    gap: 0.5rem;
}

.prompt-content {
    display: none; /* CRITICAL: Ensures prompts are hidden on page load */
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #333;
}

.prompt-content pre {
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}