/* =====================================================================
   visitUzbekistan.info — theme
   Sober, delicate design inspired by Uzbek majolica tilework & Suzani.
   ===================================================================== */

:root {
    --tile-blue:   #1B6CA8;   /* Registan cobalt */
    --tile-deep:   #114A78;
    --teal:        #0E7C86;
    --turquoise:   #3AAFB9;
    --terracotta:  #B4552D;
    --gold:        #C8A24B;
    --gold-soft:   #E3C878;
    --ivory:       #FBF7EF;   /* warm parchment background */
    --sand:        #F2EADB;
    --ink:         #24303A;   /* main text */
    --ink-soft:    #5B6975;
    --line:        #E6DDCB;
    --white:       #ffffff;

    --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --sans:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --urdu:  "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

    --shadow-sm: 0 2px 8px rgba(17, 74, 120, .06);
    --shadow-md: 0 8px 28px rgba(17, 74, 120, .10);
    --radius: 14px;
    --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

/* Urdu / RTL */
html[dir="rtl"] body { font-family: var(--urdu); line-height: 2.1; }
html[dir="rtl"] .nav-links,
html[dir="rtl"] .dropdown { direction: rtl; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--tile-deep);
    margin: 0 0 .5em;
}
html[dir="rtl"] h1, html[dir="rtl"] h2,
html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: var(--urdu); font-weight: 600; }

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }

a { color: var(--tile-blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--terracotta); }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 60px 0; }
.section--tight { padding: 36px 0; }

.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---- Ornamental divider (Suzani-inspired) ---- */
.ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin: 10px 0 34px; color: var(--gold);
}
.ornament::before, .ornament::after {
    content: ""; height: 1px; width: min(120px, 22vw);
    background: linear-gradient(to var(--to, right), transparent, var(--gold-soft));
}
.ornament svg { width: 26px; height: 26px; }

/* ---- Buttons ---- */
.btn {
    display: inline-block; padding: 12px 26px; border-radius: 40px;
    font-weight: 600; font-family: var(--sans); font-size: .95rem;
    background: var(--tile-blue); color: #fff; border: 1px solid var(--tile-blue);
    cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--tile-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--tile-blue); }
