/* Global Box Sizing */
html {
    box-sizing: border-box;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Base font style */
body {
    font-family: "Inter", sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
}

/* LIGHT MODE (DEFAULT) */
:root {
    --color-background: #f3f4f6;
    --color-foundation-primary: #023e8aff;
    --color-card-background: #ffffff;
    --color-border: #ade8f4ff;
    --color-text-primary: #03045eff;
    --color-text-secondary: #0077b6ff;
    --color-text-on-dark: #ffffff;
    --color-accent-primary: #0096c7ff;
    --color-accent-primary-hover: #00b4d8ff;
    --color-accent-secondary: #0077b6ff;
    --color-accent-secondary-hover: #0077b6ff;
    --color-amber-500: #f59e0b;
    --color-amber-700: #b45309;
    --color-amber-800: #92400e;
    --color-green-500: #22c55e;
    --color-green-600: #16a34a;
    --color-gray-200: #e5e7eb;
}

/* DARK MODE */
html.dark {
    --color-background: #000000ff;
    --color-foundation-primary: #111111ff;
    --color-card-background: #232323ff;
    --color-border: #343434ff;
    --color-text-primary: #ffffffff;
    --color-text-secondary: #b8b8b8ff;
    --color-text-on-dark: #ffffff;
    --color-accent-primary: #575757ff;
    --color-accent-primary-hover: #696969ff;
    --color-accent-secondary: #90e0efff;
    --color-accent-secondary-hover: #575757ff;
}

/* Utility classes */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@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: 1024px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--color-card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-card-background);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-secondary);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: var(--color-background);
    color: var(--color-text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#theme-toggle {
    color: var(--color-text-primary);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
}
#theme-toggle:focus {
    outline: none;
}
#theme-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

#mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
}
#mobile-menu-button:focus {
    outline: none;
}
#mobile-menu-button:hover {
    color: var(--color-text-secondary);
}
#mobile-menu-button svg {
    width: 1.5rem;
    height: 1.5rem;
}
@media (min-width: 768px) {
    #mobile-menu-button {
        display: none;
    }
}

@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
}
#mobile-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    text-decoration: none;
}
#mobile-menu a:hover {
    background-color: var(--color-gray-200);
}

/* Main Content */
main {
    padding: 0;
}


/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    border-radius: 1.5rem;
    margin-top: 2rem;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero {
        height: 600px;
    }
}
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
}
.hero-content {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 8rem;
    text-align: center;
}
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-top: 1rem;
    color: #fff;
}
.hero-button {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    background-color: var(--color-green-500);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
}
.hero-button:hover {
    background-color: var(--color-green-600);
}
.hero-button svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

/* Trust Markers Section */
.trust-markers {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 1.5rem;
}

.trust-markers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .trust-markers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}
.trust-marker-item {
    background-color: var(--color-card-background);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
}
.trust-marker-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    transform: translateY(-0.375rem);
}
.trust-marker-icon {
    margin: 0 auto 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-amber-500);
    transition: transform 0.3s ease-out;
}
.trust-marker-item:hover .trust-marker-icon {
    transform: scale(1.1);
}
.trust-marker-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
}
.trust-marker-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

/* Section Styles */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-top: 1rem;
    border-radius: 1.5rem;
}
.section-card {
    background-color: var(--color-card-background);
}
.section-background {
    background-color: var(--color-background);
}
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 2rem;
}
.section-title.left-align {
    text-align: left;
}
.section-subtitle {
    margin-top: 1rem;
    color: var(--color-text-secondary);
}

/* About Section */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) {
    .about-section {
        flex-direction: row;
    }
}
.about-image-wrapper {
    width: 100%;
}
@media (min-width: 768px) {
    .about-image-wrapper {
        width: 50%;
        padding-right: 2rem;
    }
}
.about-image {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
    max-width: 100%;
    height: auto;
}
.about-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.about-content {
    width: 100%;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .about-content {
        width: 50%;
        padding-left: 2rem;
        margin-top: 0;
    }
}

/* What We Do Section */
.what-we-do-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .what-we-do-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .what-we-do-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.what-we-do-item {
    background-color: var(--color-card-background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.what-we-do-item:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.what-we-do-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Gallery Section */
.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.gallery-see-all {
    border: 2px solid var(--color-accent-secondary);
    color: var(--color-accent-secondary);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    display: none;
}
@media (min-width: 768px) {
    .gallery-see-all {
        display: inline-block;
    }
}
.gallery-see-all:hover {
    background-color: var(--color-accent-secondary-hover);
    color: var(--color-text-on-dark);
}
.gallery-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: var(--color-card-background);
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.gallery-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
@media (min-width: 768px) {
    .gallery-item img { height: 14rem; }
}
@media (min-width: 1024px) {
    .gallery-item img { height: 15rem; }
}
.gallery-footer {
    margin-top: 2.5rem;
    text-align: center;
}
.gallery-footer .btn {
    background-color: var(--color-amber-700);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-block;
}
.gallery-footer .btn:hover {
    background-color: var(--color-amber-800);
}
.gallery-footer-mobile {
    margin-top: 2rem;
    text-align: center;
}
@media (min-width: 768px) {
    .gallery-footer-mobile {
        display: none;
    }
}
.gallery-footer-mobile .btn {
    display: inline-block;
    border: 2px solid var(--color-accent-secondary);
    color: var(--color-accent-secondary);
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}
.gallery-footer-mobile .btn:hover {
    background-color: var(--color-accent-secondary-hover);
    color: var(--color-text-on-dark);
}


/* FAQ Section */
#faq-accordion {
    margin-top: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
}
.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}
.faq-trigger:focus {
    outline: 2px solid var(--color-amber-500);
    outline-offset: 2px;
}
.faq-trigger span {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-primary);
}
.faq-trigger svg {
    margin-left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
}
.faq-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.faq-panel {
    padding: 1rem 1.25rem;
    color: var(--color-text-secondary);
}

/* Footer */
.footer {
    background-color: var(--color-foundation-primary);
    color: var(--color-text-on-dark);
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text-on-dark);
}
.footer-description {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.9;
}
.footer-heading {
    font-weight: 600;
    font-size: 1.25rem;
}
.footer-links {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    list-style: none;
    padding: 0;
}
.footer-links a {
    text-decoration: none;
    color: var(--color-text-on-dark);
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-social {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-social a {
    color: var(--color-text-on-dark);
}
.footer-social a:hover {
    opacity: 0.8;
}
.footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
}
.footer-address {
    margin-top: 1rem;
    font-size: 0.875rem;
}
.footer-address p {
    margin-top: 0.5rem;
}
.footer-copyright {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-copyright {
        text-align: left;
    }
}

/* Hide/Show utilities */
.hidden {
    display: none;
}
