
/* ========================================
   SITE HEADER
======================================== */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: space-between;

    min-height: 70px;
    gap: 20px;
    padding-block: 25px;
}


/* ========================================
   SITE LOGO
======================================== */

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;

    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
}

.site-logo__image {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}


/* ========================================
   MOBILE NAVIGATION TOGGLE
======================================== */

.site-nav__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 44px;
    height: 44px;
    padding: 0;

    background: transparent;
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.site-nav__toggle-line {
    display: block;
    flex-shrink: 0;

    width: 24px;
    height: 2px;
    margin: 0;

    background-color: var(--color-heading);

    transition:
        transform var(--transition-default),
        opacity var(--transition-default);
}


/* ========================================
   MOBILE NAVIGATION
======================================== */

.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    padding: 15px var(--container-padding);

    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.site-nav.is-open {
    display: block;
}

.site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;

    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list li {
    margin: 0;
}

.site-nav__list a {
    display: block;
    padding: 12px 0;

    font-weight: 600;
    color: var(--color-heading);
    text-decoration: none;

    transition: color var(--transition-default);
}

.site-nav__list a:hover {
    color: var(--color-primary);
}


/* ========================================
   MOBILE NAVIGATION - OPEN STATE
======================================== */

.site-nav__toggle[aria-expanded="true"]
.site-nav__toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"]
.site-nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.site-nav__toggle[aria-expanded="true"]
.site-nav__toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ========================================
   RESPONSIVE - TABLET / DESKTOP
======================================== */

@media (min-width: 768px) {

    /* Header Layout */
    .site-header__inner {
        flex-flow: row nowrap;
        align-items: center;
        justify-content: space-between;

        min-height: 90px;
        padding-block: 20px;
    }

    /* Logo */
    .site-logo__image {
        width: 200px;
    }

    /* Hide Mobile Toggle */
    .site-nav__toggle {
        display: none;
    }

    /* Desktop Navigation */
    .site-nav {
        display: block;
        position: static;

        width: auto;
        padding: 0;
        margin-left: auto;

        background: transparent;
        border: 0;
    }

    .site-nav__list {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }

    .site-nav__list a {
        padding: 10px 0;
    }

}

/*===========================================================================================*/



/* ========================================
   BUTTONS - BASE
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 24px;

    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    border: 2px solid transparent;
    border-radius: 4px;

    cursor: pointer;

    transition: filter var(--transition-default);
}


/* ========================================
   BUTTONS - HOVER
======================================== */

.btn:hover {
    text-decoration: none;
}

@media (hover: hover) {

    .btn:not(:disabled):not([aria-disabled="true"]):hover {
        filter: brightness(85%);
        text-decoration: none;
    }

}


/* ========================================
   BUTTONS - DISABLED
======================================== */

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ========================================
   BUTTONS - SOLID
======================================== */

.btn--primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.btn--secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #ffffff;
}


/* ========================================
   BUTTONS - OUTLINE
======================================== */

.btn--outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}


/* ========================================
   BUTTONS - GHOST
======================================== */

.btn--ghost {
    background-color: transparent;
    border-color: transparent;
    color: var(--color-primary);
}


/* ========================================
   BUTTONS - SIZES
======================================== */

.btn--small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
}


/* ========================================
   BUTTONS - MODIFIERS
======================================== */

.btn--pill {
    border-radius: 999px;
}

.btn--square {
    border-radius: 0;
}

.btn--full {
    width: 100%;
}

/*===========================================================================================*/


/* ========================================
   HERO SLIDER
======================================== */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-secondary);
    color: #ffffff;
}

.hero-slider__slides {
    position: relative;
    min-height: 450px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s linear,
        visibility 0.5s linear;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-slide__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 75px 0 100px;
}

.hero-slide__content {
    max-width: 650px;
}

.hero-slide__content h1,
.hero-slide__content h2 {
    color: #ffffff;
}

.hero-slide__content p {
    font-size: 18px;
    margin-bottom: 25px;
}


/* ========================================
   HERO SLIDER - CONTROLS
======================================== */

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    border: 0;

    font-size: 22px;
    transition: background-color var(--transition-default);
}

.hero-slider__arrow--prev {
    left: 10px;
}

.hero-slider__arrow--next {
    right: 10px;
}

.hero-slider__dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);

    display: flex;
    gap: 10px;
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    padding: 0;

    background: rgba(255, 255, 255, 0.5);
    border: 0;
    border-radius: 50%;
}

.hero-slider__dot.is-active {
    background: #ffffff;
}

.hero-slider__pause {
    position: absolute;
    bottom: 12px;
    right: 15px;
    z-index: 3;

    padding: 5px 10px;
    font-size: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    border: 0;
}

@media (hover: hover) {
    .hero-slider__arrow:hover,
    .hero-slider__dot:hover,
    .hero-slider__pause:hover {
        filter: brightness(85%);
    }
}


/* ========================================
   HERO SLIDER - DESKTOP
======================================== */

@media (min-width: 768px) {

    .hero-slider__slides {
        min-height: 550px;
    }

    .hero-slide__overlay {
        padding: 100px 0;
    }

    .hero-slide__content p {
        font-size: 20px;
    }

    .hero-slider__arrow {
        width: 48px;
        height: 48px;
    }

    .hero-slider__arrow--prev {
        left: 20px;
    }

    .hero-slider__arrow--next {
        right: 20px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

/*===============================================================================================*/


/* ========================================
   SERVICES GRID
======================================== */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.service-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-surface);
}

.service-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__content {
    padding-top: 25px;
}

.service-card__content h2 {
    margin-bottom: 15px;
}

.service-card__content p {
    margin-bottom: 0;
}


/* ========================================
   SERVICES GRID - DESKTOP
======================================== */

@media (min-width: 768px) {

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
    }

}

/*======================================================================================*/


/* ========================================
   CONTACT SECTION
======================================== */

.contact-section {
    width: 100%;
    margin-inline: auto;
}

.contact-section__header {
    margin-bottom: 35px;
}


/* ========================================
   CONTACT FORM
======================================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form__field label {
    font-size: 15px;
    font-weight: 600;
}

.contact-form__field input,
.contact-form__field textarea {
    display: block;
    width: 100%;
    min-width: 0;

    padding: 12px 15px;

    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;

    color: var(--color-text);
    background-color: #ffffff;

    border: 1px solid var(--color-border);
    border-radius: 4px;

    transition: border-color var(--transition-default);
}

.contact-form__field textarea {
    min-height: 150px;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--color-primary);
}

.contact-form__actions {
    margin-top: 5px;
}


/* ========================================
   CONTACT FORM - HONEYPOT
======================================== */

.contact-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}


/* ========================================
   CONTACT FORM - NOTIFICATIONS
======================================== */

.contact-form__notice {
    padding: 15px 20px;

    font-size: 15px;
    line-height: 1.5;

    border: 1px solid transparent;
    border-radius: 4px;
}

.contact-form__notice--success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.contact-form__notice--error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/* ========================================
   CONTACT FORM - DESKTOP
======================================== */

@media (min-width: 768px) {

    .contact-form__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

