
/* =========================================================
   MADORSKY LAW
   GLOBAL STYLESHEET
   ========================================================= */


/* ---------------------------------------------------------
   01. DESIGN TOKENS
   --------------------------------------------------------- */

:root {
    --color-slate: #46515C;
    --color-slate-dark: #35414B;
    --color-charcoal: #30343A;
    --color-grey: #BFC2C2;
    --color-stone: #E9E7E1;
    --color-ivory: #F6F5F1;
    --color-white: #FFFFFF;
    --color-bronze: #A58B70;
    --color-blue: #465D70;

    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: Arial, Helvetica, sans-serif;

    --container-width: 1240px;
    --header-height: 100px;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;

    --transition: 250ms ease;
}


/* ---------------------------------------------------------
   02. RESET
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    padding: 0;
    background: var(--color-ivory);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--color-slate);
    color: var(--color-white);
}


/* ---------------------------------------------------------
   03. TYPOGRAPHY
   --------------------------------------------------------- */

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
}

h1 {
    font-size: clamp(44px, 6vw, 76px);
}

h2 {
    font-size: clamp(34px, 4vw, 52px);
}

h3 {
    font-size: 27px;
}

p {
    margin-top: 0;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--color-bronze);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.text-light {
    color: var(--color-white);
}


/* ---------------------------------------------------------
   04. GLOBAL LAYOUT
   --------------------------------------------------------- */

.container {
    width: min(
        calc(100% - 64px),
        var(--container-width)
    );
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 110px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-heading p {
    max-width: 650px;
    color: #72777B;
}


/* ---------------------------------------------------------
   05. HEADER
   --------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid rgba(48, 52, 58, 0.09);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    width: min(
        calc(100% - 64px),
        1400px
    );

    min-height: var(--header-height);
    margin-inline: auto;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    width: 300px;
    max-height: 70px;
    object-fit: contain;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 34px;
}

.primary-navigation a {
    position: relative;
    padding: 10px 0;
    color: var(--color-charcoal);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition);
}

.primary-navigation a:hover,
.primary-navigation a.active {
    color: var(--color-bronze);
}

.primary-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: var(--color-bronze);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.primary-navigation a:hover::after,
.primary-navigation a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
}


/* ---------------------------------------------------------
   06. BUTTONS
   --------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 30px;

    border: 1px solid var(--color-slate);
    background: var(--color-slate);
    color: var(--color-white);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.btn:hover {
    border-color: var(--color-bronze);
    background: var(--color-bronze);
}

.btn-outline {
    border-color: var(--color-slate);
    background: transparent;
    color: var(--color-slate);
}

.btn-outline:hover {
    border-color: var(--color-slate);
    background: var(--color-slate);
    color: var(--color-white);
}


/* ---------------------------------------------------------
   07. CONTENT UTILITIES
   --------------------------------------------------------- */

.bg-white {
    background: var(--color-white);
}

.bg-stone {
    background: var(--color-stone);
}

.bg-slate {
    background: var(--color-slate);
    color: var(--color-white);
}

.bg-charcoal {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.bg-slate h1,
.bg-slate h2,
.bg-slate h3,
.bg-charcoal h1,
.bg-charcoal h2,
.bg-charcoal h3 {
    color: var(--color-white);
}

.accent-line {
    display: block;
    width: 54px;
    height: 2px;
    margin: 24px 0;
    background: var(--color-bronze);
}


/* ---------------------------------------------------------
   08. FOOTER
   --------------------------------------------------------- */

.site-footer {
    background: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.75);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 70px;

    width: min(
        calc(100% - 64px),
        var(--container-width)
    );

    margin-inline: auto;
    padding: 65px 0 75px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: block;
    width: 300px;
    height: auto;
    margin-bottom: 18px;
    padding: 0;
    background: transparent;
}

.footer-brand p {
    max-width: 340px;
}

.site-footer h3 {
    margin-bottom: 25px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-navigation a {
    transition: color var(--transition);
}

.footer-navigation a:hover {
    color: var(--color-bronze);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 24px max(32px, calc((100% - var(--container-width)) / 2));

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 11px;
}

.footer-bottom p {
    margin: 0;
}


/* ---------------------------------------------------------
   09. ACCESSIBILITY
   --------------------------------------------------------- */

:focus-visible {
    outline: 3px solid var(--color-bronze);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   10. HOMEPAGE LAYOUTS
   ========================================================= */



/* ---------------------------------------------------------
   10.01 HOMEPAGE HERO
   --------------------------------------------------------- */

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 1250px;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--color-slate-dark);
    background-image: url("../images/hero2.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(35, 43, 50, 0.96) 0%,
        rgba(35, 43, 50, 0.82) 38%,
        rgba(35, 43, 50, 0.42) 70%,
        rgba(35, 43, 50, 0.12) 100%
    );
    z-index: 1;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        270deg,
        rgba(35, 43, 50, 0.96) 0%,
        rgba(35, 43, 50, 0.82) 38%,
        rgba(35, 43, 50, 0.42) 70%,
        rgba(35, 43, 50, 0.12) 100%
    );
    z-index: 1;
    pointer-events: none;
}