.btn--ghost:hover { background: var(--tile-blue); color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #3a2c05; }
.btn--gold:hover { background: var(--gold-soft); color: #3a2c05; }

/* =====================================================================
   Header / navigation
   ===================================================================== */
.topbar {
    background: var(--tile-deep); color: #dfeaf3; font-size: .82rem;
    padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar a { color: #dfeaf3; }
.topbar .social a { margin: 0 6px; opacity: .85; }
.topbar .social a:hover { opacity: 1; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251,247,239,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex; align-items: center; gap: 20px;
    padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); }
.brand .mark { width: 42px; height: 42px; }
.brand strong { font-size: 1.35rem; color: var(--tile-deep); font-weight: 600; letter-spacing: .3px; }
.brand span { color: var(--gold); }

.nav { margin-inline-start: auto; }
.nav-links { display: flex; list-style: none; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    display: block; padding: 10px 14px; color: var(--ink); font-weight: 500;
    border-radius: 8px; font-size: .96rem;
}
.nav-links > li > a:hover { background: var(--sand); color: var(--tile-deep); }

.dropdown {
    position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: .18s; list-style: none; margin: 0;
}
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.dropdown li a:hover { background: var(--sand); color: var(--tile-deep); }

.header-tools { display: flex; align-items: center; gap: 10px; }

/* Language toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: #fff; }
.lang-toggle a {
    padding: 7px 14px; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}
.lang-toggle a.active { background: var(--tile-blue); color: #fff; }
.lang-toggle a[lang="ur"] { font-family: var(--urdu); }

.search-mini { position: relative; }
.search-mini input {
    border: 1px solid var(--line); border-radius: 30px; padding: 8px 14px; width: 150px;
    background: #fff; font-family: var(--sans); font-size: .88rem; transition: width .2s;
}
.search-mini input:focus { width: 200px; outline: none; border-color: var(--turquoise); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--tile-deep); margin: 5px 0; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
    position: relative; color: #fff; text-align: center;
    padding: 96px 20px; overflow: hidden;
    background: linear-gradient(135deg, var(--tile-deep), var(--teal));
}
.hero::after {
    content: ""; position: absolute; inset: 0; opacity: .16;
    background-image: url("../img/pattern-tile.svg"); background-size: 260px;
    mix-blend-mode: soft-light;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p { font-size: 1.15rem; max-width: 680px; margin: 12px auto 26px; color: #eaf3f7; }
.hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero {
    background: linear-gradient(135deg, var(--tile-deep), var(--teal));
    color: #fff; padding: 56px 0; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; opacity: .14;
    background-image: url("../img/pattern-tile.svg"); background-size: 220px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e7f1f5; max-width: 720px; }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--ink-soft); padding: 16px 0; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--tile-blue); }

/* =====================================================================
   Cards & grids
   ===================================================================== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .thumb { aspect-ratio: 16/10; background: var(--sand); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 6px; }
.card .meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 14px; }
.card .card-link { margin-top: auto; font-weight: 600; font-size: .9rem; }

/* Topic tile (icon based) */
.tile {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s, border-color .18s; display: block;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.tile .ic { font-size: 2rem; margin-bottom: 10px; }
.tile h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tile p { font-size: .86rem; color: var(--ink-soft); margin: 0; }

.section-head { text-align: center; margin-bottom: 8px; }
.section-head .kicker { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color: var(--terracotta); font-weight: 700; }

/* =====================================================================
   Region / article layout
   ===================================================================== */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.prose { font-size: 1.06rem; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--teal); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose img { border-radius: 12px; margin: 1.2em 0; box-shadow: var(--shadow-sm); }
.prose blockquote {
    border-inline-start: 4px solid var(--gold); background: var(--sand);
    margin: 1.4em 0; padding: 14px 20px; border-radius: 8px; color: var(--ink);
}

.sidebar .widget {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.sidebar .widget h4 { color: var(--terracotta); font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.sidebar .widget li:last-child { border: 0; }

/* Landmarks list */
.landmark { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.landmark .lm-thumb { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--sand); flex: 0 0 auto; }
.landmark h3 { font-size: 1.15rem; margin-bottom: 4px; }
.landmark .tag { display: inline-block; font-size: .72rem; background: var(--sand); color: var(--teal); padding: 2px 10px; border-radius: 20px; margin-bottom: 6px; font-weight: 600; text-transform: capitalize; }

/* Map */
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-embed--tall { height: 380px; }

/* =====================================================================
   Ad slots
   ===================================================================== */
.ad-slot {
    margin: 26px auto; text-align: center; min-height: 90px;
    display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(45deg, #f6f0e3, #f6f0e3 12px, #f2eadb 12px, #f2eadb 24px);
    border: 1px dashed var(--gold-soft); border-radius: 10px; color: var(--ink-soft);
    font-size: .78rem; letter-spacing: 1px; text-transform: uppercase;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rect { min-height: 250px; }

/* =====================================================================
   Offices / contact
   ===================================================================== */
.office-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.office-card .office-body { padding: 20px 22px; }
.office-card h3 { display: flex; align-items: center; gap: 8px; }
.office-card .row { display: flex; gap: 8px; margin: 6px 0; font-size: .95rem; color: var(--ink-soft); }
.office-card .row b { color: var(--ink); min-width: 74px; display: inline-block; }
.placeholder-note { color: var(--terracotta); font-style: italic; font-size: .85rem; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-family: var(--sans); font-size: 1rem; background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--turquoise); }
.form-error { color: var(--terracotta); font-size: .82rem; margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.alert-success { background: #e7f6ee; color: #1f6b43; border: 1px solid #b7e2c8; }

/* Social embed */
.embed-wrap { display: grid; gap: 20px; }
.ig-embed { max-width: 100%; margin: 0 auto; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--tile-deep); color: #cfe0ec; padding: 56px 0 24px; margin-top: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.site-footer a { color: #cfe0ec; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; }
.footer-brand p { color: #a9c2d5; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #9fb8cb; }
.footer-social a { display: inline-block; margin-inline-end: 12px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .9rem;
}
.pagination .active { background: var(--tile-blue); color: #fff; border-color: var(--tile-blue); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav { position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw); background: #fff;
        box-shadow: var(--shadow-md); transform: translateX(100%); transition: transform .25s; padding: 76px 18px 20px; overflow-y: auto; z-index: 60; }
    html[dir="rtl"] .nav { inset: 0 auto 0 0; transform: translateX(-100%); }
    .nav.open { transform: translateX(0); }
    .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-inline-start: 12px; }
    .nav-toggle { display: block; margin-inline-start: auto; }
    .search-mini { display: none; }
    .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar .container { font-size: .74rem; }
}
