/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    /* Color Variables */
    --color-light: #f9fafb;
    --color-dark: #111827;
    --color-neutral: #6b7280;
    --color-neutral-alt: #e5e7eb;
    --color-primary: #FFCBCB;
    --color-primary-hover: #FF9EA6;
    --color-bg-light: #ffffff;
    --color-bg-dark: #1f2937;
    --color-bg-neutral: #374151;
    --color-bg-neutral-alt: #f3f4f6;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "BBH Hegarty", sans-serif;
    
    /* Spacing */
    --max-width: 1280px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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);
    --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
}

h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===========================
   Header Styles
   =========================== */

.header {
    background-color: var(--color-light);
    color: var(--color-dark);
    padding: 2rem;
    box-shadow: var(--shadow-header);
    position: relative;
    z-index: 50;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    margin-right: 2.5rem;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-list a {
    font-size: 0.875rem;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.nav-list a:hover {
    color: var(--color-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
}

.dropdown-toggle:hover {
    color: var(--color-primary);
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    fill: currentColor;
    flex-shrink: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 11rem;
    background-color: var(--color-light);
    border-top: 2px solid var(--color-primary);
    box-shadow: var(--shadow-header);
    padding: 1.25rem 1.5rem 1.5rem;
    list-style: none;
    display: none;
    z-index: 10;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu li {
    margin-bottom: 1rem;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    color: var(--color-primary);
}

/* Header CTA */
.header-cta {
    display: none;
    margin-left: auto;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    margin-left: auto;
    padding: 0.5rem;
    margin-right: -0.25rem;
}

.menu-icon,
.close-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-light);
    color: var(--color-dark);
    padding: 1rem;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.mobile-menu-header img {
    height: 40px;
}

.mobile-menu-close {
    padding: 0.5rem;
    margin-right: -0.25rem;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav > ul > li {
    border-top: 1px solid var(--color-neutral-alt);
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    width: 100%;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    text-align: left;
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 1rem;
    display: none;
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-menu li {
    margin-bottom: 0.75rem;
}

.mobile-cta {
    border-top: 1px solid var(--color-neutral-alt);
    padding-top: 1rem;
}

/* ===========================
   Button Styles
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary-hover);
    color: white;
}

.mobile-cta .btn {
    width: 100%;
    display: flex;                
    align-items: center;          /* Vertically center content */
    justify-content: center;      /* Horizontally center content */
    padding: 1rem 1.25rem;        /* Balanced padding */
    line-height: 1.2;             /* Controlled line-height */
    text-align: center;
    min-height: 3rem;             /* Consistent height */
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-icon {
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.5em;
    fill: currentColor;
    flex-shrink: 0;
}

/* ===========================
   Hero Section
   
   MOBILE STYLES BELOW ARE ISOLATED - Desktop changes won't affect mobile!
   
   KEY ADJUSTABLE VALUES:
   
   Desktop (1024px+):
   - .hero-image width: Controls image container size (42% = current, 45% = slightly larger, 40% = smaller)
   - .hero-image img max-width: Actual image size (90% = current, 100% = normal, 85% = smaller)
   - .hero-text max-width: Text area width (40rem = current, 35rem = narrower, 45rem = wider)
   - .hero-content gap: Space between text and image (6rem = current, 5rem = tighter, 7rem = looser)
   
   Tablet (640px):
   - .hero-text max-width: Text width on tablets (32rem current)
   
   Mobile (default - DO NOT MODIFY unless you want to change mobile):
   - .hero-section padding: Overall section spacing (3rem 1.5rem = current)
   - .hero-content gap: Vertical space between stacked text and image (3rem = current)
   - .hero-image justify-content: center (keeps image centered on mobile)
   =========================== */

.hero-section {
    background-color: var(--color-light);
    padding: 8rem 1.5rem;  /* Balanced padding for mobile */
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;  /* Reduced gap on mobile */
}

.hero-text {
    max-width: 100%;  /* Full width on mobile */
    margin-left: 0;    /* No indent on mobile */
}

.badge {
    display: inline-block;
    color: var(--color-neutral);
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-neutral-alt);
    border-radius: var(--radius-sm);
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 1rem;
    color: var(--color-dark);
}

.hero-description {
    margin-top: 1.5rem;
}

.hero-description p {
    margin-bottom: 1rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;  /* Center image on mobile */
    padding-right: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   Divider Section
   =========================== */

.divider-section {
    background-color: var(--color-light);
    padding: 1.75rem;
}

.divider {
    height: 0;
    width: 100%;
    border: none;
    border-top: 1px solid var(--color-neutral-alt);
}

/* ===========================
   Featured Section
   =========================== */

.featured-section {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 2rem;
}

.featured-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-light);
}

.section-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 1rem;
}

.featured-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--color-light);
    color: var(--color-dark);
    padding: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.card-image {
    width: 100%;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
}

.card-tagline {
    font-size: 0.875rem;
    color: var(--color-neutral);
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.card-text {
    line-height: 1.6;
}

/* ===========================
   About Section
   =========================== */

.about-section {
    background-color: var(--color-light);
    padding:6rem 1rem;
}

.about-content {
    max-width: 80rem;
    margin: 0 auto;
}

.about-card {
    background-color: var(--color-bg-neutral-alt);
    color: var(--color-dark);
    padding: 4rem;
    border-radius: var(--radius-lg);
    margin-bottom: 7rem;
}

.about-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.about-image img {
    border-radius: var(--radius-md);
    max-width: 200px;
    max-height: fit-content;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.about-description p {
    margin-bottom: 1rem;
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* ===========================
   Footer Styles
   =========================== */

.footer {
    background-color: var(--color-primary);
    color: var(--color-bg-neutral);
    padding: 7rem 1rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-brand img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-bg-neutral);
    max-width: 30rem;
}

.footer-links {
    padding-bottom: 2rem;
}

.footer-heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1.75rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-bg-neutral);
}

.footer-links a:hover {
    color: white;
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.social-list li {
    margin-right: 2rem;
    margin-bottom: 0.5rem;
}

.social-list a {
    display: inline-flex;
    max-width: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.social-list a:hover {
    transform: translateY(-0.25rem);
}

.social-list svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(59, 59, 59, 0.385);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.legal-links li {
    margin-right: 1.5rem;
    margin-bottom: 0.25rem;
}

.legal-links a {
    font-size: 0.875rem;
    color: var(--color-bg-neutral);
}

.legal-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-bg-neutral);
}

.copyright a {
    color: var(--color-bg-neutral);
}

.copyright a:hover {
    text-decoration: underline;
}

/* ===========================
   Legal Pages (Privacy & Terms)
   =========================== */

.legal-page {
    background-color: var(--color-light);
    padding: 4rem 1.5rem;
    min-height: 60vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--color-neutral);
    font-size: 0.875rem;
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.7;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .legal-page {
        padding: 5rem 2rem;
    }
    
    .legal-title {
        font-size: 3rem;
    }
}

