@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --clr--primary: #0066cc;
    --clr--secondary: #00a0dc;
    --clr--base: #ffffff;
    
    --clr--text: #333;
    --clr--text-primary: #003d6b;
    --clr--text-light: #555;

    --clr--accent: #add8e6;
    
    --spacing--sm: 0.5rem;
    --spacing--md: 1.25rem;
    --spacing--lg: 2rem;
    --spacing--xl: 2.5rem;
    --spacing--xxl: 3.75rem;
    --spacing--section: 5rem;

    --fs--sm: 0.875rem;
    --fs--base: 1rem;
    --fs--md: 1.125rem;
    --fs--lg: 1.25rem;
    --fs--xl: 2rem;
    --fs--xxl: 2.5rem;

}
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}
/* 2. Remove default margin */
* {
  margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}
/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}
/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing--md);
}

/* Header */
header {
    background: white;
    padding: var(--spacing--md) 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top:0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing--md);
}

nav {
    display: flex;
    gap: var(--spacing--md);
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: var(--fs--base);
    font-weight: bold;
    transition: color 0.3s;
    text-transform: uppercase;
}

nav a:hover {
    color: #00a0dc;
}

.menu-toggle {
    display: none;
}

.contact-phone-link {
    font-size: var(--fs--md);
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing--sm);
    padding: var(--spacing--sm) var(--spacing--md);
    border-radius: 5px;
    background-color: #00a0dc;
    color: white;
}
.contact-phone-link:hover {
    background-color: #0077b6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing--section) 0;
}

.hero-content {
    display: grid;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing--xl);
    flex-wrap: wrap;
    grid-template-columns: repeat(2, 1fr);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1ch;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
}
.logo--hero {
    font-size: 2.25rem;
    margin-bottom: var(--spacing--lg);
}
.logo--nav {
    font-size: var(--fs--md);
}

.logo-icon {
    width: 2.5em;
}

.logo-title {
    text-transform: uppercase;
    font-size: inherit;
    font-weight: bold;
    color: var(--clr--text-primary);
    line-height: 1.2;
}
.logo-title span {
    text-transform: lowercase;
    color: var(--clr--secondary);
}


.section {
    padding: var(--spacing--section) 0;
}

.section > .container > *:not(:last-child) {
    margin-block-end: var(--spacing--xl);
}

.section__header {
    display: flex;
    gap: 1ch;
    flex-direction: column;
    align-items: center;
}

.section__title {
    text-align: center;
    font-size: var(--fs--xxl);
    font-weight: bold;
    color: var(--clr--text-primary);
    line-height: 1.3;
    text-transform: uppercase;
}

.section__subtitle {
    text-align: center;
    max-width: 72ch;
    font-size: var(--fs--lg);
    color: var(--clr--text-light);
}

.section__separator {
    width: 100%;
    max-width: 50ch;
    padding: 0 0 var(--spacing--md);
    background-color: none;
    border: none;
    height: 2px;
    margin-inline: auto;
    margin-block-start: var(--spacing--md);
    border-top: 2px solid var(--clr--text-primary);
}

/* Services Section */
.section--services {
    background: #f8f9fa;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing--xl);
}

.card {
    text-align: center;
    padding: var(--spacing--md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card--box {
    transition: all 0.3s;
    overflow: clip;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.1);
}

.card__icon,
.card__image {
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    margin-inline: auto;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: clip;
}

.card__icon {
    background: #0066cc;
    color: white;
    font-size: var(--fs--xl);
    outline-offset: 2px;
    outline: 2px solid #0066cc;
}

.card__icon img {
    width: 11rem;
    height: 11rem;
    object-fit: contain;
}

.card__image {
    background: #f0f0f0;
}
.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 10s;
}
.card--box:hover {
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.2);
    /* transform: translateY(-0.5rem); */
}
.card--box:hover .card__image img {
    scale: 1.1;
}

.card__title {
    font-size: var(--fs--base);
    font-weight: bold;
    color: var(--clr--text-primary);
    max-width: 30ch;
    margin-inline: auto;
    margin-bottom: var(--spacing--sm);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
}

.card__description {
    text-align: center;
    font-size: var(--fs--sm);
    color: #555;
    line-height: 1.5;
}

/* Company Services */
.section--company-services {
    padding-bottom: 0;
    background: linear-gradient(180deg, #add8e6 0%, #add8e6 calc(100% - var(--spacing--section)), white calc(100% - var(--spacing--section)), white 100%);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing--lg);
    margin-bottom: var(--spacing--xl);
}

.type {
    background: white;
    padding: var(--spacing--md);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing--md);
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.1);
}

.type__icon {
    font-size: var(--fs--xl);
    color: var(--clr--secondary);
}

.type__text {
    font-size: var(--fs--base);
    font-weight: bold;
    color: #003d6b;
}

.additional-services {
    text-align: center;
    margin-top: var(--spacing--lg);
}

.additional-title {
    color: var(--clr--secondary);
    font-size: var(--fs--xl);
    font-weight: bold;
    margin-bottom: var(--spacing--md);
}

/* Footer */
.section--contact {
    background: #f8f9fa;
}


.section--contact .section__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing--xl);
    font-size: var(--fs--lg);
    line-height: 1;
}

.contact-info {
    align-content: center;
    margin-inline: 0;
}
.contact-info > *:not(:last-child) {
    margin-bottom: var(--spacing--sm);
}

