:root {
    --orange: #f47710;
    --orange-deep: #dd6809;
    --white: #ffffff;
    --black: #111111;
    --cream: #fffaf5;
    --muted: #6f6f73;
    --line: rgba(17, 17, 17, 0.09);
    --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 18px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--black);
    background: var(--white);
}

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

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

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

.container {
    width: var(--container);
    margin: 0 auto;
}

.announcement-banner {
    padding: 12px 0;
    background: linear-gradient(90deg, var(--orange), #ff9c4f, var(--orange));
    color: var(--white);
    text-align: center;
    font-weight: 700;
    font-size: 0.94rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.logo-image {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: #fff;
    box-shadow: 0 14px 30px rgba(244, 119, 16, 0.14);
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--black);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 30px rgba(244, 119, 16, 0.18);
}

.brand strong,
h1,
h2,
h3,
.display {
    font-family: 'Fraunces', serif;
}

.brand small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    position: relative;
    font-weight: 700;
    color: rgba(17, 17, 17, 0.62);
    transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--black);
}

.site-nav a.active::after,
.site-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 2px;
    background: var(--orange);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--orange);
    box-shadow: 0 18px 35px rgba(244, 119, 16, 0.22);
}

.button-primary:hover {
    background: var(--orange-deep);
}

.button-secondary {
    background: var(--white);
    border: 1px solid var(--line);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--black);
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 250, 245, 0.98), rgba(255, 246, 238, 0.95));
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

.hero-orb-one {
    width: 240px;
    height: 240px;
    top: -60px;
    left: -40px;
    background: radial-gradient(circle, rgba(244, 119, 16, 0.28), rgba(244, 119, 16, 0.04));
    animation: hero-float-1 9s ease-in-out infinite;
}

.hero-orb-two {
    width: 180px;
    height: 180px;
    right: 12%;
    top: 14%;
    background: radial-gradient(circle, rgba(17, 17, 17, 0.16), rgba(17, 17, 17, 0.03));
    animation: hero-float-2 11s ease-in-out infinite;
}

.hero-orb-three {
    width: 200px;
    height: 200px;
    right: -60px;
    bottom: 60px;
    background: radial-gradient(circle, rgba(244, 119, 16, 0.2), rgba(244, 119, 16, 0.02));
    animation: hero-float-3 12s ease-in-out infinite;
}

.hero-animated::before {
    animation: gradient-breathe 10s ease-in-out infinite;
}

.hero-animated .eyebrow {
    animation: eyebrow-glow 4s ease-in-out infinite;
}

.hero-style-vivid .hero-orb-one,
.hero-style-vivid .hero-orb-three {
    filter: saturate(1.2) blur(1px);
}

.hero-style-vivid .hero-status {
    background: rgba(17, 17, 17, 0.84);
    box-shadow: 0 20px 45px rgba(17, 17, 17, 0.28);
}

.hero-speed-slow .hero-orb-one { animation-duration: 13s; }
.hero-speed-slow .hero-orb-two { animation-duration: 15s; }
.hero-speed-slow .hero-orb-three { animation-duration: 17s; }

.hero-speed-normal .hero-orb-one { animation-duration: 9s; }
.hero-speed-normal .hero-orb-two { animation-duration: 11s; }
.hero-speed-normal .hero-orb-three { animation-duration: 12s; }

.hero-speed-fast .hero-orb-one { animation-duration: 6s; }
.hero-speed-fast .hero-orb-two { animation-duration: 7.5s; }
.hero-speed-fast .hero-orb-three { animation-duration: 8s; }

.hero::before,
.site-footer .footer-pattern {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at top left, rgba(244, 119, 16, 0.22), transparent 25%),
        radial-gradient(circle at 78% 18%, rgba(17, 17, 17, 0.09), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 36%),
        repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.025) 0, rgba(17, 17, 17, 0.025) 1px, transparent 1px, transparent 18px);
    pointer-events: none;
}

.hero-grid,
.split-grid,
.cards-grid,
.contact-grid,
.admin-grid,
.stats-grid,
.news-grid,
.gallery-grid,
.footer-grid,
.two-column {
    display: grid;
    gap: 28px;
}

