/* =========================
   YunikaOne Global Styles
   Fast, clean, responsive
   ========================= */

:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #f1f4f8;
    --text: #18212b;
    --text-soft: #586474;
    --heading: #0f1720;
    --border: #dde4ec;
    --primary: #0f4c81;
    --primary-dark: #0b3a63;
    --accent: #d4a017;
    --success: #1f7a4d;
    --shadow-sm: 0 8px 24px rgba(15, 23, 32, 0.06);
    --shadow-md: 0 14px 40px rgba(15, 23, 32, 0.10);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --container: 1200px;
    --header-height: 120px;
    --transition: 0.28s ease;
}

/* =========================
   Reset
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

p,
h1,
h2,
h3,
h4 {
    margin-top: 0;
}

::selection {
    background: rgba(15, 76, 129, 0.14);
    color: var(--heading);
}

/* =========================
   Layout
   ========================= */

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section-narrow {
    max-width: 860px;
}

.site-main {
    overflow: hidden;
}

section {
    padding: 88px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading-center {
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-title {
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--heading);
    margin-bottom: 14px;
    max-width: 900px;
}

.section-subtitle,
.section-text {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 760px;
}

.section-heading-center .section-subtitle,
.section-heading-center .section-title {
    margin-left: auto;
    margin-right: auto;
}

.section-actions {
    margin-top: 34px;
    text-align: center;
}

/* =========================
   Header
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(221, 228, 236, 0.8);
    transition: box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-logo {
    width: auto;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--heading);
    white-space: nowrap;
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--heading);
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary);
}

.nav-link.active {
    background: rgba(15, 76, 129, 0.10);
    color: var(--primary);
}

.lang-link {
    border: 1px solid var(--border);
    background: var(--surface);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.nav-toggle:hover {
    background: var(--surface-soft);
}

.nav-toggle-line {
    width: 20px;
    height: 2px;
    background: var(--heading);
    border-radius: 999px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   Buttons
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    box-shadow: none;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    color: var(--heading);
    background: transparent;
    border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-light {
    color: var(--heading);
    background: #ffffff;
    border-color: var(--border);
}

.btn-light:hover,
.btn-light:focus-visible {
    background: var(--surface-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================
   Hero
   ========================= */

.hero-section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: stretch;
}

.hero-content,
.hero-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
}

.hero-card {
    animation-delay: 0.1s;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--heading);
    margin-bottom: 18px;
    max-width: 900px;
}

.hero-text {
    font-size: 1.08rem;
    color: var(--text-soft);
    max-width: 720px;
    margin-bottom: 28px;
}

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

.hero-card-inner {
    height: 100%;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.hero-card-title {
    font-size: 1.3rem;
    color: var(--heading);
    margin-bottom: 18px;
}

.hero-list {
    display: grid;
    gap: 14px;
}

.hero-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-soft);
    font-weight: 500;
}

.hero-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

/* =========================
   Cards / Grids
   ========================= */

.card-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.info-card,
.project-card,
.review-card,
.feature-item,
.cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.info-card,
.project-card,
.review-card,
.feature-item {
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover,
.project-card:hover,
.review-card:hover,
.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 76, 129, 0.18);
}

.info-card {
    padding: 28px 22px;
}

.info-card-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.info-card-title,
.project-card-title,
.feature-title {
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--heading);
    margin-bottom: 10px;
}

.info-card-text,
.project-card-text,
.feature-text,
.review-company {
    color: var(--text-soft);
}

/* =========================
   Feature grid
   ========================= */

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

.feature-item {
    padding: 26px 24px;
}

/* =========================
   Project cards
   ========================= */

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card-body {
    padding: 28px 24px 20px;
    flex: 1;
}

.project-card-footer {
    padding: 0 24px 24px;
}

.project-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.12);
    color: #8b6500;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =========================
   Reviews
   ========================= */

.review-card {
    padding: 28px 24px;
}

.review-stars {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 0.10em;
}

.review-text {
    font-size: 1.02rem;
    color: var(--text);
    margin-bottom: 18px;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-name {
    color: var(--heading);
    font-size: 1rem;
}

/* =========================
   CTA
   ========================= */

.cta-box {
    border-radius: var(--radius-xl);
    padding: 34px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.cta-content .section-title {
    margin-bottom: 12px;
}

.cta-content .section-text {
    margin-bottom: 0;
}

/* =========================
   Footer
   ========================= */

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 64px 0 34px;
}

.footer-title {
    font-size: 1.08rem;
    color: var(--heading);
    margin-bottom: 14px;
}

.footer-text {
    color: var(--text-soft);
    margin-bottom: 14px;
    max-width: 320px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-email {
    color: var(--text-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-email:hover,
.footer-email:focus-visible {
    color: var(--primary);
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-soft);
}

/* =========================
   Utility
   ========================= */

.intro-section,
.services-overview-section,
.why-section,
.projects-section,
.templates-section,
.reviews-section {
    position: relative;
}

.projects-section,
.reviews-section {
    background: transparent;
}

.templates-section {
    background: rgba(255, 255, 255, 0.45);
}

/* =========================
   Accessibility / focus
   ========================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(15, 76, 129, 0.20);
    outline-offset: 2px;
}

/* =========================
   Animation
   ========================= */

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 980px) {
    :root {
        --header-height: 108px;
    }

    .header-inner {
        position: relative;
    }

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

    .site-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: min(360px, 100%);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border);
        border-radius: 20px;
        box-shadow: var(--shadow-md);
        padding: 14px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-link {
        justify-content: flex-start;
        border-radius: 14px;
        padding: 12px 14px;
    }

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

    .feature-grid,
    .card-grid-2,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .brand-logo {
        height: 100px;
    }

    .brand-text {
        font-size: 1.32rem;
    }

    .hero-section {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-text,
    .section-text,
    .section-subtitle,
    .info-card-text,
    .project-card-text,
    .feature-text,
    .review-text,
    .footer-text {
        font-size: 1rem;
    }

    .hero-card-inner,
    .info-card,
    .review-card,
    .feature-item,
    .project-card-body,
    .project-card-footer,
    .cta-box {
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-card-footer {
        padding-bottom: 20px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .header-inner {
        min-height: 98px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        height: 100px;
    }

    .brand-text {
        font-size: 1.14rem;
    }

    .section-title {
        font-size: clamp(1.65rem, 8vw, 2.2rem);
    }

    .hero-actions,
    .cta-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .card-grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        padding-top: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}