/*
 * Public site. Every brand value comes from /theme.css (generated from the
 * admin panel: Görünüm & Marka) as CSS custom properties; the defaults below
 * apply only when it is missing.
 *
 *  1. Tokens & base       6. Home sections
 *  2. Layout helpers      7. Inner pages
 *  3. Buttons             8. Contact & forms
 *  4. Top bar & header    9. Footer & floating buttons
 *  5. Hero slider        10. Motion & responsive
 */

/* 1. Tokens & base ----------------------------------------------------- */

:root {
    --brand-primary: #E3051B;
    --brand-primary-rgb: 227, 5, 27;
    --brand-primary-hover: #C80418;
    --brand-primary-contrast: #FFFFFF;
    --brand-primary-text: #C80418;
    --brand-primary-soft: #FDE6E8;
    --brand-secondary: #0B1F3A;
    --brand-secondary-rgb: 11, 31, 58;
    --brand-secondary-hover: #23354E;
    --brand-secondary-contrast: #FFFFFF;
    --brand-accent: #F59E0B;
    --brand-accent-contrast: #111111;
    --site-bg: #FFFFFF;
    --site-bg-rgb: 255, 255, 255;
    --site-text: #1D1D1F;
    --site-text-rgb: 29, 29, 31;
    --site-text-muted: #6B6B6F;
    --site-surface: #FFFFFF;
    --site-surface-muted: #F6F6F7;
    --site-border: #E8E8EA;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-button: 10px;
    --font-body: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: var(--font-body);

    --container: 1240px;
    --header-height: 84px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 18px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.05), 0 30px 70px rgba(0, 0, 0, 0.14);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--brand-primary-text);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--brand-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid rgba(var(--brand-primary-rgb), 0.45);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
}

.skip-link:focus {
    top: 12px;
}

main:focus {
    outline: none;
}

/* 2. Layout helpers ---------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 860px;
}

.section {
    padding: 96px 0;
}

.section-tight {
    padding: 72px 0;
}

.sec-default {
    background: var(--site-bg);
}

.sec-muted {
    background: var(--site-surface-muted);
}

.sec-primary {
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
}

.sec-dark {
    background: var(--brand-secondary);
    color: var(--brand-secondary-contrast);
}

.sec-primary .eyebrow,
.sec-dark .eyebrow {
    color: var(--brand-accent);
}

.sec-primary .section-subtitle,
.sec-dark .section-subtitle {
    color: inherit;
    opacity: 0.8;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--brand-primary-text);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.section-title {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}

.section-title-sm {
    font-size: 1.5rem;
}

.section-subtitle {
    margin: 0;
    color: var(--site-text-muted);
    font-size: 1.125rem;
}

.lead-text {
    color: var(--site-text-muted);
    font-size: 1.125rem;
}

.section-actions {
    margin-top: 44px;
    text-align: center;
}

.card-grid,
.feature-grid,
.stats-grid,
.logo-grid,
.gallery-grid {
    display: grid;
    gap: 24px;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.icon-badge {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.empty-state,
.empty-home {
    padding: 48px 0;
    color: var(--site-text-muted);
    text-align: center;
}

.empty-state .bi {
    font-size: 2.5rem;
}

/* 3. Buttons ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-button);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn-lg {
    min-height: 54px;
    padding: 14px 30px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-brand {
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
    box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), 0.28);
}

.btn-brand:hover {
    background: var(--brand-primary-hover);
    color: var(--brand-primary-contrast);
    box-shadow: 0 12px 28px rgba(var(--brand-primary-rgb), 0.36);
    transform: translateY(-1px);
}

.btn-outline-brand {
    border-color: var(--brand-primary);
    background: transparent;
    color: var(--brand-primary-text);
}

.btn-outline-brand:hover {
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
}

.btn-light-on-color {
    background: #FFFFFF;
    color: var(--brand-secondary);
}

.btn-light-on-color:hover {
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand-secondary);
    transform: translateY(-1px);
}

/* 4. Top bar & header -------------------------------------------------- */

.topbar {
    background: var(--brand-secondary);
    color: var(--brand-secondary-contrast);
    font-size: 0.8125rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
}