.hero-grid,
.split-grid,
.contact-grid,
.news-grid,
.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero .container {
    position: relative;
    padding: 72px 0 110px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid rgba(244, 119, 16, 0.18);
    box-shadow: var(--shadow);
    color: var(--black);
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1,
.section-heading h2,
.page-hero h1,
.admin-title h1 {
    margin: 0;
    line-height: 1.04;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.3rem);
}

.hero p.lead,
.section-heading p,
.card p,
.metric-card p,
.news-card p,
.detail-copy,
.contact-card p,
.footer-copy,
.admin-card p,
.admin-table td {
    color: rgba(17, 17, 17, 0.7);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-animated .hero-actions .button {
    position: relative;
    overflow: hidden;
}

.hero-animated .hero-actions .button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.55s ease;
}

.hero-animated .hero-actions .button:hover::after {
    left: 135%;
}

.hero-media,
.image-card,
.detail-card,
.card,
.metric-card,
.news-card,
.testimonial-card,
.contact-card,
.admin-card,
.form-card,
.stat-block,
.list-card,
.page-hero,
.map-placeholder,
.news-detail-card {
    border-radius: var(--radius-lg);
}

.hero-media {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: var(--white);
    box-shadow: 0 30px 80px rgba(17, 17, 17, 0.12);
    padding: 14px;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: calc(var(--radius-lg) - 8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

.hero-media img,
.image-card img,
.news-card img,
.gallery-item img,
.news-detail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 8px);
}

.hero-media img {
    height: 540px;
}

.hero-animated .hero-media {
    animation: media-drift 8s ease-in-out infinite;
}

.hero-status {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(17, 17, 17, 0.78);
    color: var(--white);
    backdrop-filter: blur(16px);
}

.hero-animated .hero-status {
    border: 1px solid rgba(255, 255, 255, 0.22);
    animation: status-pulse 5.5s ease-in-out infinite;
}

.hero-status p {
    margin: 0;
}

.section {
    padding: 96px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.section-label {
    margin: 0 0 12px;
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.78rem;
}

.stats-shell {
    margin-top: -58px;
    position: relative;
    z-index: 3;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px;
    background: var(--black);
    box-shadow: 0 30px 80px rgba(17, 17, 17, 0.1);
}

.stat-block {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    padding: 28px;
}

.stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffb06e;
}

.stat-label {
    margin-top: 12px;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.62);
}

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

.cards-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.news-card,
.contact-card,
.admin-card,
.list-card,
.form-card,
.page-hero,
.news-detail-card {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 28px;
}

.card:hover,
.news-card:hover,
.gallery-item:hover,
.admin-card:hover {
    transform: translateY(-6px);
}

.card,
.news-card,
.gallery-item,
.admin-card,
.button,
.social-links a,
.footer-links a,
.menu-toggle,
.back-to-top {
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--orange);
    background: rgba(244, 119, 16, 0.1);
}

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

.dark-grid .card {
    background: var(--black);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-grid .card p {
    color: rgba(255, 255, 255, 0.72);
}

.dark-grid .card .card-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #ffb06e;
}

.list-card {
    background: var(--cream);
}

.step-list,
.check-list,
.footer-links,
.contact-meta,
.admin-list,
.detail-meta {
    display: grid;
    gap: 16px;
}

.step-item,
.check-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number,
.check-badge {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    font-weight: 800;
}

.check-badge {
    background: rgba(244, 119, 16, 0.12);
    color: var(--orange);
}

.news-grid,
.contact-grid,
.admin-grid {
    align-items: start;
}

.news-list,
.testimonial-slider,
.admin-stack {
    display: grid;
    gap: 22px;
}

.news-card img {
    height: 220px;
    margin-bottom: 18px;
}

.news-meta,
.badge,
.page-tag {
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.76rem;
    font-weight: 800;
}

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

.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 28px;
}

.gallery-item img {
    height: 270px;
}

.gallery-item figcaption {
    position: absolute;
    inset: auto 18px 18px 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(17, 17, 17, 0.72);
    color: var(--white);
    backdrop-filter: blur(12px);
}

.testimonial-card {
    background: var(--cream);
    padding: 42px;
}

.testimonial-card blockquote {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.45;
}

.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-controls button,
.back-to-top {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
}

