/* ==========================================================================
   Polish layer (2026-12-02)
   Loaded last. Softer corners, more readable text, clearer hover/focus
   feedback and a less crowded mobile layout. To undo the whole refresh,
   remove the polish.css <link> from frontend/layouts/master.blade.php.
   ========================================================================== */

:root {
    --r-card: 12px;
    --r-btn: 8px;
    --lift: 0 18px 36px -22px rgba(6, 26, 58, .55);
}

/* ---------- Softer corners ---------- */
.member, .spec-card, .plan, .post, .note, .form-card, .contact-panel, .info-card,
.card, .dark-card, .stat-box, .big-project, .data-table-wrap, .map-card, .news-item,
.chart-frame, .check-cards > *, .footer__cards > * { border-radius: var(--r-card); }

.spec-card, .plan, .post, .card, .big-project, .news-item, .data-table-wrap { overflow: hidden; }
.spec-card__media img { border-radius: 0; }

.intro__media--photo img, .intro__media--photo::before,
.zig__media img, .zig__media::before,
.timeline__media img { border-radius: var(--r-card); }

.tone-icon, .spec-card__media i { border-radius: 10px; }
.tag, .post__tag { border-radius: 999px; }

/* ---------- Buttons: clear hover + press feedback ---------- */
.btn { border-radius: var(--r-btn); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -14px rgba(6, 26, 58, .7); }
.btn:active { transform: translateY(0); box-shadow: none; }
.filter-tabs button, .pills a, .pills button { border-radius: 999px; }

/* ---------- Keyboard focus (accessibility) ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid rgba(248, 184, 24, .85); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Forms ---------- */
.form-control { border-radius: var(--r-btn); min-height: 48px; transition: border-color .2s, box-shadow .2s; }
textarea.form-control { min-height: 150px; }

/* ---------- Readability: small card text up to a comfortable size ---------- */
.member p, .spec-card p, .orbit__item p, .why__side p, .post p, .note p,
.card__text, .info-card p, .check-cards p, .timeline__text p, .plan li { font-size: 14.5px; line-height: 1.65; }
.count span { font-size: 13.5px; }
.title-block p { font-size: 16.5px; }

/* ---------- Hover depth on cards with photos ---------- */
.spec-card__media { overflow: hidden; }
.spec-card__media img { transition: transform .6s var(--ease); }
.spec-card:hover .spec-card__media img, .post:hover .post__media img { transform: scale(1.05); }
.spec-card i { z-index: 2; }
.plan, .info-card, .card, .news-item, .check-cards > * { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan:hover, .info-card:hover, .card:hover, .news-item:hover, .check-cards > *:hover { transform: translateY(-4px); box-shadow: var(--lift); }

/* Sticky header shouldn't cover in-page anchor targets */
html { scroll-padding-top: 110px; }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767px) {
    .section { padding: 64px 0; }

    /* Swipe rows instead of very long stacks ("How We Work", "Our Focus", featured projects) */
    .spec-row, .plans {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 -18px; padding: 4px 18px 18px; scrollbar-width: none;
    }
    .spec-row::-webkit-scrollbar, .plans::-webkit-scrollbar { display: none; }
    .spec-row > *, .plans > * { flex: 0 0 82%; scroll-snap-align: center; }
    /* cards revealed by scroll would otherwise stay hidden until swiped into view */
    .js .spec-row > *, .js .plans > * { opacity: 1; transform: none; }

    /* Key figures: keep long values like "2020–24" inside the screen */
    .count b { font-size: 38px; }
    .count span { font-size: 12.5px; }

    /* Footer links: tidy two-column list with comfortable tap targets */
    .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 18px 0; text-align: left; }
    .footer__nav a { display: block; padding: 10px 4px; font-size: 12px; letter-spacing: .08em; border-bottom: 1px solid rgba(255, 255, 255, .06); }
}

/* ---------- Home hero: sun rays turn clockwise ----------
   One step = two rays (32deg), so the loop is seamless; see the hero SVG. */
.sun-rays { transform-origin: 200px 200px; animation: sunTurn 7s linear infinite; }
@keyframes sunTurn { from { transform: rotate(0deg); } to { transform: rotate(32deg); } }
@media (prefers-reduced-motion: reduce) { .sun-rays { animation: none; } }
