/*
  Orange Sage Website Styles
  --------------------------
  This file contains all the custom styles for the website,
  replacing the need for the Tailwind CSS framework for easier maintenance.
*/

/* ADDED: Universal box-sizing rule to prevent padding from causing overflow */
*, *::before, *::after {
    box-sizing: border-box;
}


/* 1. General Body and Font Styles */
/* =================================== */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-y: scroll; /* Prevents layout shift when content length changes */
    background-color: #f9fafb; /* Equivalent to bg-gray-100 */
    color: #1f2937; /* Equivalent to text-gray-800 */
    margin: 0;
    line-height: 1.6;
}

/* 2. Custom CSS Variables for Branding */
/* =================================== */
:root {
    --os-orange: #F47A20;
    --os-sage: #adc14d;
    --footer-bg: #333;
}

/* ADDED: Color utility class to match Tailwind name used in HTML */
.text-os-sage {
    color: var(--os-sage);
}


/* 3. Layout and Container */
/* =================================== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
/* Responsive container widths */
@media (min-width: 640px) { .container { max-width: 640px; padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1140px; padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1280px) { .container { max-width: 1320px; } }
@media (min-width: 1536px) { .container { max-width: 1465px; } }


/* 4. Header and Navigation */
/* =================================== */
.header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem; /* 80px */
}

.logo-link img {
    padding-top: 0.4rem;
    height: 3rem; /* 48px */
    width: auto;
}
@media (min-width: 640px) {
    .logo-link img {
        height: 4rem; /* 64px */
    }
}

.desktop-nav {
    display: none; /* Hidden on mobile */
}
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 0.5rem; /* space-x-2 */
    }
}
@media (min-width: 1024px) {
    .desktop-nav {
        gap: 0.75rem; /* lg:space-x-3 */
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(244, 122, 32, 0.1); /* Light orange background */
    color: var(--os-orange); /* Orange text */
}

.nav-link.active {
    background-color: var(--os-orange);
    color: #ffffff;
}

/* Mobile Menu */
.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
}
.mobile-menu-button:hover {
    color: var(--os-orange);
}
.mobile-menu-button svg {
    height: 1.5rem;
    width: 1.5rem;
}
@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu {
    display: none; /* Initially hidden */
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.mobile-menu.show {
    display: block;
}
.mobile-menu .nav-link {
    display: block;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}
.mobile-menu .nav-link:last-child {
    border-bottom: 1px solid #e5e7eb;
}


/* 5. Buttons */
/* =================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: none;
}
.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--os-orange);
}
.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--os-sage);
}
.btn-secondary:hover {
    opacity: 0.9;
}


/* 6. Reusable Components (Cards, Titles) */
/* =================================== */
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}
@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}
.card h2 {
    color: var(--os-orange);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
}
.card.sage-heading h2 {
    color: var(--os-sage);
}

.card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
@media (min-width: 640px) {
    .card {
        padding: 2rem;
    }
}

.page-header-bg {
    color: #ffffff;
    padding: 1.05rem 1rem; 
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    text-align: center;
    background-color: var(--os-sage);
}
.page-header-bg.orange {
    background-color: var(--os-orange);
}
.page-header-bg h1 {
    font-size: 2.25rem;
    font-weight: 700;
}


/* 7. Grid and Flex Layouts */
/* =================================== */
.grid-2-col {
    display: grid;
    gap: 3rem;
}
@media (min-width: 768px) {
    .grid-2-col {
        grid-template-columns: repeat(2, 1fr);
    }
}
.items-center { align-items: center; }
.items-start { align-items: flex-start; }


/* 8. Page-Specific Styles */
/* =================================== */
/* --- Home Page --- */
.hero-section {
    position: relative;
    padding: 5rem 0;
    color: #ffffff;
    text-align: center;
    background-image: url('images/image_57.png');
    background-size: cover;
    background-position: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #000000;
    opacity: 0.1;
}
.hero-content {
    position: relative;
    z-index: 10;
}
.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 48rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons .btn:first-child { margin-right: 0.5rem; margin-bottom: 0.5rem; }

@media (min-width: 640px) {
    .hero-section { padding: 8rem 0; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.25rem; }
    .hero-buttons .btn:first-child { margin-bottom: 0; }
}
@media (min-width: 768px) {
    .hero-content h1 { font-size: 3.75rem; }
}