.topbar-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.topbar a,
.topbar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    opacity: 0.9;
}

.topbar a:hover {
    color: inherit;
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 6px;
}

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: inherit;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.social-links a:hover {
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.header-light {
    --header-bg: rgba(var(--site-bg-rgb), 0.92);
    --header-text: var(--site-text);
    --header-active: var(--brand-primary-text);
    --dropdown-bg: var(--site-surface);
    --dropdown-text: var(--site-text);
    border-bottom: 1px solid var(--site-border);
}

.header-dark {
    --header-bg: var(--brand-secondary);
    --header-text: var(--brand-secondary-contrast);
    --header-active: var(--brand-accent);
    --dropdown-bg: var(--site-surface);
    --dropdown-text: var(--site-text);
}

.header-primary {
    --header-bg: var(--brand-primary);
    --header-text: var(--brand-primary-contrast);
    --header-active: var(--brand-primary-contrast);
    --dropdown-bg: var(--site-surface);
    --dropdown-text: var(--site-text);
}

.site-header {
    background: var(--header-bg);
    color: var(--header-text);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
}

.brand:hover {
    color: inherit;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 56px;
    object-fit: contain;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
}

.header-primary .brand-mark {
    background: var(--brand-primary-contrast);
    color: var(--brand-primary);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-slogan {
    font-size: 0.75rem;
    opacity: 0.7;
}

.main-nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-li {
    position: relative;
}

.nav-link-row {
    display: flex;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--header-text);
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--header-active);
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 2px;
    left: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.has-children .nav-link {
    padding-right: 4px;
}

.nav-sub-toggle {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 34px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--header-text);
    font-size: 0.75rem;
    cursor: pointer;
}

.nav-sub-toggle .bi {
    transition: transform 0.25s var(--ease);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 10;
    min-width: 280px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--site-border);
    border-radius: var(--radius);
    background: var(--dropdown-bg);
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    left: 0;
    height: 12px;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--dropdown-text);
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-dropdown-link .bi {
    color: var(--brand-primary);
    font-size: 1.125rem;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    background: var(--brand-primary-soft);
    color: var(--brand-primary-text);
}

@media (min-width: 1081px) {
    .has-children:hover > .nav-dropdown,
    .has-children:focus-within > .nav-dropdown,
    .has-children.is-open > .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .has-children:hover .nav-sub-toggle .bi {
        transform: rotate(180deg);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta-mobile {
    display: none;
}

.header-primary .header-cta {
    background: var(--brand-primary-contrast);
    color: var(--brand-primary);
    box-shadow: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--header-text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 5. Hero slider ------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--brand-secondary);
    color: #FFFFFF;
}

.hero-track {
    display: grid;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    grid-area: 1 / 1;
    min-height: clamp(520px, 78vh, 760px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s linear;
}

.hero-slide.is-active .hero-bg {
    transform: scale(1);
}

.hero-bg-pattern {
    background:
        radial-gradient(1200px 600px at 85% 20%, rgba(var(--brand-primary-rgb), 0.55), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(var(--brand-primary-rgb), 0.35), transparent 60%),
        linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-hover));
    overflow: hidden;
}

.hero-bg-pattern::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.hero-deco-icon {
    position: absolute;
    right: 6%;
    bottom: 50%;
    transform: translateY(50%);
    color: rgba(255, 255, 255, 0.12);
    font-size: clamp(12rem, 26vw, 24rem);
    line-height: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--brand-secondary-rgb), 0.88) 0%, rgba(var(--brand-secondary-rgb), 0.55) 50%, rgba(var(--brand-secondary-rgb), 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 64px;
    padding-bottom: 96px;
}

.hero-title {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero-text {
    max-width: 620px;
    margin-bottom: 36px;
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
    opacity: 0.9;
}

.hero-slide .hero-title,
.hero-slide .hero-text,
.hero-slide .btn {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.hero-slide.is-active .hero-title {
    opacity: 1;
    transform: none;
    transition-delay: 0.2s;
}

.hero-slide.is-active .hero-text {
    opacity: 0.9;
    transform: none;
    transition-delay: 0.35s;
}

.hero-slide.is-active .btn {
    opacity: 1;
    transform: none;
    transition-delay: 0.5s;
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 1.25rem;
    cursor: pointer;
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color 0.2s var(--ease);
}

.hero-nav:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.hero-dot.is-active {
    width: 36px;
    background: var(--brand-primary);
}

/* 6. Home sections ----------------------------------------------------- */

.service-card,
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--radius);
    background: var(--site-surface);
    color: var(--site-text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card:hover,
.post-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.service-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-media,
.post-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--site-surface-muted);
}

