/* ============================================================
   REAU — Inner pages (light theme)
   ============================================================ */

/* ---------------- Page hero ---------------- */

.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(50px, 9vw, 110px)) 0 clamp(56px, 8vw, 88px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 62svh;
    background: var(--bg-soft);
}

.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.35) 78%, rgba(255, 255, 255, 0.08) 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 34%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 720px;
}

.page-hero .eyebrow { color: var(--blue); }

.page-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(38px, 6.4vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.028em;
    color: var(--ink);
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page-hero-subtitle {
    max-width: 640px;
    color: var(--ink-3);
    font-size: clamp(16px, 1.9vw, 19px);
    animation: rise 700ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-3);
    animation: rise 700ms 180ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span:not(.sep) { color: var(--ink); }
.breadcrumb .sep { color: #b9cbdb; }

/* ---------------- Products ---------------- */

.product-list {
    display: flex;
    flex-direction: column;
    gap: clamp(64px, 10vw, 110px);
}

.product-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(32px, 6vw, 64px);
    align-items: center;
}

.product-media {
    grid-column: 1 / span 6;
    position: relative;
}

.product-row.reverse .product-media { grid-column: 7 / span 6; order: 2; }
.product-row.reverse .product-content { grid-column: 1 / span 6; order: 1; }

.product-img {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 7px solid #fff;
    outline: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.product-img img { width: 100%; height: min(560px, 72vw); object-fit: cover; transition: transform 700ms ease; }
.product-img:hover img { transform: scale(1.03); }

.product-media::after {
    content: "";
    position: absolute;
    top: 16%;
    right: -36px;
    width: 54%;
    height: 54%;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--c, var(--blue)) 30%, transparent), transparent 72%);
    z-index: -1;
}

.product-row { --c: var(--blue); }
.pr-orange { --c: var(--orange); }
.pr-blue { --c: var(--blue); }
.pr-red { --c: var(--red); }
.pr-green { --c: var(--green); }

.product-content {
    grid-column: 7 / span 6;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.product-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.product-content > p { color: var(--ink-3); }

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.spec {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.spec:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: color-mix(in srgb, var(--c, var(--blue)) 40%, #fff);
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.spec-label::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--c, var(--blue));
    flex: none;
}

.spec-value { font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.5; }

/* ---------------- Benefits (products) ---------------- */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.benefit-card {
    --c: var(--blue);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

.benefit-card i {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 15px;
    font-size: 25px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, #fff);
}

.benefit-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.benefit-card p { font-size: 14.5px; color: var(--ink-3); }

.benefit-card.b-blue { --c: var(--blue); }
.benefit-card.b-orange { --c: var(--orange); }
.benefit-card.b-red { --c: var(--red); }
.benefit-card.b-green { --c: var(--green); }

.section-header.center { justify-content: center; text-align: center; }
.section-header.center > div { margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section-header.center .section-lead { text-align: center; }

/* ---------------- Projects (gallery) ---------------- */

.gal-count {
    text-align: center;
    font-size: 13px;
    color: var(--ink-3);
    margin-top: 16px;
    margin-bottom: 36px;
}

.gal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.gal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.gal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.gal-media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gal-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.gal-card:hover .gal-media img { transform: scale(1.06); }

.gal-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(13, 47, 75, 0.5);
}

.gal-cat.c-ndertim { background: var(--blue); }
.gal-cat.c-renovim { background: var(--orange); }
.gal-cat.c-adaptim { background: var(--green); }
.gal-cat.c-restaurim { background: var(--red); }

.gal-info { padding: 20px 22px 22px; }

.gal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16.5px;
    line-height: 1.45;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.gal-loc {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    font-size: 13px;
    color: var(--ink-3);
}

.gal-loc i { color: var(--blue); font-size: 14px; }

/* ---------------- About ---------------- */

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 4px;
}

.value-card {
    --c: var(--blue);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.value-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c);
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-card h3::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 3px;
    background: var(--c);
    flex: none;
}

.value-card p { font-size: 14.5px; color: var(--ink-3); }

.v-blue { --c: var(--blue); }
.v-orange { --c: var(--orange); }
.v-red { --c: var(--red); }
.v-green { --c: var(--green); }

/* Timeline / process */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}

.timeline-item {
    --c: var(--blue);
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.timeline-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

.timeline-item::after {
    content: "";
    position: absolute;
    inset: auto -26px -26px auto;
    width: 96px; height: 96px;
    border-radius: 28%;
    background: color-mix(in srgb, var(--c) 10%, #fff);
    transform: rotate(14deg);
}

.timeline-step {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 55%, transparent);
    position: relative;
    z-index: 1;
}

.timeline-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); position: relative; z-index: 1; }
.timeline-item p { font-size: 14.5px; color: var(--ink-3); position: relative; z-index: 1; }

.tl-blue { --c: var(--blue); }
.tl-orange { --c: var(--orange); }
.tl-red { --c: var(--red); }
.tl-green { --c: var(--green); }

/* ---------------- Contact ---------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info > p { color: var(--ink-3); }

.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.contact-card:hover { transform: translateX(4px); box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--cc, var(--blue)) 40%, #fff); }

.contact-card i {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    font-size: 22px;
    color: var(--cc, var(--blue));
    background: color-mix(in srgb, var(--cc, var(--blue)) 12%, #fff);
    flex: none;
}

.contact-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.contact-card p, .contact-card a { font-weight: 600; color: var(--ink); margin-top: 3px; }

.contact-card:nth-child(1) { --cc: var(--blue); }
.contact-card:nth-child(2) { --cc: var(--orange); }
.contact-card:nth-child(3) { --cc: var(--red); }
.contact-card:nth-child(4) { --cc: var(--green); }

.contact-social {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.contact-social .social-row { display: flex; gap: 10px; }

.contact-social a {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 16px;
    transition: all 200ms ease;
}

.contact-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }

.contact-form-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 5vw, 48px); }

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

.form-field { display: flex; flex-direction: column; gap: 9px; }

.form-field label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--bg-soft);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #9db4c6; }

.form-field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237088a0' stroke-width='2' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 112, 184, 0.12);
}

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

.form-submit { align-self: flex-start; margin-top: 4px; }

.form-ok {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--green-soft);
    border: 1px solid rgba(141, 198, 63, 0.5);
    color: #4d7516;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14.5px;
    font-weight: 600;
}
.form-ok.show { display: flex; }

.form-note { font-size: 13px; color: var(--ink-3); }

/* Map */
.map-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 7px solid #fff;
    outline: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    height: clamp(340px, 56vw, 520px);
}

.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
    .product-row,
    .product-row.reverse { grid-template-columns: 1fr; }
    .product-media, .product-row.reverse .product-media { grid-column: 1 / -1; order: 1; }
    .product-content, .product-row.reverse .product-content { grid-column: 1 / -1; order: 2; }
    .product-media::after { right: auto; left: 50%; transform: translateX(-50%); }

    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-grid { grid-template-columns: repeat(2, 1fr); }

    .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
    .values-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }
    .form-submit { align-self: stretch; width: 100%; }
}

@media (max-width: 640px) {
    .page-hero { min-height: 56svh; }
    .page-hero-overlay {
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%),
            linear-gradient(0deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 40%);
    }

    .benefits-grid, .timeline-grid { grid-template-columns: 1fr; }
    .product-specs { grid-template-columns: 1fr; }

    .gal-grid { grid-template-columns: 1fr; gap: 18px; }
    .gal-count { margin-top: 12px; margin-bottom: 26px; }
}