.map-placeholder {
    min-height: 240px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px dashed rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
}

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

label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--cream);
    padding: 14px 16px;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--orange);
}

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    background: var(--black);
    color: var(--white);
}

.site-footer > .container {
    position: relative;
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    padding: 74px 0 34px;
}

.footer-links a,
.footer-links span,
.social-links a,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover,
.social-links a:hover,
.footer-bottom a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.social-links a {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    color: var(--white);
    background: var(--orange);
    border: 0;
    box-shadow: 0 18px 40px rgba(244, 119, 16, 0.26);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.page-hero {
    margin-top: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 250, 245, 0.96), rgba(255, 245, 236, 0.96));
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 119, 16, 0.14), transparent 40%);
}

.page-hero .container {
    position: relative;
    padding: 56px 0;
}

.pagination {
    display: flex;
    gap: 12px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-align: center;
    font-weight: 700;
}

.pagination .active {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.flash {
    padding: 14px 0;
}

.flash-success {
    background: #effaf2;
    color: #0f8f3d;
}

.flash-error {
    background: #fff1eb;
    color: #c9400b;
}

.flash-inner {
    font-weight: 700;
}

.admin-shell {
    background: var(--cream);
    min-height: 100vh;
    padding: 36px 0 60px;
}

.admin-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    padding: 30px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}

.admin-menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.admin-menu a {
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 700;
}

.admin-menu a.active {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.inline-form {
    display: inline;
}

.danger {
    background: #fff1eb;
    color: #c9400b;
}

.status-pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.status-open {
    background: var(--orange);
    color: var(--white);
}

.status-closed {
    background: rgba(17, 17, 17, 0.1);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-reveal 0.8s ease forwards;
}

.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.2s; }
.stagger > *:nth-child(4) { animation-delay: 0.3s; }
.stagger > *:nth-child(5) { animation-delay: 0.4s; }

@keyframes hero-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-float-1 {
    0%,
    100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, 16px) scale(1.05); }
}

@keyframes hero-float-2 {
    0%,
    100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(0.94); }
}

@keyframes hero-float-3 {
    0%,
    100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -12px) scale(1.08); }
}

@keyframes gradient-breathe {
    0%,
    100% { opacity: 1; }
    50% { opacity: 0.82; }
}

@keyframes eyebrow-glow {
    0%,
    100% { box-shadow: var(--shadow); }
    50% { box-shadow: 0 16px 34px rgba(244, 119, 16, 0.24); }
}

@keyframes media-drift {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes status-pulse {
    0%,
    100% { box-shadow: 0 0 0 0 rgba(255, 176, 110, 0); }
    50% { box-shadow: 0 0 0 8px rgba(255, 176, 110, 0.14); }
}

@media (max-width: 980px) {
    .hero-grid,
    .split-grid,
    .contact-grid,
    .news-grid,
    .two-column,
    .admin-grid,
    .footer-grid,
    .cards-grid.four,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cards-grid,
    .gallery-grid,
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        padding: 18px 16px 22px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .site-header.menu-open .site-nav {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .hero .container,
    .section,
    .page-hero .container {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-grid,
    .split-grid,
    .contact-grid,
    .news-grid,
    .two-column,
    .admin-grid,
    .footer-grid,
    .cards-grid,
    .cards-grid.four,
    .gallery-grid,
    .stats-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-media img {
        height: 360px;
    }

    .hero-status {
        position: static;
        margin-top: 14px;
        inset: auto;
    }

    .hero-status h3 {
        font-size: 1.5rem !important;
    }

    .hero-orb {
        opacity: 0.7;
    }

    .logo-image {
        width: 42px;
        height: 42px;
    }

    .admin-title,
    .footer-bottom,
    .nav-wrap {
        align-items: start;
        flex-direction: column;
    }

    .nav-wrap {
        min-height: auto;
        padding: 16px 0;
    }

    .menu-toggle {
        align-self: flex-end;
        margin-top: -62px;
    }
}

@media print {
    .site-header,
    .announcement-banner,
    .site-footer,
    .back-to-top,
    .menu-toggle,
    .button,
    .admin-menu {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .page-hero,
    .card,
    .contact-card,
    .list-card,
    .news-detail-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