.service-media img,
.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.service-card:hover .service-media img,
.post-card:hover .post-media img {
    transform: scale(1.06);
}

.post-media-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-primary-soft), var(--site-surface-muted));
    color: var(--brand-primary);
    font-size: 2.5rem;
}

.service-body,
.post-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 28px;
}

.service-body .icon-badge {
    margin-bottom: 14px;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.service-card:hover .icon-badge {
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
}

.card-title {
    margin: 0;
    font-size: 1.25rem;
}

.card-title a {
    color: inherit;
}

.stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-text {
    margin: 0;
    color: var(--site-text-muted);
    font-size: 0.9688rem;
}

.card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--brand-primary-text);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.card-more .bi {
    transition: transform 0.3s var(--ease);
}

.service-card:hover .card-more .bi,
.post-card:hover .card-more .bi {
    transform: translateX(4px);
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--site-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 72px;
}

.about-grid.image-first .about-media {
    order: -1;
}

.about-media {
    position: relative;
}

.about-media img,
.about-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-media::before {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -18px;
    z-index: -1;
    width: 60%;
    height: 60%;
    border-radius: var(--radius);
    background: var(--brand-primary);
    opacity: 0.9;
}

.about-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-hover));
    color: rgba(255, 255, 255, 0.25);
    font-size: 8rem;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 24px 0 32px;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
}

.check-list .bi {
    margin-top: 2px;
    color: var(--brand-primary);
}

/* Stats */

.stats-grid {
    gap: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    border-radius: var(--radius);
    text-align: center;
}

.sec-dark .stat,
.sec-primary .stat {
    background: rgba(255, 255, 255, 0.06);
}

.sec-default .stat,
.sec-muted .stat {
    background: var(--site-surface);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    margin-bottom: 8px;
    color: var(--brand-accent);
    font-size: 1.75rem;
}

.sec-default .stat-icon,
.sec-muted .stat-icon {
    color: var(--brand-primary);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

/* Long values ("450.000 m²") stay on one line instead of towering over the other counters. */
.stat-value.is-long {
    font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.35rem);
}

.stat-label {
    margin-top: 6px;
    font-weight: 600;
    opacity: 0.85;
}

.stat-text {
    margin-top: 4px;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Features */

.feature-grid {
    gap: 20px;
}

.feature {
    display: flex;
    gap: 18px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--site-surface);
    color: var(--site-text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.feature-title {
    margin: 0 0 4px;
    font-size: 1.0625rem;
}

.feature-text {
    margin: 0;
    color: var(--site-text-muted);
    font-size: 0.9375rem;
}

/* References */

.logo-grid {
    gap: 16px;
}

.logo-cell {
    display: grid;
    place-items: center;
    min-height: 110px;
    padding: 20px;
    border: 1px solid var(--site-border);
    border-radius: var(--radius);
    background: var(--site-surface);
}

.logo-cell img {
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.logo-cell:hover img {
    filter: none;
    opacity: 1;
}

.logo-name {
    color: var(--site-text-muted);
    font-weight: 700;
}

/* Call to action */

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
}

.cta-band.sec-default,
.cta-band.sec-muted {
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    mix-blend-mode: luminosity;
}

.cta-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-title {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
}

.cta-subtitle {
    margin: 0;
    opacity: 0.85;
}

.cta-band .btn-light-on-color {
    color: var(--brand-primary);
}

/* Gallery */

.gallery-grid {
    gap: 12px;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 24px 14px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
}

html.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
    max-width: min(1200px, 100%);
    max-height: 82vh;
    border-radius: var(--radius-sm);
}

.lightbox-caption {
    margin-top: 12px;
    color: #FFFFFF;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Rich text written in the admin panel */

.rich-text {
    font-size: 1.0625rem;
}

.rich-text h2 { font-size: 1.75rem; margin-top: 1.4em; }
.rich-text h3 { font-size: 1.375rem; margin-top: 1.3em; }
.rich-text h4 { font-size: 1.125rem; margin-top: 1.2em; }
.rich-text > :first-child { margin-top: 0; }

.rich-text ul,
.rich-text ol {
    padding-left: 1.4em;
}

.rich-text li {
    margin-bottom: 0.4em;
}

.rich-text ul li::marker {
    color: var(--brand-primary);
}

/* Images in content: the panel only picks a layout (img-wide / img-center /
   img-left / img-right); site.js adds img-portrait, img-small and img-row. */

.rich-text::after {
    content: "";
    display: table;
    clear: both;
}

.rich-text img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(78vh, 680px);
    margin: 1.75rem auto;
    border-radius: var(--radius);
    background: var(--site-surface-muted);
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45);
}

