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

:root {
    --ink: #17231f;
    --muted: #64716b;
    --paper: #e9eee8;
    --leaf: #2f5d50;
    --lime: #d7e96d;
    --line: #d6ddd5;
    --coral: #e98e69;
    --neu-light: #ffffff;
    --neu-shadow: #c7d0c8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.08rem;
    line-height: 1.6;
    overflow-x: hidden;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: auto;
    padding: 24px 32px;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border: 0;
    border-radius: 0 0 22px 22px;
    background: rgba(233, 238, 232, .9);
    backdrop-filter: blur(14px);
    box-shadow: 8px 8px 18px rgba(199, 208, 200, .65), -8px -8px 18px rgba(255, 255, 255, .8);
    animation: droplet-morph 16s ease-in-out infinite alternate;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--ink);
    border-radius: 46% 54% 50% 50%;
    background: var(--lime);
    box-shadow: inset 3px 3px 6px rgba(255, 255, 255, .8), inset -3px -3px 6px rgba(74, 117, 48, .2), 4px 4px 8px var(--neu-shadow);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
}

nav {
    position: absolute;
    left: 50%;
    display: flex;
    gap: 28px;
    transform: translateX(-50%);
}

nav a {
    color: var(--muted);
    font-size: 1rem;
    text-decoration: none;
}

nav a:hover {
    color: var(--leaf);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 4px;
}

.hero,
.section {
    max-width: 1180px;
    margin: auto;
    padding: 112px 32px;
}

.hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex-direction: row;
}

.hero-copy {
    flex: 1 1 55%;
    min-width: 0;
    padding-top: 12px;
}

.hero-visual {
    position: relative;
    flex: 0 1 390px;
    margin: 0;
    transform: rotate(2deg);
    animation: float-in 700ms ease-out both;
}

.hero-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 10px solid var(--paper);
    border-radius: 24px;
    box-shadow: 12px 12px 20px var(--neu-shadow), -8px -8px 18px var(--neu-light);
}

