/* ==========================================================================
   Icon System
   ========================================================================== */

.icon,
.hero-feature-icon,
.benefit-card-icon {
  display: inline-block;
  background-color: currentColor; /* Use the current text color for the icon */
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon-sm {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
}
.icon-lg {
  width: 2.25rem; /* 36px */
  height: 2.25rem; /* 36px */
}

.icon-phone {
  -webkit-mask-image: url('/assets/icons/phone.svg');
  mask-image: url('/assets/icons/phone.svg');
}

.icon-location {
  -webkit-mask-image: url('/assets/icons/location.svg');
  mask-image: url('/assets/icons/location.svg');
}

.icon-clock {
  -webkit-mask-image: url('/assets/icons/clock.svg');
  mask-image: url('/assets/icons/clock.svg');
}

.icon-computer {
  -webkit-mask-image: url('/assets/icons/computer.svg');
  mask-image: url('/assets/icons/computer.svg');
}
.icon-star {
  -webkit-mask-image: url('/assets/icons/star.svg');
  mask-image: url('/assets/icons/star.svg');
}
.icon-certificate {
  -webkit-mask-image: url('/assets/icons/certificate.svg');
  mask-image: url('/assets/icons/certificate.svg');
}
.icon-eco {
  -webkit-mask-image: url('/assets/icons/eco.svg');
  mask-image: url('/assets/icons/eco.svg');
}

/* ==========================================================================
   Global Variables & Base Styles
   ========================================================================== */

/* CSS Variables */
:root {
    --background: #ffffff;
    --foreground: oklch(0.145 0 0);
    --card: #ffffff;
    --card-foreground: oklch(0.145 0 0);
    --primary: #030213;
    --primary-foreground: oklch(1 0 0);
    --secondary: oklch(0.95 0.0058 264.53);
    --secondary-foreground: #030213;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --border: rgba(0, 0, 0, 0.1);
    --brand-color-dark: #0C68A9;
    --brand-color-darker: #002545;
    --brand-color-light: #87CDFF;
}

/* Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}

address {
    font-style: normal;
}

/* ==========================================================================
   Body & Typography
   ========================================================================== */
body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.5;
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal overflow */
}

.page-wrapper {
    min-height: 100vh;
    width: 100%;
    height: auto;
}

p {
    margin: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    /* 16px */
    padding-right: 1rem;
    /* 16px */
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        /* 24px */
        padding-right: 1.5rem;
        /* 24px */
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 80rem;
        /* 1280px */
        padding-left: 2rem;
        /* 32px */
        padding-right: 2rem;
        /* 32px */
    }
}

/* ==========================================================================
   Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 8px */
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-size: 1.125rem;
    /* 18px */
    padding: 0.75rem 2rem;
    /* 12px 32px */
    text-decoration: none;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-sm {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    /* 8px 16px */
}

.btn-large {
    font-size: 1.25rem;
    /* 20px */
    padding: 1rem 2rem;
    /* 16px 32px */
}

.btn-primary {
    background-color: var(--brand-color-dark);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-light {
    background-color: var(--background);
    color: var(--primary);
}

.btn-light:hover {
    background-color: color-mix(in srgb, white 90%, transparent);
}

.btn-outline-light {
    border: 1px solid var(--background);
    color: var(--background);
}

.btn-outline-light:hover {
    background-color: var(--background);
    color: var(--primary);
}

/* ==========================================================================
   Header
   ========================================================================== */
.main-header {
    background-color: var(--background);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    width: 100%;
    /* 64px */
}


.logo-container {
    flex-shrink: 0;
}

.logo-link {
    display: block;
}

.logo-image {
    height: 2.5rem;
    /* 40px */
    width: auto;
}


.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 2rem;
        /* 32px */
    }
}

.nav-link {
    color: var(--muted-foreground);
    transition: color 0.2s;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* 16px */
}

.phone-link {
    color: var(--brand-color-dark);
    transition: color 0.2s;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: 1px;
}

.phone-link:hover {
    color: color-mix(in srgb, var(--primary) 80%, transparent);
}

/* ==========================================================================
   Main Content Wrapper
   ========================================================================== */
