/* ==========================================================================
   INTENT - Main Stylesheet
   Version: 1.0
   Author: INTENT
   ========================================================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
    /* Colors - Your Brand Palette */
    --color-primary: #2A2A2A;       /* Charcoal Black */
    --color-primary-light: #404040; /* Medium Grey */
    --color-primary-dark: #1A1A1A;
    
    --color-secondary: #5A5A5A;     /* Dark Grey */
    --color-secondary-light: #757575;
    
    --color-background: #F9F9F9;    /* Off-White */
    --color-surface: #FFFFFF;
    --color-border: #E0E0E0;
    --color-border-light: #F0F0F0;
    
    --color-text: #404040;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    --space-4xl: 6rem;      /* 96px */
    
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: var(--space-md);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--space-md);
    max-width: 65ch;
}

p:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-light { color: var(--color-text-light); }
.text-lighter { color: var(--color-text-lighter); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Sections */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-4xl) 0;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.page-hero {
    padding: calc(80px + var(--space-4xl)) 0 var(--space-3xl);
    text-align: center;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.page-hero-title {
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Sections */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background-color: rgba(42, 42, 42, 0.05);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.form-checkbox {
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.form-disclaimer {
    font-size: 0.875rem;
    color: var(--color-text-lighter);
    margin-top: var(--space-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-lg);
    }
    
    .hero {
        min-height: 80vh;
        padding: var(--space-3xl) 0;
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: var(--space-md);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        min-height: 70vh;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .nav,
    .footer,
    .btn {
        display: none;
    }
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ====================================== */
/* UPDATED HERO STYLES - Full Background */
/* ====================================== */

.hero {
    /* Background Image & Layout */
    background-image: url('../images/hero/hero-watch-desk.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    
    /* Layout */
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    width: 100%;
    
    /* Add a dark overlay for better text readability */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.25); /* Adjust opacity (0.25 = 25% dark) */
        z-index: 1;
    }
}

/* Ensure content stays above the overlay */
.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Text Styling for Light Background */
.hero-title,
.hero-subtitle {
    color: white; /* Change text to white */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* Adds depth */
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

/* Style the button to stand out */
.hero .btn-primary {
    background-color: white;
    color: var(--color-primary);
    border: none;
}

.hero .btn-primary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Adjust the scroll indicator color for light background */
.hero .scroll-indicator-line {
    background-color: white;
}

.hero .scroll-indicator-line::after {
    background-color: white;
}
