/* ====================================
   APPROACH LABS AI - CSS STYLESHEET
   Following design specs from CLAUDE.md
   ==================================== */

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

/* Base typography settings as per design specs:
   - Body: Almarai, 400 weight, 1.5em line-height, 16px base */
body {
    font-family: 'Almarai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
}

/* Screen reader only content for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ====================================
   TYPOGRAPHY SYSTEM
   Following design specs exactly
   ==================================== */

/* Headings: Libre Baskerville, 400 weight, 1.2em line-height, -0.02em letter-spacing */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.contact-title {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #333;
}

/* H1-H4 sizes as per design specifications */
h1, .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2, .section-title, .contact-title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Body text using Almarai with design specs */
p, .hero-subtitle, .hero-description, .section-description, .contact-description {
    font-family: 'Almarai', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.hero-description, .section-description, .contact-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
}

/* ====================================
   LAYOUT CONTAINERS
   Following design specs for containers
   ==================================== */

/* Container: max-width 1200px, consistent padding/margins as per specs */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ====================================
   NAVIGATION
   Sticky navbar with professional styling
   ==================================== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Logo using Libre Baskerville for brand consistency */
.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo-image {
    height: 1.8rem;
    width: auto;
    transition: transform 0.3s ease;
    margin-bottom: 0.1rem;
}

.nav-logo-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
    line-height: 1;
}

.nav-logo:hover .nav-logo-text {
    color: #FFC700; /* Accent color on hover */
}

.nav-logo:hover .nav-logo-image {
    transform: scale(1.05);
}

/* Navigation menu using Almarai */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: 'Almarai', sans-serif;
    color: #666;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #333;
}

/* Active link indicator using accent color */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFC700;
}

/* ====================================
   HERO SECTION
   Primary headline and sub-headline area with background image
   ==================================== */
.hero {
    background-image: url('../images/imgg-od3-ojqabo6y.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0 6rem 0;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Dark overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-title {
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.375rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.125rem;
    color: #666;
    margin: 0 auto 3rem auto;
    max-width: 600px;
}

/* ====================================
   BUTTONS
   Pill-shaped design with Almarai font as per specs
   Padding: 1.2em vertical / 2em horizontal
   ==================================== */
.cta-button,
.submit-button {
    font-family: 'Almarai', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    background-color: #FFC700; /* Primary accent color */
    color: #333;
    padding: 1.2em 2em; /* Exact padding as per specs */
    border: none;
    border-radius: 50px; /* Pill-shaped design */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 199, 0, 0.3);
    text-align: center;
}

.cta-button:hover,
.submit-button:hover {
    background-color: #e6b300; /* Darker yellow on hover */
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 199, 0, 0.4);
}

.cta-button:active,
.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 199, 0, 0.3);
}

/* ====================================
   ABOUT/MISSION SECTION
   ==================================== */
.about {
    background-color: #f8f9fa;
    padding: 5rem 0;
    text-align: center;
}

.about .container {
    max-width: 800px;
}

.section-description {
    margin: 0 auto;
    font-size: 2.75rem;
    line-height: 1.3;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #333;
    max-width: 800px;
}

/* ====================================
   CONTACT SECTION
   Grid layout with form integration
   ==================================== */
.contact-section {
    background-color: #fff;
    padding: 6rem 0;
    border-top: 1px solid #f0f0f0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    padding-top: 2rem;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #333;
}

.contact-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-email {
    margin: 0;
}

.contact-email a {
    font-family: 'Almarai', sans-serif;
    color: #333;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: #FFC700;
}

/* ====================================
   CONTACT FORM
   Filled, pill-shaped fields with 1px border as per specs
   ==================================== */
.contact-form-container {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.contact-form {
    max-width: 500px;
    width: 100%;
}

/* Form row for side-by-side fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

/* Form labels using Almarai */
.form-label {
    font-family: 'Almarai', sans-serif;
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: #FFC700;
    font-weight: 600;
}

/* Form fields: filled, pill-shaped, 1px border, medium padding as per specs */
.form-input,
.form-textarea {
    font-family: 'Almarai', sans-serif;
    width: 100%;
    padding: 1rem 1.5rem; /* Medium padding as per specs */
    border: 1px solid #ddd; /* 1px border as per specs */
    border-radius: 50px; /* Pill-shaped design */
    font-size: 1rem;
    background-color: #fff; /* Filled style */
    transition: all 0.3s ease;
    outline: none;
}

.form-textarea {
    border-radius: 20px; /* Less rounded for textarea */
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
    padding-top: 1.25rem;
}

/* Focus states with accent color */
.form-input:focus,
.form-textarea:focus {
    border-color: #FFC700;
    box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.2);
}

/* Error message styling for accessibility */
.error-message {
    font-family: 'Almarai', sans-serif;
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* Submit button specific styling */
.submit-button {
    width: auto;
    margin-top: 1rem;
    font-size: 0.95rem;
    padding: 0.8em 1.8em;
    background-color: #333;
    color: #fff;
    box-shadow: none;
}

.submit-button:hover {
    background-color: #000;
    transform: none;
    box-shadow: none;
}

/* ====================================
   FOOTER
   Clean footer with company information
   ==================================== */
.footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-copy,
.footer-contact {
    font-family: 'Almarai', sans-serif;
    margin: 0;
    font-size: 0.95rem;
}

.footer a {
    color: #FFC700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

/* ====================================
   RESPONSIVE DESIGN
   Mobile-first approach with breakpoints at 768px and 480px
   ==================================== */

/* Tablet breakpoint: 768px */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
        height: 70px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-logo-image {
        height: 1.6rem;
    }
    
    .nav-logo-text {
        font-size: 1.25rem;
    }
    
    /* Hero responsive adjustments */
    .hero {
        padding: 6rem 0 4rem 0;
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Contact section becomes single column */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .contact-title {
        font-size: 2.25rem;
    }
    
    .contact-form-container {
        padding: 2.5rem;
    }
    
    /* Form row becomes single column on tablet */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 2rem;
    }
}

/* Mobile breakpoint: 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-logo-image {
        height: 1.4rem;
    }
    
    .nav-logo-text {
        font-size: 1.125rem;
    }
    
    /* Hero mobile adjustments */
    .hero {
        padding: 4rem 0 3rem 0;
        min-height: 40vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .contact-description {
        font-size: 1rem;
    }
    
    .cta-button,
    .submit-button {
        font-size: 0.95rem;
        padding: 1.1em 1.8em;
    }
    
    .about {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0;
    }
}

/* ====================================
   FOCUS & ACCESSIBILITY IMPROVEMENTS
   ==================================== */

/* Enhanced focus visibility for keyboard navigation */
.nav-link:focus,
.cta-button:focus,
.form-input:focus,
.form-textarea:focus,
.submit-button:focus {
    outline: 2px solid #FFC700;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-button,
    .submit-button {
        background-color: #000;
        color: #FFC700;
        border: 2px solid #FFC700;
    }
    
    .form-input,
    .form-textarea {
        border: 2px solid #333;
    }
}