.contact-info__heading {
    padding-bottom: var(--spacing--md);
}

.contact {
    flex-grow: 1;
    flex-basis: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing--sm);
    line-height: 1.5;
    font-weight: bold;
}

.contact__icon {
    color: var(--clr--secondary);
}

.contact__link {
    text-decoration: none;
    color: var(--clr--text);
}
.contact__link:hover {
    text-decoration: none;
    color: var(--clr--primary);
}

/* Contact Form */
.contact-form-wrapper {
    order: -1;
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
    padding: var(--spacing--xl);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing--md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing--sm);
}

.form-group label {
    font-weight: 600;
    color: var(--clr--text-primary);
    font-size: var(--fs--base);
}

.form-group input,
.form-group select {
    padding: var(--spacing--sm) var(--spacing--md);
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: var(--fs--base);
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
    outline: none;
    width: 100%;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--clr--secondary);
    /* box-shadow: 0 0 0 3px rgba(0, 160, 220, 0.1); */
}

.form-group input[type="text"]:not(:placeholder-shown):invalid {
    border-color: #dc3545;
}
.form-group :focus:invalid {
    border-color: #dcbb35;
}

.form-group:has(input[required], select[required]) label::after {
    content: "*";
    color: red;
}

.btn-submit {
    padding: var(--spacing--md) var(--spacing--xl);
    background: var(--clr--secondary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: var(--fs--md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.btn-submit:hover:not(:disabled) {
    background: var(--clr--primary);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-message {
    padding: var(--spacing--md);
    border-radius: 0.5rem;
    font-size: var(--fs--base);
    text-align: center;
    display: none;
}

.form-message:not(:empty) {
    display: block;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-links a {
    width: 3rem;
    height: 3rem;
    border: 2px solid #003d6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003d6b;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #003d6b;
    color: white;
}

.footer {
    background-color: #eaecee;
    padding: var(--spacing--md) 0 var(--spacing--sm);
    color: white;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing--sm);
    margin-top: var(--spacing--lg);
    line-height: 1;
    text-transform: uppercase;
    color: #003d6b;
}

.footer-tagline {
    text-align: right;
    font-size: var(--fs--sm);
    color: #888;
    margin-top: var(--spacing--md);
}


@media screen and (width < 1100px) {
    .header-content nav {
        order: 2;
        width: 100%;
    }
    .contact-phone-link {
        margin-left: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media screen and (width < 768px) {
    :root {
        --spcing--section: 30px;
        --fs--sm: 0.875rem;
        --fs--base: 1rem;
        --fs--md: 1.125rem;
        --fs--lg: 1.25rem;
        --fs--xl: 1.5rem;
        --fs--xxl: 1.8rem;
    }
    .menu-toggle {
        padding-block: 0.5rem 0.75rem;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        background: transparent;
        cursor: pointer;
    }
    .menu-toggle span {
        display: inline-block;
        width: 1.25rem;
        height: 2px;
        background: #003d6b;
    }

    nav {
        display: none;
        flex-direction: column;
    }
    nav.open {
        display: flex;
    }

    .logo--hero {
        font-size: var(--fs--xl);
    }

    .hero-content {
        grid-template-columns: 1fr;
    }
    .hero__image {
        order: -1;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card {
        flex-direction: row;
        gap: 20px;
        justify-content: flex-start;
        align-items: center;
    }
    .card__icon,
    .card__image {
        width: 100px;
        height: 100px;
        aspect-ratio: 1 / 1;
        margin-bottom: 0;
    }
    .card__icon img {
        width: 80%;
        height: 80%;
        aspect-ratio: 1 / 1;
    }

    .card__content {
        flex-grow: 1;
    }

    .card__title {
        text-align: left;
        margin-inline: 0;
    }
    .card__description {
        text-align: left;
    }
    .section--contact .section__content {
        grid-template-columns: 1fr;
    }
    .contact-info {
        margin-inline: auto;
    }
}

@media screen and (width < 560px) {
    :root {
        --spacing--sm: 0.5rem;
        --spacing--md: 1rem;
        --spacing--lg: 1.25rem;
        --spacing--xl: 1.5rem;
        --spacing--xxl: 2rem;
        --spacing--section: 2.5rem;

        --fs--xs: 0.75rem;
        --fs--sm: 0.875rem;
        --fs--base: 1rem;
        --fs--md: 1rem;
        --fs--lg: 1.125rem;
        --fs--xl: 1.25rem;
        --fs--xxl: 1.5rem;
    }

    .contact-phone-link span {
        display: none;
    }

    .logo--nav {
        font-size: var(--fs--sm);
    }

    .section__header {
        align-items: flex-start;
    }
    .section__title {
        text-align: left;
    }
    .section__subtitle {
        text-align: left;
    }

    .card {
        flex-direction: column;
        align-items: flex-start;
    }
    .card:has(.card__icon) {
        padding-inline: 0;
    }
    .card:has(.card__icon):not(:last-child) {
        border-bottom:  1px solid var(--clr--accent);
    }
    .card__icon,
    .card__image {
        margin-inline: 0;
        width: 5rem;
        height: 5rem;
    }

    .additional-services {
        text-align: left;
    }

    .contact-info {
        margin-inline: 0;
    }
}



@media screen and (width < 768px) {
    .contact-form-wrapper {
        padding: var(--spacing--md);
    }
}

@media screen and (width < 560px) {
    .contact-form-wrapper {
        margin-top: var(--spacing--md);
    }
}