:root {
    --green: #0b3d34;
    --green-deep: #052a23;
    --cream: #f5eedf;
    --cream-soft: rgba(245, 238, 223, .82);
    --gold: #c9a96e;
    --line: rgba(245, 238, 223, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--cream);
    font-family: "Nunito Sans", "Noto Sans Georgian", system-ui, sans-serif;
    font-weight: 400;
    background-color: var(--green);
    background-image: radial-gradient(ellipse 70% 60% at 50% 42%, #10493f 0%, var(--green) 55%, var(--green-deep) 100%);
    overflow-x: hidden;
}
body.has-bg { background-size: cover; background-position: center; background-attachment: fixed; }
html[lang=ka] body { font-family: "Noto Sans Georgian", "Nunito Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }

/* Decorative olive branches */
.leaves { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.leaf { position: absolute; width: clamp(260px, 32vw, 520px); opacity: .55; }
.leaf-tl { top: -6%; left: -8%; transform: rotate(160deg) scaleY(-1); }
.leaf-bl { bottom: -8%; left: -6%; transform: rotate(-8deg); }
.leaf-tr { top: 2%; right: -9%; transform: rotate(200deg); }
.leaf-br { bottom: -10%; right: -7%; transform: scaleX(-1) rotate(-4deg); }

.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 5vh, 56px);
    padding: 48px 24px 40px;
}

/* Language switcher */
.lang {
    position: absolute;
    top: 32px;
    right: clamp(16px, 3.5vw, 58px);
    display: flex;
    align-items: center;
    border: 1px solid rgba(201, 169, 110, .65);
    border-radius: 999px;
    padding: 9px 8px;
    font-size: 16px;
    letter-spacing: .06em;
}
.lang a { padding: 2px 16px; color: var(--cream-soft); transition: color .2s; }
.lang a + a { border-left: 1px solid rgba(245, 238, 223, .5); }
.lang a:hover { color: var(--cream); }
.lang a.active { color: var(--cream); font-weight: 700; }

/* Logo */
.brand h1 { margin: 0; line-height: 0; }
.brand img { width: clamp(220px, 19vw, 320px); height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }

/* Buttons */
.tiles { display: flex; gap: clamp(28px, 3.6vw, 60px); justify-content: center; }
.tile {
    position: relative;
    width: clamp(280px, 25vw, 420px);
    aspect-ratio: 1 / .99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 34px);
    border: 1.5px solid var(--gold);
    border-radius: 30px;
    background:
        radial-gradient(ellipse 80% 70% at 50% 45%, rgba(255, 255, 255, .06), transparent 70%),
        linear-gradient(160deg, #16564a 0%, #0f483d 50%, #0b3f35 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.tile:hover, a.tile:focus-visible { transform: translateY(-4px); border-color: #e1c58d; box-shadow: 0 24px 50px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12); }
a.tile:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
div.tile { cursor: default; }
.tile-icon { display: block; width: 42%; color: var(--cream); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.tile-icon svg { display: block; width: 100%; height: auto; }
.tile-label {
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-align: center;
    padding: 0 16px 18px;
    margin-right: -.24em;
    position: relative;
}
.tile-label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 48px;
    height: 2px;
    margin-left: calc(-24px - .12em);
    background: var(--cream);
    opacity: .9;
}
:lang(ka) .tile-label { letter-spacing: .08em; margin-right: -.08em; text-transform: none; }
.tile-arrow { display: none; }

/* Contacts */
.contacts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; row-gap: 14px; font-size: 19px; color: var(--cream-soft); }
.contact { display: flex; align-items: center; gap: 14px; padding: 4px 40px; transition: color .2s; }
.contact + .contact { border-left: 1.5px solid rgba(245, 238, 223, .55); }
a.contact:hover { color: var(--cream); }
.contact-icon { width: 30px; height: 30px; flex-shrink: 0; color: var(--cream); }
.contact-icon svg, .contact-action svg { width: 100%; height: 100%; display: block; }
.contact-action { display: none; }

/* Phone / narrow layout */
@media (max-width: 820px) {
    .leaf { width: clamp(220px, 62vw, 380px); }
    .leaf-tl { top: -4%; left: -22%; }
    .leaf-tr { top: 16%; right: -30%; }
    .leaf-bl { bottom: 4%; left: -30%; }
    .leaf-br { display: none; }

    .page { justify-content: flex-start; gap: 0; padding: 28px 20px 36px; }
    .lang { position: static; align-self: flex-end; font-size: 15px; padding: 7px 6px; }
    .lang a { padding: 2px 14px; }

    .brand { margin: clamp(28px, 7vh, 64px) 0 clamp(28px, 6vh, 56px); }
    .brand img { width: min(46vw, 220px); }

    .tiles { flex-direction: column; width: 100%; max-width: 420px; gap: 18px; }
    .tile { width: 100%; aspect-ratio: auto; padding: 24px 20px 20px; gap: 16px; border-radius: 22px; }
    .tile-icon { width: 76px; }
    /* keep the label clear of the arrow circle */
    .tile-label { font-size: clamp(14px, 4.3vw, 20px); letter-spacing: .12em; margin-right: -.12em; padding: 0 0 12px; max-width: calc(100% - 96px); }
    .tile-label::after { width: 40px; margin-left: calc(-20px - .12em); }
    .tile-arrow {
        display: grid;
        place-items: center;
        position: absolute;
        right: 18px;
        bottom: 28px;
        width: 46px;
        height: 46px;
        border: 1px solid rgba(201, 169, 110, .75);
        border-radius: 50%;
        color: var(--cream);
    }
    .tile-arrow svg { width: 22px; height: 22px; }
    div.tile .tile-arrow { display: none; }

    .contacts { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-top: 40px; padding-top: 22px; font-size: 16px; position: relative; row-gap: 0; }
    .contacts::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; margin-left: -20px; height: 1px; background: rgba(245, 238, 223, .45); }
    .contact { padding: 0; gap: 16px; }
    .contact + .contact { border-left: 0; }
    .contact-icon { width: 26px; height: 26px; }
    .contact-text { flex: 1; padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
    .contact:last-child .contact-text { border-bottom: 0; }
    .contact-action { display: block; width: 22px; height: 22px; flex-shrink: 0; color: var(--cream-soft); }
}

@media (min-width: 821px) and (max-height: 760px) {
    .brand img { width: clamp(180px, 15vw, 260px); }
    .tile { width: clamp(250px, 22vw, 360px); }
}

@media (prefers-reduced-motion: reduce) {
    .tile, .contact, .lang a { transition: none; }
}