.rich-text img.is-zoomable {
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rich-text img.is-zoomable:hover {
    box-shadow: 0 24px 48px -22px rgba(15, 23, 42, 0.55);
}

.rich-text img.is-zoomable:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 3px;
}

.rich-text figure {
    margin: 1.75rem 0;
}

.rich-text figure img {
    margin: 0 auto;
}

.rich-text figcaption {
    margin-top: 10px;
    color: var(--site-text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.rich-text .img-wide,
.rich-text figure.img-wide img {
    width: 100%;
    max-height: none;
    object-fit: cover;
}

.rich-text .img-center,
.rich-text figure.img-center img {
    max-width: min(100%, 560px);
}

.rich-text .img-small {
    max-width: min(100%, 360px);
}

.rich-text .img-row {
    display: grid;
    grid-template-columns: repeat(var(--img-count, 2), minmax(0, 1fr));
    gap: 14px;
    margin: 1.75rem 0;
}

.rich-text .img-row br {
    display: none;
}

.rich-text .img-row img {
    width: 100%;
    max-height: none;
    margin: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (min-width: 700px) {
    .rich-text .img-left,
    .rich-text .img-right,
    .rich-text .img-portrait {
        width: 42%;
        max-height: none;
        margin-top: 0.35rem;
        margin-bottom: 1.25rem;
    }

    .rich-text .img-left {
        float: left;
        margin-right: 1.75rem;
        margin-left: 0;
    }

    .rich-text .img-right,
    .rich-text .img-portrait {
        float: right;
        margin-left: 1.75rem;
        margin-right: 0;
    }

    .rich-text figure.img-left img,
    .rich-text figure.img-right img,
    .rich-text figure.img-portrait img {
        width: 100%;
    }

    /* Headings and lists start below a floated image's side text, not squeezed beside it. */
    .rich-text blockquote,
    .rich-text table,
    .rich-text .img-row {
        clear: both;
    }
}

@media (max-width: 699.98px) {
    .rich-text .img-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rich-text .img-row img:last-of-type:nth-of-type(odd) {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .rich-text .img-portrait {
        max-height: 70vh;
    }
}

.rich-text blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--site-surface-muted);
    font-size: 1.125rem;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
}

.rich-text th,
.rich-text td {
    padding: 10px 12px;
    border: 1px solid var(--site-border);
}

.sec-dark .rich-text a,
.sec-primary .rich-text a {
    color: inherit;
    text-decoration: underline;
}

/* 7. Inner pages ------------------------------------------------------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background:
        radial-gradient(800px 400px at 90% 0%, rgba(var(--brand-primary-rgb), 0.45), transparent 60%),
        linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-hover));
    color: #FFFFFF;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(var(--brand-secondary-rgb), 0.9), rgba(var(--brand-secondary-rgb), 0.5));
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    margin: 0;
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
    font-weight: 800;
}

.page-hero-summary {
    max-width: 720px;
    margin: 14px 0 0;
    font-size: 1.125rem;
    opacity: 0.85;
}

.breadcrumb-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    font-size: 0.875rem;
    list-style: none;
}

.breadcrumb-nav li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

.breadcrumb-nav li + li::before {
    content: "/";
    opacity: 0.5;
}

.breadcrumb-nav a {
    color: inherit;
}

.breadcrumb-nav a:hover {
    color: inherit;
    text-decoration: underline;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 56px;
}

.page-layout.no-side {
    grid-template-columns: minmax(0, 1fr);
    max-width: 960px;
}

.child-cards {
    margin-top: 40px;
}

.page-side {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: grid;
    gap: 24px;
}

.side-menu {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--radius);
    background: var(--site-surface);
}

.side-menu-title {
    display: block;
    padding: 18px 22px;
    background: var(--brand-secondary);
    color: var(--brand-secondary-contrast);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
}

a.side-menu-title:hover {
    color: var(--brand-secondary-contrast);
}

.side-menu ul {
    margin: 0;
    padding: 8px;
    list-style: none;
}

.side-menu li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--site-text);
    font-weight: 500;
}

.side-menu li a .bi {
    margin-top: 3px;
    color: var(--brand-primary);
}

.side-menu li a small {
    display: block;
    color: var(--site-text-muted);
    font-size: 0.75rem;
}

.side-menu li a:hover,
.side-menu li a.active {
    background: var(--brand-primary-soft);
    color: var(--brand-primary-text);
}

.side-contact {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
}

.side-contact h2 {
    font-size: 1.25rem;
}

.side-contact p {
    opacity: 0.85;
}

.side-contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: inherit;
    font-size: 1.25rem;
    font-weight: 800;
}

.side-contact-phone:hover {
    color: inherit;
}

.side-contact .btn-light-on-color {
    color: var(--brand-primary);
}

.post-cover {
    display: block;
    width: 100%;
    margin: 18px 0 24px;
    border-radius: var(--radius);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-weight: 600;
}

.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pager-link {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--site-border);
    border-radius: var(--radius-sm);
    color: var(--site-text);
    font-weight: 600;
}

.pager-link.active,
.pager-link:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
}

.status-page {
    max-width: 640px;
    padding: 48px 24px;
    text-align: center;
}

.status-code {
    display: block;
    color: var(--brand-primary);
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

/* 8. Contact & forms --------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 48px;
}

.contact-cards {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--site-border);
    border-radius: var(--radius);
    background: var(--site-surface);
    color: var(--site-text);
}

.contact-card > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-label {
    color: var(--site-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.contact-value {
    color: var(--site-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

a.contact-value:hover {
    color: var(--brand-primary-text);
}

.map-frame {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.form-card {
    padding: 36px;
    border: 1px solid var(--site-border);
    border-radius: var(--radius);
    background: var(--site-surface);
    color: var(--site-text);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 0.875rem;
    font-weight: 600;
}

.req {
    color: var(--brand-primary);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--site-border);
    border-radius: var(--radius-sm);
    background: var(--site-bg);
    color: var(--site-text);
    font: inherit;
    font-size: 0.9688rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.14);
}

.field [aria-invalid="true"] {
    border-color: #D70015;
}

.field-error {
    color: #D70015;
    font-size: 0.8125rem;
    font-weight: 600;
}

.field-check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 4px 12px;
}

.field-check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--brand-primary);
}

.field-check label {
    font-weight: 500;
}

.field-check .field-error {
    grid-column: 2;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-success {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: #E6F6EA;
    color: #1F7A35;
}

.form-success .bi {
    font-size: 1.5rem;
}

.form-success p {
    margin: 2px 0 0;
}

.form-error-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #FFECEB;
    color: #A0000F;
    font-weight: 600;
}

/* 9. Footer & floating buttons ---------------------------------------- */

.site-footer {
    background: var(--brand-secondary);
    color: var(--brand-secondary-contrast);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 56px;
}

.brand-on-dark .brand-mark {
    background: var(--brand-primary);
}

.footer-brand .brand {
    margin-bottom: 20px;
}

.footer-about {
    opacity: 0.75;
}

.footer-title {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 12px;
    font-size: 1.0625rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-primary);
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a,
.footer-contact a {
    color: inherit;
    opacity: 0.78;
    transition: opacity 0.2s, padding 0.2s var(--ease);
}

.footer-links a:hover {
    color: inherit;
    opacity: 1;
    padding-left: 4px;
}

.footer-contact a:hover {
    color: inherit;
    opacity: 1;
}

.footer-contact li {
    display: flex;
    gap: 12px;
}

.footer-contact .bi {
    color: var(--brand-primary);
    font-size: 1.0625rem;
}

.footer-contact span {
    opacity: 0.78;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    padding-bottom: 22px;
    opacity: 0.7;
}

.whatsapp-float,
.back-to-top {
    position: fixed;
    right: 24px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.25s var(--ease);
}

.whatsapp-float {
    bottom: 24px;
    background: #25D366;
    color: #FFFFFF;
    font-size: 1.75rem;
}

.whatsapp-float:hover {
    color: #FFFFFF;
    transform: scale(1.08);
}

.back-to-top {
    bottom: 92px;
    width: 46px;
    height: 46px;
    right: 29px;
    background: var(--brand-primary);
    color: var(--brand-primary-contrast);
    font-size: 1.125rem;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top[hidden] {
    display: none;
}

/* 10. Motion & responsive -------------------------------------------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1080px) {
    :root {
        --header-height: 72px;
    }

    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--nav-top, var(--header-height));
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 16px 20px 32px;
        overflow-y: auto;
        background: var(--site-bg);
        color: var(--site-text);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-li {
        border-bottom: 1px solid var(--site-border);
    }

    .nav-link-row {
        justify-content: space-between;
    }

    .nav-link,
    .nav-sub-toggle {
        color: var(--site-text);
    }

    .nav-link {
        padding: 16px 4px;
        font-size: 1.0625rem;
    }

    .nav-link.active {
        color: var(--brand-primary-text);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-sub-toggle {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .has-children.is-open .nav-sub-toggle .bi {
        transform: rotate(180deg);
    }

    .nav-dropdown {
        position: static;
        display: none;
        min-width: 0;
        margin: 0 0 12px;
        padding: 4px;
        border: 0;
        background: var(--site-surface-muted);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-children.is-open > .nav-dropdown {
        display: block;
    }

    .nav-cta-mobile {
        display: inline-flex;
    }

    body.nav-open {
        overflow: hidden;
    }

    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-grid {
        gap: 48px;
    }

    .page-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-side {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .section {
        padding: 72px 0;
    }

    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-grid.image-first .about-media,
    .about-media {
        order: -1;
    }

    .about-media::before {
        right: -10px;
        bottom: -10px;
    }

    .hero-nav {
        display: none;
    }

    .topbar-hours {
        display: none !important;
    }

    .logo-grid.grid-cols-4,
    .logo-grid.grid-cols-5,
    .logo-grid.grid-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Two-column tablets: an odd last card would sit alone; give it the full row
   as a horizontal card (picture left, text right). */
@media (min-width: 601px) and (max-width: 860px) {
    .card-grid > .post-card:last-child:nth-child(odd),
    .card-grid > .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .card-grid > .post-card:last-child:nth-child(odd) > .post-media,
    .card-grid > .service-card:last-child:nth-child(odd) > .service-media {
        flex: 0 0 48%;
        aspect-ratio: auto;
        min-height: 220px;
    }

    .card-grid > .post-card:last-child:nth-child(odd) > .post-body,
    .card-grid > .service-card:last-child:nth-child(odd) > .service-body {
        align-self: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6 {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats-grid.grid-cols-2,
    .stats-grid.grid-cols-3,
    .stats-grid.grid-cols-4,
    .logo-grid.grid-cols-3,
    .logo-grid.grid-cols-4,
    .logo-grid.grid-cols-5,
    .logo-grid.grid-cols-6,
    .gallery-grid.grid-cols-3,
    .gallery-grid.grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar-contact a:nth-child(n+2) {
        display: none;
    }

    .topbar .social-links {
        display: none;
    }

    .brand-logo {
        max-width: 170px;
        max-height: 44px;
    }

    .brand-slogan {
        display: none;
    }

    .check-list,
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-card {
        padding: 22px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding-top: 56px;
    }

    .hero-content {
        padding-bottom: 88px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }

    .back-to-top {
        right: 21px;
        bottom: 84px;
    }
}
