/* ===========================================================
   LEGENZA SERVICES — terrazzo / concrete brand style
   =========================================================== */

:root {
    --ink: #141414;
    --paper: #d8d7d3;
    --paper-light: #e4e3df;
    --paper-dark: #c7c6c1;
    --accent: #1d6fb8;
    --speck-1: #b9b8b3;
    --speck-2: #a3a29c;
    --speck-3: #8e8d88;
    --font-display: 'Archivo Black', 'Archivo', sans-serif;
    --font-body: 'Archivo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- terrazzo speckle texture (SVG, repeats) --- */
.terrazzo,
.hero-bg,
.band-bg,
.contact-bg,
body::before {
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%23b9b8b3'%3E%3Ccircle cx='23' cy='31' r='5'/%3E%3Ccircle cx='181' cy='17' r='3.4'/%3E%3Ccircle cx='243' cy='99' r='4.4'/%3E%3Ccircle cx='61' cy='133' r='2.6'/%3E%3Ccircle cx='141' cy='221' r='5.4'/%3E%3Ccircle cx='209' cy='181' r='2.2'/%3E%3C/g%3E%3Cg fill='%23a3a29c'%3E%3Cellipse cx='101' cy='61' rx='6' ry='4' transform='rotate(24 101 61)'/%3E%3Cellipse cx='221' cy='241' rx='4.4' ry='3' transform='rotate(-18 221 241)'/%3E%3Cellipse cx='31' cy='201' rx='5' ry='3.4' transform='rotate(40 31 201)'/%3E%3Ccircle cx='161' cy='111' r='3'/%3E%3Ccircle cx='251' cy='41' r='2.4'/%3E%3C/g%3E%3Cg fill='%238e8d88'%3E%3Ccircle cx='71' cy='245' r='2'/%3E%3Ccircle cx='121' cy='11' r='2.4'/%3E%3Ccircle cx='201' cy='71' r='1.8'/%3E%3Ccircle cx='11' cy='101' r='2.2'/%3E%3Cellipse cx='171' cy='171' rx='3.4' ry='2.2' transform='rotate(12 171 171)'/%3E%3C/g%3E%3Cg fill='%23efeeea'%3E%3Ccircle cx='91' cy='171' r='3.4'/%3E%3Ccircle cx='231' cy='141' r='2.6'/%3E%3Ccircle cx='41' cy='71' r='2.2'/%3E%3Ccircle cx='151' cy='61' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* subtle grain overlay */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: .35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===========================================================
   NAV
   =========================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5vw;
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

.nav.scrolled {
    background: rgba(216, 215, 211, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 20, 20, .12);
    padding: 12px 5vw;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: .04em;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.nav-logo span {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .52rem;
    letter-spacing: .42em;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .06em;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -5px;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    border: 2px solid var(--ink);
    padding: 9px 18px;
    transition: background .25s ease, color .25s ease;
}

.nav-cta:hover {
    background: var(--ink);
    color: var(--paper) !important;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-burger span {
    width: 26px;
    height: 3px;
    background: var(--ink);
    transition: transform .3s ease, opacity .3s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform .45s cubic-bezier(.6, 0, .2, 1);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: .03em;
}

.mobile-menu .mobile-cta {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--ink);
    padding: 14px 26px;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -20% 0;
    z-index: 0;
    will-change: transform;
}

.hero-specks {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.speck {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    animation: float 9s ease-in-out infinite alternate;
}

.s1 { width: 90px;  height: 70px;  background: var(--speck-1); top: 12%; left: 7%;  border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%; }
.s2 { width: 46px;  height: 46px;  background: var(--speck-2); top: 22%; right: 12%; animation-delay: -2s; }
.s3 { width: 120px; height: 95px;  background: var(--paper-dark); bottom: 14%; left: 12%; border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; animation-delay: -4s; }
.s4 { width: 28px;  height: 28px;  background: var(--speck-3); top: 56%; left: 22%; animation-delay: -1s; }
.s5 { width: 64px;  height: 52px;  background: var(--speck-1); bottom: 22%; right: 9%;  border-radius: 60% 40% 45% 55% / 45% 55% 50% 50%; animation-delay: -5s; }
.s6 { width: 22px;  height: 22px;  background: var(--speck-2); top: 14%; left: 42%; animation-delay: -3s; }
.s7 { width: 38px;  height: 32px;  background: var(--speck-3); bottom: 36%; right: 26%; border-radius: 50% 50% 42% 58% / 55% 48% 52% 45%; animation-delay: -6s; }
.s8 { width: 54px;  height: 54px;  background: var(--paper-light); top: 38%; right: 38%; animation-delay: -7s; }

@keyframes float {
    from { transform: translate3d(var(--mx, 0), -10px, 0) rotate(-4deg); }
    to   { transform: translate3d(var(--mx, 0), 14px, 0) rotate(6deg); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 920px;
    will-change: transform;
}

.logo-box {
    display: inline-block;
    border: 6px solid var(--ink);
    padding: 26px 48px 22px;
    background: rgba(216, 215, 211, .55);
    backdrop-filter: blur(2px);
}

.logo-box h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 11vw, 6.5rem);
    letter-spacing: .02em;
    line-height: .95;
}

.logo-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.logo-sub i {
    flex: 1;
    height: 3px;
    background: var(--ink);
}

.logo-sub span {
    font-weight: 700;
    font-size: clamp(.65rem, 2vw, .95rem);
    letter-spacing: .55em;
    text-indent: .55em;
    white-space: nowrap;
}

.hero-tagline {
    margin-top: 42px;
    font-size: clamp(1.1rem, 2.6vw, 1.55rem);
    font-weight: 500;
}

.hero-tagline strong { font-weight: 800; }

.hero-claim {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4.6vw, 2.7rem);
    letter-spacing: .03em;
}

.hero-claim span {
    display: inline-block;
}

.hero-actions {
    margin-top: 46px;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .05em;
    text-decoration: none;
    padding: 16px 30px;
    border: 3px solid var(--ink);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn svg { width: 19px; height: 19px; }

.btn-dark {
    background: var(--ink);
    color: var(--paper);
}

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

.btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 rgba(20, 20, 20, .85);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 30px;
    height: 50px;
    border: 3px solid var(--ink);
    border-radius: 18px;
    display: flex;
    justify-content: center;
}

.hero-scroll span {
    width: 5px;
    height: 10px;
    background: var(--ink);
    border-radius: 3px;
    margin-top: 8px;
    animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60%      { transform: translateY(18px); opacity: 0; }
}

/* ===========================================================
   MARQUEE
   =========================================================== */
.marquee {
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    padding: 20px 0;
    transform: rotate(-1.2deg) scale(1.02);
    margin: -16px 0 16px;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 38px;
    width: max-content;
    animation: marquee 22s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: .08em;
    white-space: nowrap;
}

.marquee-track i {
    font-style: normal;
    font-size: 1rem;
    opacity: .7;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ===========================================================
   INTRO
   =========================================================== */
.intro {
    padding: 110px 24px;
    display: flex;
    justify-content: center;
}

.intro-text {
    max-width: 760px;
    text-align: center;
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    font-weight: 500;
    line-height: 1.55;
}

.intro-text em {
    font-style: normal;
    font-weight: 800;
    box-shadow: inset 0 -0.45em 0 rgba(29, 111, 184, .25);
}

/* ===========================================================
   SERVICES
   =========================================================== */
.services {
    padding: 60px 5vw 120px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-head {
    margin-bottom: 60px;
    position: relative;
}

.section-no {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    color: transparent;
    -webkit-text-stroke: 2px rgba(20, 20, 20, .25);
    line-height: 1;
    display: block;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    letter-spacing: .02em;
    margin-top: -0.6em;
}

.section-head p {
    margin-top: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(20, 20, 20, .7);
    max-width: 520px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}

.card {
    background: var(--paper-light);
    border: 3px solid var(--ink);
    padding: 34px 28px;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 8px 8px 0 var(--ink);
}

.card-icon {
    width: 54px;
    height: 54px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: var(--paper);
    transition: background .3s ease, color .3s ease;
}

.card:hover .card-icon {
    background: var(--ink);
    color: var(--paper);
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.card p {
    font-size: .92rem;
    color: rgba(20, 20, 20, .72);
}

/* ===========================================================
   PARALLAX BAND
   =========================================================== */
.band {
    position: relative;
    overflow: hidden;
    padding: 150px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--ink);
}

.band-bg {
    position: absolute;
    inset: -30% 0;
    opacity: .07;
    filter: invert(1);
    will-change: transform;
}

.band-text {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6.5vw, 4.5rem);
    color: var(--paper);
    text-align: center;
    letter-spacing: .02em;
    line-height: 1.15;
}

/* ===========================================================
   CONTACT
   =========================================================== */
.contact {
    position: relative;
    overflow: hidden;
    padding: 140px 5vw;
}

.contact-bg {
    position: absolute;
    inset: -25% 0;
    will-change: transform;
}

.contact-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.contact-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.12;
    margin-bottom: 56px;
}

.contact-cards {
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.contact-card {
    flex: 1 1 300px;
    max-width: 400px;
    border: 4px solid var(--ink);
    background: var(--paper-light);
    text-decoration: none;
    color: var(--ink);
    padding: 34px 28px;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}

.contact-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 9px 9px 0 var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.contact-label {
    display: block;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 10px;
}

.contact-value {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3.4vw, 1.8rem);
    white-space: nowrap;
}

.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto 60px;
    text-align: left;
}

.contact-form-wrap h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 26px;
}