/* ===========================
   Responsive Design
   =========================== */

@media (min-width: 640px) {
    .hero-subtitle,
    .section-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-text {
        max-width: 32rem;  /* Constrain text width on tablets */
        margin-left: 2rem;  /* Add left spacing on tablets */
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .copyright {
        order: -1;
        margin-right: 3rem;
    }
}

@media (min-width: 1024px) {
    /* Desktop Navigation */
    .nav-desktop {
        display: block;
    }
    
    .header-cta {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    /* Hero Layout */
    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 4rem;                    /* Increased for even more breathing room */
        justify-content: space-between;
    }
    
    .hero-text {
        max-width: 40rem;             /* Much more text space */
        margin-left: 4rem;            /* More indent from left */
    }
    
    .hero-image {
        width: 45%;                   /* Much smaller image container */
        flex-shrink: 0;
        margin-left: auto;
        padding-left: 1rem;
        justify-content: flex-end;
    }
    
    .hero-image img {
        max-width: 100%;               /* Constrain the image even more */
        margin-right: 0;
        height: auto;
    }
    
    /* Featured Grid */
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* About Layout */
    .about-layout {
        flex-direction: row;
    }
    
    .about-image {
        width: 28.4%;
        flex-shrink: 0;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 3rem;
        font-weight: 400;
    }
    
    .section-title {
        font-size: 2.5rem;
        font-weight: 400;
    }
}