.main-content {
    padding-top: 4rem;
    /* 64px to offset fixed header */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: calc(60vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: color-mix(in srgb, var(--primary) 70%, transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    /* 896px */
}

.hero-title {
    font-size: 2.25rem;
    /* 36px */
    color: white;
    margin-bottom: 1.5rem;
    /* 24px */
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-title-highlight {
    color: var(--brand-color-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    /* 20px */
    color: color-mix(in srgb, white 90%, transparent);
    margin-bottom: 2rem;
    /* 32px */
    max-width: 42rem;
    /* 672px */
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* 16px */
    justify-content: center;
    align-items: center;
}

.hero-features {
    margin-top: 3rem;
    /* 48px */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /* 32px */
    color: white;
}

.hero-feature-item {
    text-align: center;
}

.hero-feature-icon {
    font-size: 1.875rem;
    /* 30px */
    margin-bottom: 0.5rem;
    /* 8px */
    color: var(--brand-color-light);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
        /* 60px */
    }
    .hero-subtitle {
        font-size: 1.5rem;
        /* 24px */
    }
    .hero-actions {
        flex-direction: row;
    }
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
        /* 72px */
    }
}

/* ==========================================================================
   General Section Styling
   ========================================================================== */
.section {
    padding-top: 5rem;
    /* 80px */
    padding-bottom: 5rem;
    /* 80px */
}

.bg-muted-light {
    background-color: var(--muted);
}
.bg-muted-extra-light {
    background-color: color-mix(in srgb, var(--muted) 30%, transparent);
}
.bg-white {
    background-color: var(--background);
}
.bg-primary {
    background-color: var(--primary);
}
.bg-brand-color-darker {
    background-color: var(--brand-color-darker);
}
.bg-brand-color-light {
    background-color: var(--brand-color-light);
}
.bg-brand-color-dark {
    background-color: var(--brand-color-dark);
}
.text-primary-foreground {
    color: var(--primary-foreground);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    /* 64px */
}

.section-title {
    font-size: 1.875rem;
    /* 30px */
    color: var(--brand-color-dark);
    margin-bottom: 1rem;
    /* 16px */
}
.section-title.section-title-light {
    color: var(--primary-foreground);
}


.section-subtitle {
    font-size: 1.25rem;
    /* 20px */
    color: var(--brand-color-light);
    opacity: 0.9;
    max-width: 42rem;
    /* 672px */
    margin-left: auto;
    margin-right: auto;
}
.section-subtitle.section-subtitle-light {
    color: var(--muted-foreground);
}
.section-cta {
    text-align: center;
    margin-top: 3rem;
    /* 48px */
}

.cta-text {
    font-size: 1.125rem;
    /* 18px */
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    /* 24px */
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
        /* 36px */
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    gap: 2rem;
    /* 32px */
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    /* 8px */
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-card-image-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.service-card:hover .service-card-image {
    transform: scale(1.05);
}

.service-card-content {
    padding: 1.5rem;
}
.service-card-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.service-card-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}
.service-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-card-feature-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}
.feature-icon {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits-grid {
    display: grid;
    gap: 1.5rem;
    /* 24px */
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background-color: var(--card);
    border: 2px solid var(--border);
    transition: border-color 0.2s;
    border-radius: 0.5rem;
    text-align: center;
    padding: 1.5rem;
}

.benefit-card:hover {
    border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}
.benefit-card-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.benefit-card-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.benefit-card-description {
    color: var(--muted-foreground);
}

.guarantee-box {
    margin-top: 4rem;
    background-color: var(--muted);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.guarantee-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.guarantee-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}
.guarantee-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
.guarantee-feature-item {
    display: flex;
    align-items: center;
    color: var(--muted-foreground);
}

@media (min-width: 640px) {
    .guarantee-features {
        flex-direction: row;
    }
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}
.testimonial-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.testimonial-rating {
    display: flex;
    margin-bottom: 1rem;
}
.star-icon {
    color: #facc15;
    font-size: 1.25rem;
}
.testimonial-text {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    font-style: italic;
}
.testimonial-author {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.author-name {
    color: var(--primary);
}
.author-location {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.cta-box {
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
.cta-box-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.cta-box-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-info-box {
    background-color: var(--bg-white\/10);
    border: 1px solid var(--border-white\/20);
    border-radius: 0.5rem;
    padding: 1.5rem;
    color: var(--primary-foreground);
}
.contact-info-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .contact-info-list {
        flex-direction: row;
    }
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        flex: 1;
    }
    .contact-info-title{
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .contact-info-list { flex-direction: column; }
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-info-icon-wrapper {
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--brand-color-light);
}
.contact-info-icon {
    font-size: 1.5rem;
}
.contact-info-label {
    font-size: 0.875rem;
    opacity: 0.75;
}
.contact-info-link {
    font-size: 1.5rem;
    transition: opacity 0.2s;
    text-decoration: none;
    color: inherit;
}
.contact-info-link:hover {
    opacity: 0.8;
}
.contact-info-value {
    font-size: 1.125rem;
}
.contact-info-detail {
    font-size: 0.875rem;
    opacity: 0.75;
}

.contact-cta {
    text-align: center;
}
@media (min-width: 1024px) {
    .contact-cta {
        text-align: left;
    }
}

.contact-cta-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}
.contact-cta-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}
.contact-cta-button {
    width: 100%;
}
@media (min-width: 640px) {
    .contact-cta-button {
        width: auto;
    }
}

.contact-cta-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}
.contact-cta-feature-item {
    text-align: center;
}
.contact-cta-feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.contact-cta-feature-item p {
    font-size: 0.875rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    /* 16px */
    margin-bottom: 3rem;
    /* 48px */
}

.gallery-item {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    /* 8px */
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid > div:first-child {
        grid-column: 1 / -1; /* Span across all columns */
        text-align: center;
    }
}

.footer-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.footer-subtitle {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.footer-text {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--muted-foreground);
}
.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-list .icon {
    opacity: 0.5;
}
.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--muted-foreground);
}
.footer-bottom-text {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Mobile-Specific Overrides
   ========================================================================== */
@media screen and (max-width: 640px) {
    .header-content {
        flex-direction: column;
        height: 200px;
        padding: 20px;
    }
    .logo-image {
        height: 4rem;
    }
    .header-actions {
        flex-direction: column;
    }
    .main-content {
        padding-top: 200px;
    }
    .hero-content {
        padding: 40px 20px;
    }
    .hero-features {
        grid-template-columns: 1fr 1fr 1fr;
    }

}