.home-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 90px 40px;
}

.home-hero-content .eyebrow {
    margin-bottom: 28px;
    color: var(--color-white);
}

.home-hero h1 {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--color-white);
    font-size: clamp(48px, 5.2vw, 76px);
    line-height: 1.12;
    letter-spacing: -1.8px;
}

.home-hero h1 em {
    font-weight: 400;
}

.home-hero .accent-line {
    margin: 34px 0 24px;
}

.hero-description {
    max-width: 540px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.home-hero .text-link {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-bronze);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    transition: color var(--transition);
}

.home-hero .text-link:hover {
    color: var(--color-bronze);
}

.hero-experience {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-experience strong {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
}

.hero-experience span {
    max-width: 130px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   10.03 SERVICES
   --------------------------------------------------------- */

.home-services {
    padding-top: 120px;
    padding-bottom: 130px;
}

.home-services .section-heading {
    max-width: 760px;
    margin-bottom: 25px;
}

.home-services .section-heading h2 em {
    font-weight: 400;
}

.services-intro {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 50px;
    padding: 45px 0;
    border-top: 1px solid rgba(48, 52, 58, 0.16);
    border-bottom: 1px solid rgba(48, 52, 58, 0.16);
}

.services-number {
    display: block;
    color: var(--color-slate);
    font-family: var(--font-heading);
    font-size: 100px;
    line-height: 1;
}

.services-number-label {
    display: block;
    margin-top: 8px;
    color: var(--color-bronze);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.services-description {
    max-width: 570px;
}

.services-description p {
    margin-bottom: 25px;
    color: #62686D;
    font-family: var(--font-heading);
    font-size: 23px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   10.04 THE MADORSKY APPROACH
   --------------------------------------------------------- */

.home-approach {
    position: relative;
    padding-top: 180px;
    padding-bottom: 180px;

    background-color: var(--color-stone);
    background-image:
        linear-gradient(
            rgba(239, 234, 225, 0.88),
            rgba(239, 234, 225, 0.88)
        ),
        url("../images/hero1.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: var(--color-charcoal);
}

.home-approach .eyebrow {
    color: var(--color-bronze);
}

.approach-heading h2 {
    color: var(--color-charcoal);
}

.approach-content {
    padding-top: 20px;
}

.approach-content p {
    color: #62686D;
    line-height: 1.9;
}

.approach-content .approach-lead {
    margin-bottom: 25px;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
    font-size: 25px;
    line-height: 1.5;
}

.home-approach .btn-outline {
    margin-top: 15px;
    border-color: var(--color-slate);
    color: var(--color-slate);
}

.home-approach .btn-outline:hover {
    border-color: var(--color-slate);
    background: var(--color-slate);
    color: var(--color-white);
}


/* ---------------------------------------------------------
   10.05 ATTORNEY PROFILE
   --------------------------------------------------------- */

.attorney-layout {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    align-items: center;
    gap: 100px;
}

.attorney-image {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
}

.attorney-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
}

.attorney-content h2 {
    margin-bottom: 0;
}

.attorney-content h2 em {
    font-weight: 400;
}

.attorney-lead {
    color: var(--color-charcoal);
    font-family: var(--font-heading);
    font-size: 23px;
    line-height: 1.55;
}

.attorney-content > p:not(.eyebrow):not(.attorney-lead) {
    max-width: 480px;
    color: #62686D;
    line-height: 1.9;
}

.attorney-content .btn {
    margin-top: 15px;
}

/* ---------------------------------------------------------
   10.06 TESTIMONIALS
   --------------------------------------------------------- */

.home-testimonials {
    background: var(--color-stone);
}

.home-testimonials .section-heading {
    margin-bottom: 45px;
}

.home-testimonials .section-heading h2 em {
    font-weight: 400;
}

.testimonials-grid {
    display: block;
    column-count: 3;
    column-gap: 28px;
}

.testimonial-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 28px;
    padding: 30px;
    break-inside: avoid;
    vertical-align: top;
    border: 1px solid rgba(48, 52, 58, 0.10);
    background: var(--color-white);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(48, 52, 58, 0.25);
    box-shadow: 0 8px 24px rgba(35, 43, 50, 0.08);
    transform: translateY(-3px);
}

.testimonial-mark {
    display: block;
    margin-bottom: 14px;
    color: var(--color-bronze);
    font-family: var(--font-heading);
    font-size: 62px;
    line-height: 0.8;
}

.testimonial-card h3 {
    margin-bottom: 16px;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.testimonial-card p {
    margin-bottom: 0;
    color: #62686D;
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1.75;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid rgba(48, 52, 58, 0.14);
}

.testimonial-author strong {
    color: var(--color-charcoal);
    font-size: 13px;
}

.testimonial-author span {
    color: var(--color-bronze);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* TABLET */

@media (max-width: 900px) {

    .testimonials-grid {
        column-count: 2;
        column-gap: 22px;
    }

    .testimonial-card {
        padding: 25px;
        margin-bottom: 22px;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .home-testimonials .section-heading {
        margin-bottom: 32px;
    }

    .testimonials-grid {
        column-count: 1;
    }

    .testimonial-card {
        padding: 25px;
        margin-bottom: 18px;
    }

}

/* =========================================================
   11. RESPONSIVE STYLES
   ========================================================= */


/* ---------------------------------------------------------
   11.01 TABLET — MAXIMUM 1050PX
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .header-inner {
        gap: 20px;
    }

    .site-logo {
        width: 250px;
    }

    .primary-navigation {
        gap: 20px;
    }

    .primary-navigation a {
        font-size: 10px;
    }

    .footer-main {
        gap: 35px;
    }

    .home-hero-content {
        padding-right: 35px;
    }

    .home-hero h1 {
        font-size: clamp(46px, 5.5vw, 62px);
    }

    .about-layout,
    .approach-layout,
    .attorney-layout {
        gap: 55px;
    }

    .testimonials-grid {
        column-count: 2;
    }
}


/* ---------------------------------------------------------
   11.02 MOBILE — MAXIMUM 760PX
   --------------------------------------------------------- */

@media (max-width: 760px) {

    :root {
        --header-height: 80px;
    }

    .container {
        width: calc(100% - 40px);
    }

    .section {
        padding: 75px 0;
    }

    .header-inner {
        width: calc(100% - 40px);
        min-height: var(--header-height);
    }

    .site-logo {
        width: 220px;
        max-height: 58px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: 0;
        background: transparent;
    }

    .menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: var(--color-slate);
        transition: transform var(--transition);
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 24px 25px;
        background: var(--color-white);
        border-top: 1px solid rgba(48, 52, 58, 0.09);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .primary-navigation a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(48, 52, 58, 0.08);
        font-size: 12px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 45px;
        width: calc(100% - 40px);
        padding: 65px 0;
    }

    .footer-bottom {
        flex-direction: column;
        padding: 24px 20px;
    }

    .home-hero {
        min-height: 900px;
    }

    .home-hero::before {
        background: linear-gradient(
            180deg,
            rgba(35, 43, 50, 0.72) 0%,
            rgba(35, 43, 50, 0.88) 100%
        );
    }

    .home-hero-content {
        padding: 75px 25px 65px;
    }

    .home-hero h1 {
        font-size: clamp(44px, 10vw, 60px);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .about-layout,
    .approach-layout,
    .attorney-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-content {
        padding-top: 0;
    }

    .services-intro {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 35px 0;
    }

    .services-number {
        font-size: 82px;
    }

    .approach-content {
        padding-top: 0;
    }

    .attorney-layout {
        gap: 40px;
    }

    .attorney-image {
        max-width: 480px;
    }

    .testimonials-grid {
        column-count: 1;
    }

    .testimonial-card {
        padding: 30px;
    }
}


/* ---------------------------------------------------------
   11.03 SMALL MOBILE — MAXIMUM 420PX
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .site-logo {
        width: 190px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 34px;
    }

    .home-hero-content {
        padding-right: 20px;
        padding-left: 20px;
    }

    .home-hero h1 {
        font-size: 42px;
    }
}

/* =========================================================
   13. CONTACT SECTION
   ========================================================= */

.home-contact {
    position: relative;
    background: var(--color-white);
}

.home-contact .section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.home-contact .section-heading h2 em {
    font-weight: 400;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 32px;
    margin-top: 0;
}

/* OFFICE INFORMATION */

.contact-details {
    display: flex;
    flex-direction: column;
    padding: 42px;
    background: var(--color-ivory);
    border: 1px solid rgba(48, 52, 58, 0.10);
}

.contact-details .eyebrow,
.contact-form-wrap .eyebrow {
    margin-bottom: 14px;
}

.contact-form-wrap h3 {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 500;
}

.contact-details address {
    margin: 0 0 30px;
    color: #62686D;
    font-style: normal;
    line-height: 1.9;
}

.contact-item {
    display: grid;
    grid-template-columns: 85px 1fr;
    align-items: baseline;
    gap: 15px;
    margin: 0;
    padding: 17px 0;
    border-top: 1px solid rgba(48, 52, 58, 0.12);
}

.contact-label {
    color: var(--color-slate);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.contact-item a,
.contact-item > span:last-child {
    color: var(--color-charcoal);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.contact-item a {
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--color-bronze);
}

/* CONTACT FORM PANEL */

.contact-form-wrap {
    display: flex;
    flex-direction: column;
    padding: 42px;
    background: var(--color-ivory);
    border: 1px solid rgba(48, 52, 58, 0.10);
}

/* CONTACT FORM */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form label {
    color: var(--color-charcoal);
    font-size: 13px;
    font-weight: 600;
}

.contact-form label span {
    color: #9A7655;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--color-grey);
    border-radius: 0;
    background: var(--color-ivory);
    color: var(--color-charcoal);
    font: inherit;
    font-size: 14px;
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-slate);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    margin-top: 5px;
}


/* CONTACT FORM SPAM PROTECTION */

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* CONTACT FORM SUCCESS MESSAGE */

.form-success {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 0 0 28px;
    padding: 24px 26px;
    background: #F0F2F3;
    border: 1px solid #D8DEE2;
    border-left: 4px solid var(--color-slate);
    border-radius: 3px;
}

.form-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #FFFFFF;
    background: var(--color-slate);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
}

.form-success-content h4 {
    margin: 0 0 10px;
    color: var(--color-slate-dark);
    font-size: 19px;
    font-weight: 600;
}

.form-success-content p {
    margin: 0;
    color: var(--color-charcoal);
    font-size: 15px;
    line-height: 1.7;
}


/* CONTACT TABLET */

@media (max-width: 900px) {

    .contact-layout {
        gap: 22px;
    }

    .contact-details,
    .contact-form-wrap {
        padding: 30px;
    }

    .contact-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
    }

}


/* CONTACT MOBILE */

@media (max-width: 700px) {

    .home-contact .section-heading {
        margin-bottom: 38px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-details,
    .contact-form-wrap {
        padding: 28px 24px;
    }

    .contact-form-wrap h3 {
        font-size: 25px;
    }

}


/* CONTACT SMALL MOBILE */

@media (max-width: 420px) {

    .contact-details,
    .contact-form-wrap {
        padding: 24px 20px;
    }

    .contact-item {
        grid-template-columns: 65px 1fr;
        gap: 8px;
    }

    .form-success {
        gap: 14px;
        padding: 20px;
    }

}

.contact-logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    margin: 0;
}


/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    padding: 0;

    color: #FFFFFF;
    background: var(--color-slate);

    border: 1px solid var(--color-slate);
    border-radius: 50%;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-slate-dark);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--color-slate);
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .back-to-top {
        right: 18px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }
}

/* =========================================================
   18. EXPANDED SERVICE DETAILS
   ========================================================= */

.service-details {
    margin-top: 0;
    border-top: none;
}

.service-detail {
    display: grid;
    grid-template-columns: 1.85fr 1fr;
    align-items: center;
    gap: 85px;
    padding: 75px 0;
    border-bottom: none;
}

/* IMAGE */

.service-detail-image {
    order: 2;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: transparent;
}

.service-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
}

