/* ============================================================
OIA UNISSULA — PUBLIC GLOBAL STYLES
============================================================ */

/* ============================================================
DESIGN TOKENS
============================================================ */

:root {
    --white: #ffffff;
    --cream: #f6faf7;

    --sage-50: #eaf4ec;
    --sage-100: #d3e9d8;
    --sage-300: #a9d4b3;
    --sage-500: #6fae7f;
    --sage-700: #3d6b4b;

    --ink: #14201a;
    --ink-soft: #2a352e;
    --line: #d9e6dc;

    --bg: var(--white);
    --bg-alt: var(--cream);
    --surface: var(--white);

    --text: var(--ink);
    --text-soft: #4b5a51;

    --accent: var(--sage-500);
    --accent-deep: var(--sage-700);

    --border: var(--line);

    --font-display:
        "Amiri",
        "Noto Naskh Arabic",
        Georgia,
        serif;

    --font-body:
        "Plus Jakarta Sans",
        "Noto Sans JP",
        "Noto Sans SC",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --radius-xs: 6px;
    --radius-sm: 9px;
    --radius-md: 16px;
    --radius-lg: 28px;

    --container: 1180px;
    --nav-h: 84px;

    --shadow-sm:
        0 8px 24px
        rgba(20, 32, 26, 0.06);

    --shadow-md:
        0 16px 40px
        rgba(20, 32, 26, 0.1);
}

[data-theme="dark"] {
    --bg: var(--ink);
    --bg-alt: #1b271f;
    --surface: #1e2b23;

    --text: #eef5f0;
    --text-soft: #b7c7bd;

    --accent: var(--sage-300);
    --accent-deep: var(--sage-100);

    --border: #2e3d33;

    --shadow-sm:
        0 8px 24px
        rgba(0, 0, 0, 0.18);

    --shadow-md:
        0 16px 40px
        rgba(0, 0, 0, 0.28);
}

/* ============================================================
RESET
============================================================ */

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

html {
    max-width: 100%;

    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    min-height: 100vh;
    max-width: 100%;

    margin: 0;

    overflow-x: hidden;

    background: var(--bg);
    color: var(--text);

    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

main {
    display: block;
}

img,
svg,
video,
canvas {
    display: block;

    max-width: 100%;
}

img {
    height: auto;
}

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

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

button {
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

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

::selection {
    background: var(--sage-300);
    color: var(--ink);
}

/* ============================================================
REDUCED MOTION
============================================================ */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.001ms !important;
    }
}

/* ============================================================
GLOBAL LAYOUT
============================================================ */

.container {
    width: 100%;
    max-width: var(--container);

    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 24px);
}

.display {
    font-family: var(--font-display);
}

br.lg-only {
    display: inline;
}

@media (max-width: 640px) {
    br.lg-only {
        display: none;
    }
}

/* ============================================================
ACCESSIBILITY
============================================================ */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20000;

    padding: 10px 16px;

    border-radius: var(--radius-sm);

    background: var(--accent-deep);
    color: var(--white);

    font-size: 14px;
    font-weight: 700;

    transform: translateY(-160%);

    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline:
        3px solid
        color-mix(
            in srgb,
            var(--accent) 45%,
            transparent
        );

    outline-offset: 3px;
}

/* ============================================================
SIGNATURE ORNAMENT
============================================================ */

.star-ornament {
    display: block;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
}

.star-spin {
    animation: star-rotate 90s linear infinite;
}

@keyframes star-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
GLOBAL BUTTONS
============================================================ */

.btn {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px 24px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-solid {
    border-color: var(--accent-deep);

    background: var(--accent-deep);
    color: var(--white);

    box-shadow:
        0 8px 22px
        color-mix(
            in srgb,
            var(--accent-deep) 20%,
            transparent
        );
}

.btn-solid:hover {
    border-color: var(--accent);

    background: var(--accent);
}

[data-theme="dark"] .btn-solid {
    color: var(--ink);
}

.btn-ghost {
    border-color: var(--border);

    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent-deep);

    background:
        color-mix(
            in srgb,
            var(--accent-deep) 7%,
            transparent
        );

    color: var(--accent-deep);
}

/* ============================================================
FORM GLOBAL HELPERS
============================================================ */

.form-alert {
    margin-bottom: 16px;
    padding: 14px 16px;

    border: 1px solid;
    border-radius: var(--radius-sm);

    font-size: 14px;
    line-height: 1.55;
}

.form-alert strong {
    display: block;
}

.form-alert ul {
    margin-top: 8px;
    padding-left: 20px;

    list-style: disc;
}

.form-alert-success {
    border-color: rgba(34, 197, 94, 0.35);

    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
}

.form-alert-error {
    border-color: rgba(239, 68, 68, 0.35);

    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

[data-theme="dark"] .form-alert-success {
    color: #86efac;
}

[data-theme="dark"] .form-alert-error {
    color: #fca5a5;
}

/* ============================================================
FOOTER
============================================================ */

.footer {
    position: relative;

    padding-top: clamp(72px, 8vw, 92px);

    background:
        linear-gradient(
            180deg,
            #14281e 0%,
            #0d1913 100%
        );

    color: #dfeadd;
}

.footer::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width:
        min(
            calc(100% - 48px),
            var(--container)
        );

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(169, 212, 179, 0.38),
            transparent
        );

    transform: translateX(-50%);
}

.footer::after {
    content: "✦";

    position: absolute;
    top: -17px;
    left: 50%;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(169, 212, 179, 0.3);
    border-radius: 50%;

    background: #14281e;
    color: var(--sage-300);

    font-size: 13px;

    transform: translateX(-50%);
}

[data-theme="light"] .footer {
    background:
        linear-gradient(
            180deg,
            #173126 0%,
            #10271d 100%
        );
}

[data-theme="light"] .footer::after {
    background: #173126;
}

.footer-top {
    padding-bottom: clamp(42px, 6vw, 60px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;

    align-items: start;

    gap: clamp(34px, 5vw, 68px);
}

.footer-brand {
    max-width: 390px;
}

.footer-brand-name {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: var(--white);

    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
}

.footer-brand-name .star-ornament {
    width: 23px;
    height: 23px;

    flex-shrink: 0;

    color: var(--sage-300);
}

.footer-brand-desc {
    max-width: 360px;

    margin: 0 0 24px;

    color: #a9bdae;

    font-size: 14.5px;
    line-height: 1.75;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #3a4a3f;
    border-radius: 50%;

    color: #cfe0d1;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.social-link:hover {
    border-color: var(--sage-300);

    background: var(--sage-300);
    color: var(--ink);

    transform: translateY(-2px);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.footer-col-title {
    margin: 0 0 20px;

    color: #a9bdae;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;

    color: #c9d8cc;

    font-size: 14px;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.footer-links a:hover {
    color: var(--sage-300);

    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 16px;

    padding: 26px 0 30px;

    border-top:
        1px solid
        rgba(169, 212, 179, 0.14);

    color: #8fa394;

    font-size: 13px;
}

.footer-copy {
    max-width: 760px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;

    gap: 20px;
}

.footer-legal a {
    transition: color 0.18s ease;
}

.footer-legal a:hover {
    color: var(--sage-300);
}

/* ============================================================
GLOBAL RESPONSIVE
============================================================ */

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

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-legal {
        gap: 12px 18px;
    }
}

.sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    border: 0 !important;

    white-space: nowrap !important;
}