.form-ok {
    border: 3px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    text-align: center;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.form-errors {
    list-style: none;
    border: 3px solid #a33;
    color: #a33;
    background: var(--paper-light);
    font-weight: 600;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.contact-form .hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    border: 3px solid var(--ink);
    background: var(--paper-light);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 13px 14px;
    outline: none;
    transition: box-shadow .2s ease, transform .2s ease;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--ink);
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    font-family: var(--font-body);
    justify-content: center;
}

@media (max-width: 640px) {
    .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
}

.socials p {
    font-weight: 600;
    margin-bottom: 18px;
}

.social-links {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    padding-bottom: 4px;
    transition: border-color .25s ease;
}

.social-links a:hover { border-color: var(--ink); }

.social-links svg { width: 22px; height: 22px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 60px 24px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: .04em;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo span {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .58rem;
    letter-spacing: .45em;
    margin-top: 5px;
    opacity: .8;
}

.footer p {
    font-size: .85rem;
    opacity: .65;
}

/* ===========================================================
   REVEAL ANIMATIONS
   =========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .7, .3, 1) var(--d, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* QA: ?noanim=1 disables entry animations (headless screenshots) */
html.noanim { scroll-behavior: auto; }
html.noanim .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .speck, .marquee-track, .hero-scroll span { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .marquee-track span { font-size: 1.05rem; }
    .band { padding: 100px 24px; }
    .contact { padding: 100px 6vw; }
}