.service-detail-image:hover img {
    transform: scale(1.02);
}

/* CONTENT */

.service-detail-content {
    order: 1;
    width: 100%;
    max-width: none;
}

.service-detail-content .eyebrow {
    margin-bottom: 22px;
}

.service-detail-content h3 {
    margin: 0 0 30px;
    color: var(--color-charcoal);
    font-family: inherit;
    font-size: clamp(32px, 2.7vw, 40px);
    font-weight: 400;
    line-height: 1.25;
}

.service-detail-content p:not(.eyebrow) {
    margin: 0 0 23px;
    color: var(--color-slate);
    font-size: 16px;
    line-height: 2;
}

.service-detail-content .text-link {
    display: inline-block;
    margin-top: 20px;
    padding-bottom: 7px;
    color: var(--color-slate-dark);
    border-bottom: 1px solid var(--color-slate);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.service-detail-content .text-link:hover {
    color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

/* SECOND SERVICE — MIRRORED */

.service-detail-reverse {
    grid-template-columns: 1fr 1.85fr;
}

.service-detail-reverse .service-detail-image {
    order: 1;
}

.service-detail-reverse .service-detail-content {
    order: 2;
}

/* TABLET */

@media (max-width: 900px) {

    .service-detail {
        grid-template-columns: 1.5fr 1fr;
        gap: 40px;
        padding: 65px 0;
    }

    .service-detail-reverse {
        grid-template-columns: 1fr 1.5fr;
    }

    .service-detail-image {
        height: 280px;
    }

    .service-detail-content h3 {
        font-size: 31px;
    }
}

/* MOBILE */

@media (max-width: 650px) {

    .home-services {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 45px 0;
    }

    .service-detail-image,
    .service-detail-reverse .service-detail-image {
        order: 1;
        height: 230px;
    }

    .service-detail-content,
    .service-detail-reverse .service-detail-content {
        order: 2;
    }

    .service-detail-content h3 {
        font-size: 29px;
    }

    .service-detail-content p:not(.eyebrow) {
        font-size: 15px;
        line-height: 1.9;
    }
}