.hero-visual figcaption {
    margin-top: 18px;
    color: var(--muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.visual-badge {
    position: absolute;
    right: -24px;
    top: 28px;
    padding: 9px 12px;
    color: var(--paper);
    background: var(--coral);
    border-radius: 45% 55% 52% 48%;
    box-shadow: 5px 5px 10px rgba(23, 35, 31, .24), inset 2px 2px 4px rgba(255, 255, 255, .35);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transform: rotate(5deg);
}

.hero h1,
h2 {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 12px 0 20px;
    padding: .22em .36em .28em;
    border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%;
    background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(207, 225, 216, .36));
    box-shadow: inset 3px 3px 8px rgba(255, 255, 255, .72), inset -4px -4px 8px rgba(199, 208, 200, .32), 5px 5px 12px rgba(199, 208, 200, .34);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hero h1 {
    position: relative;
    z-index: 1;
    margin-top: 38px;
    margin-bottom: 42px;
    font-size: clamp(2.7rem, 6.5vw, 5.6rem);
}

.hero h1::before,
.hero h1::after {
    position: absolute;
    left: 50%;
    color: var(--leaf);
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(.52rem, .9vw, .68rem);
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero h1::before {
    top: -22px;
    content: "Siaha • One Stop • Solution";
    transform: translateX(-50%) rotate(-4deg);
}

.hero h1::after {
    bottom: -24px;
    content: "Electrical • Interior • Web";
    transform: translateX(-50%) rotate(4deg);
}

h2 {
    font-size: clamp(2.1rem, 4.3vw, 3.8rem);
}

.hero-copy>p:not(.eyebrow) {
    max-width: 520px;
    padding: 14px 18px;
    border-radius: 34% 66% 58% 42% / 52% 42% 58% 48%;
    color: var(--muted);
    background: rgba(255, 255, 255, .3);
    font-size: 1.08rem;
    overflow-wrap: anywhere;
    box-shadow: inset 2px 2px 6px rgba(255, 255, 255, .62), inset -3px -3px 7px rgba(199, 208, 200, .24);
}

.eyebrow {
    margin: 0;
    color: var(--leaf);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero .eyebrow {
    margin-bottom: 16px;
    font-size: 1.05rem;
    letter-spacing: .12em;
}

.button {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 24px;
    padding: 13px 20px;
    border: 0;
    border-radius: 58% 42% 52% 48% / 50% 45% 55% 50%;
    color: var(--ink);
    background: radial-gradient(ellipse at 28% 16%, rgba(255, 255, 255, .98) 0 5%, transparent 22%), radial-gradient(ellipse at 72% 82%, rgba(61, 102, 38, .38) 0 8%, transparent 48%), linear-gradient(145deg, #f7ffca 0%, var(--lime) 44%, #9eb83f 100%);
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 4px 4px 10px rgba(255, 255, 255, .78), inset -5px -7px 12px rgba(54, 91, 35, .3), 8px 8px 15px var(--neu-shadow), -7px -7px 14px var(--neu-light);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:hover {
    filter: saturate(1.08) brightness(1.03);
    box-shadow: inset 5px 5px 10px rgba(54, 91, 35, .2), inset -4px -4px 8px rgba(255, 255, 255, .72), 3px 3px 7px var(--neu-shadow), -3px -3px 7px var(--neu-light);
    transform: translateY(1px);
}

.section {
    border-top: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 52px;
}

.service-card {
    min-width: 0;
    min-height: 240px;
    overflow: visible;
    padding: 26px;
    border: 0;
    border-radius: 26px 42px 30px 38px;
    background: var(--paper);
    box-shadow: 9px 9px 18px var(--neu-shadow), -9px -9px 18px var(--neu-light);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 12px 12px 22px var(--neu-shadow), -12px -12px 22px var(--neu-light);
    transform: translateY(-5px);
}

.service-image {
    display: block;
    width: calc(100% + 52px);
    height: 170px;
    margin: -26px -26px 24px;
    object-fit: cover;
    filter: saturate(.88);
}

.service-card-featured h3 {
    margin-top: 12px;
}

.service-number {
    color: var(--leaf);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.service-card h3 {
    margin: 56px 0 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.solution-trigger {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 24px;
    padding: 10px 12px;
    border: 0;
    border-radius: 58% 42% 52% 48% / 50% 45% 55% 50%;
    color: var(--ink);
    background: radial-gradient(ellipse at 28% 16%, rgba(255, 255, 255, .98) 0 5%, transparent 22%), radial-gradient(ellipse at 72% 82%, rgba(16, 76, 76, .3) 0 8%, transparent 48%), linear-gradient(145deg, rgba(240, 255, 255, .96), rgba(74, 163, 160, .6));
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    box-shadow: inset 4px 4px 10px rgba(255, 255, 255, .78), inset -5px -7px 12px rgba(22, 83, 79, .28), 7px 7px 14px var(--neu-shadow), -6px -6px 13px var(--neu-light);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.solution-trigger:hover,
.solution-trigger[aria-expanded="true"] {
    filter: saturate(1.08) brightness(1.03);
    box-shadow: inset 5px 5px 10px rgba(22, 83, 79, .2), inset -4px -4px 8px rgba(255, 255, 255, .72), 3px 3px 7px var(--neu-shadow), -3px -3px 7px var(--neu-light);
    transform: translateY(1px);
}

.solution-details {
    margin-top: 20px;
    padding: 20px;
    border: 0;
    border-radius: 20px 30px 24px 28px;
    background: var(--paper);
    box-shadow: inset 6px 6px 12px var(--neu-shadow), inset -6px -6px 12px var(--neu-light);
}

.details-intro {
    font-size: 1rem;
}

.sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 12px;
    padding: 10px;
    border: 0;
    border-radius: 18px 4px 18px 4px;
    background: var(--paper);
    box-shadow: inset 4px 4px 9px var(--neu-shadow), inset -4px -4px 9px var(--neu-light);
}

.sub-tab {
    position: relative;
    overflow: hidden;
    padding: 7px 10px;
    min-height: 36px;
    border: 0;
    border-radius: 58% 42% 52% 48% / 50% 45% 55% 50%;
    color: var(--muted);
    background: radial-gradient(ellipse at 28% 16%, rgba(255, 255, 255, .92) 0 5%, transparent 22%), radial-gradient(ellipse at 72% 82%, rgba(16, 76, 76, .24) 0 8%, transparent 48%), linear-gradient(145deg, rgba(240, 255, 255, .82), rgba(74, 163, 160, .4));
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    box-shadow: 5px 5px 10px var(--neu-shadow), -5px -5px 10px var(--neu-light), inset 3px 3px 8px rgba(255, 255, 255, .72), inset -4px -5px 9px rgba(22, 83, 79, .22);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.sub-tab:hover,
.sub-tab.is-active {
    border-color: transparent;
    color: var(--ink);
    filter: saturate(1.08) brightness(1.03);
    background: radial-gradient(ellipse at 28% 16%, rgba(255, 255, 255, .98) 0 5%, transparent 22%), radial-gradient(ellipse at 72% 82%, rgba(61, 102, 38, .38) 0 8%, transparent 48%), linear-gradient(145deg, #f7ffca 0%, var(--lime) 44%, #9eb83f 100%);
    box-shadow: inset 5px 5px 10px rgba(74, 117, 48, .22), inset -4px -4px 8px rgba(255, 255, 255, .76), 3px 3px 7px var(--neu-shadow), -3px -3px 7px var(--neu-light);
    transform: translateY(1px);
}

.solution-trigger::after,
.sub-tab::after,
.button::after {
    position: absolute;
    top: 7px;
    left: 18%;
    width: 18px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    content: "";
    filter: blur(1px);
    pointer-events: none;
    transform: rotate(-14deg);
}

.solution-trigger::before,
.sub-tab::before,
.button::before {
    position: absolute;
    right: 12%;
    bottom: 10%;
    width: 30%;
    height: 12%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    content: "";
    filter: blur(3px);
    pointer-events: none;
    transform: rotate(-8deg);
}

.estimate-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .9rem;
}

.estimate-list li::before {
    margin-right: 8px;
    color: var(--leaf);
    content: "->";
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    padding: 70px max(32px, calc((100% - 1116px) / 2));
    color: var(--paper);
    background: var(--leaf);
    border-radius: 28px;
    box-shadow: 12px 12px 22px var(--neu-shadow), -10px -10px 20px var(--neu-light);
    animation: droplet-morph 20s ease-in-out infinite alternate;
    text-align: center;
}

.contact-section .eyebrow {
    color: var(--lime);
}

.contact-section h2 {
    margin-bottom: 0;
}

.contact-address,
.contact-phone {
    margin: 8px 0 0;
    color: rgba(245, 242, 234, .78);
    font-size: 1.08rem;
}

.contact-phone {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(17, 71, 146, .38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 16px rgba(0, 0, 0, .12);
    font-weight: 700;
    letter-spacing: .04em;
}

.contact-phone-secondary {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: rgba(245, 242, 234, .9);
    font-size: .9rem;
    font-weight: 600;
    opacity: .9;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button-light {
    color: var(--ink);
    font-size: 1rem;
    white-space: nowrap;
}

.site-footer {
    max-width: none;
    padding: 22px max(32px, calc((100% - 1116px) / 2));
    color: rgba(245, 242, 234, .72);
    background: var(--ink);
    box-shadow: inset 0 8px 16px rgba(0, 0, 0, .16);
    font-size: .9rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--paper);
    font-weight: 700;
}

.footer-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--lime);
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(6deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(2deg);
    }
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    nav {
        position: static;
        gap: 16px;
        transform: none;
    }

    .hero,
    .section {
        padding: 76px 20px;
    }

    .hero {
        min-height: 480px;
        align-items: stretch;
        flex-direction: column;
        gap: 48px;
    }

    .hero h1 {
        margin-top: 34px;
        margin-bottom: 38px;
    }

    .hero h1::before,
    .hero h1::after {
        font-size: .52rem;
        letter-spacing: .12em;
    }

    .hero-visual {
        align-self: center;
        width: min(100%, 330px);
    }

    .visual-badge {
        right: -8px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .contact-section {
        align-items: center;
        flex-direction: column;
        padding: 60px 20px;
        text-align: center;
    }

    .contact-actions {
        width: auto;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 24px 20px;
    }
}

@keyframes droplet-morph {
    0% {
        border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%;
    }

    50% {
        border-radius: 58% 42% 44% 56% / 46% 58% 42% 54%;
    }

    100% {
        border-radius: 48% 52% 60% 40% / 58% 48% 52% 42%;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}