.bg-white-section h2 {
    color: var(--os-orange);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* --- AI Experience Page --- */
.image-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.image-stack .ai-accent-bg,
.image-stack .feature-image {
    width: 100%;
}
.image-caption {
    font-size: 0.875rem;
    color: #4b5563;
    text-align: center;
    font-style: italic;
}
.ai-accent-bg {
    background-image: url('images/image_53.png');
    background-size: cover;
    background-position: center;
    aspect-ratio: 3 / 2;
    border-radius: 0.5rem; /* Ensure corners are rounded */
}
.about-accent-bg {
    background-image: url('images/image_70l.png');
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.contact-accent-bg {
    background-image: url('images/image_49.png');
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    height: 100%;
}

.text-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 0.375rem;
}
.text-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}
.text-overlay ul {
    list-style-position: inside;
    color: #ffffff;
    padding-left: 0;
}

/* --- Team Page --- */
.team-page-accent-bg {
    background-image: url('images/image_38.png');
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) { .team-page-accent-bg { padding: 3rem; } }

.team-page-accent-bg p {
    font-size: 1.25rem;
    text-align: center;
    color: #374151;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 0.375rem;
    max-width: 48rem;
    margin: auto;
}
.team-grid {
    display: grid;
    gap: 2rem 3rem;
    justify-items: center;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-profile-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 28rem; /* max-w-md */
}
.team-photo-wrapper {
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .team-photo-wrapper {
        width: 18rem;
        height: 18rem;
    }
}
.team-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-profile-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--os-orange); margin-top: 0; margin-bottom: 0.25rem; }
.team-profile-card .role { font-size: 1.125rem; font-weight: 600; color: var(--os-sage); margin-bottom: 0.75rem; }
.team-profile-card .bio { font-size: 1rem; color: #374151; }

/* --- General List Styles (to mimic Tailwind reset) --- */
.card ul, .experience-accent-bg .content-box ul {
    list-style-position: inside;
    padding-left: 0;
    list-style-type: disc;
}
/* ADDED: Spacing for list items that function as paragraphs */
.card ul li {
    margin-bottom: 0.75rem;
}


/* --- Experience Page (Redesigned Card) --- */
.experience-card {
    padding: 0;
    overflow: hidden; /* Ensures the image corners are rounded with the card */
}

.experience-card-image {
    width: 100%;
    height: 10rem; /* Adjust height as needed */
    overflow: hidden;
}

.experience-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-card-content {
    padding: 2rem;
}


/* --- Privacy Policy Pages --- */
.policy-content-wrapper { max-width: 56rem; margin: auto; }
.policy-content-wrapper h2 { font-size: 1.5rem; font-weight: 700; color: var(--os-orange); margin-bottom: 1rem; margin-top: 1.5rem; }
.policy-content-wrapper h3 { font-size: 1.25rem; font-weight: 700; color: var(--os-sage); margin-bottom: 0.5rem; }
.policy-content-wrapper p, .policy-content-wrapper ul { margin-bottom: 0.75rem; color: #374151; }
.policy-content-wrapper ul { list-style: disc; padding-left: 0; list-style-position: inside; }
.policy-content-wrapper ul ul { list-style-type: circle; margin-top: 0.5rem; padding-left: 1.5rem; list-style-position: outside;}
.policy-content-wrapper a { color: var(--os-sage); text-decoration: underline; }
.policy-content-wrapper a:hover { opacity: 0.8; }
/* MODIFIED: Removed margin-bottom from policy list items to avoid double spacing */
.policy-content-wrapper ul li {
    margin-bottom: 0;
}
.policy-table-container { overflow-x: auto; margin: 1.5rem 0; }
.policy-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.policy-table th, .policy-table td { padding: 0.75rem; border: 1px solid #6b7280; text-align: left; }
.policy-table th { background-color: #f3f4f6; font-weight: 600; }
.download-section {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.download-section h3 { font-size: 1.25rem; font-weight: 700; color: var(--os-orange); margin-top: 0; }
.download-section p { margin-top: 0.5rem; margin-bottom: 1rem; }
.download-section .btn { display: inline-flex; align-items: center; justify-content: center; }
.download-section .btn svg { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; }

/* 9. Footer */
/* =================================== */
.footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}
.footer-logo-wrapper {
    display: inline-block;
    background-color: #ffffff;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin: 0 auto 1rem;
}
.footer-logo-wrapper img {
    padding-top: 0.5rem;
    height: 3.1rem;
    width: auto;
}
.footer p { margin: 0; }
.footer .copyright-line { margin-bottom: 0.25rem; }
.footer .copyright-line a { color: var(--os-sage); text-decoration: none; }
.footer .copyright-line a:hover { text-decoration: underline; }
.footer .tagline {
    font-size: 0.875rem;
    color: #9ca3af; /* text-gray-400 */
}

/* 10. Forms */
/* =================================== */
.form-group { margin-bottom: 1rem; }
.form-group:last-of-type { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.25rem; }
.form-input, .form-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.form-input:focus, .form-textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--os-orange);
    box-shadow: 0 0 0 2px var(--os-orange);
}

/* Helper class */
.w-full { width: 100%; }

