@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Cormorant+Garamond:wght@600;700&display=swap');

:root {
    --bg: #f8f7fc;
    --paper: #ffffff;
    --ink: #1f2240;
    --ink-soft: #59607a;
    --line: #e2e4ee;
    --brand: #5b6abf;
    --brand-light: #eef0fa;
    --brand-dark: #3f4b99;
    --brand-mid: #c5cbeb;
    --accent-coral: #e8806a;
    --accent-violet: #8b75d4;
    --gold: #c9a87c;
    --deep: #1f2240;
    --ok: #2d8a60;
    --danger: #c05555;
    --radius: 18px;
    --shadow: 0 6px 28px rgba(26, 34, 48, 0.08);
    --shadow-md: 0 14px 44px rgba(26, 34, 48, 0.13);
}

* { box-sizing: border-box; }

html {
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(58, 125, 110, 0.05) 1px, transparent 1.4px),
        radial-gradient(1000px 640px at 88% -6%, rgba(58, 125, 110, 0.11), transparent 56%),
        radial-gradient(820px 600px at -8% 4%, rgba(214, 233, 227, 0.62), transparent 52%),
        radial-gradient(760px 520px at 50% 112%, rgba(201, 169, 106, 0.09), transparent 55%);
    background-size: 24px 24px, auto, auto, auto;
    background-attachment: fixed;
    overflow-x: clip;
    line-height: 1.65;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    margin-top: 0;
    line-height: 1.15;
    font-weight: 700;
}

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

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* HEADER & NAV */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(58, 125, 110, 0.12);
    box-shadow: 0 1px 16px rgba(26, 34, 48, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cormorant Garamond', serif;
    color: var(--brand-dark);
    letter-spacing: 0.01em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.24rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.brand-sub {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-soft);
    margin-top: 2px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    padding: 4px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    background: #fbf4ec;
    border: 1px solid rgba(58, 125, 110, 0.18);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
}

.nav a:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.nav a.active {
    background: var(--brand);
    color: #fff;
}

/* FLASH MESAJLARI */
.flash-wrap { padding-top: 10px; }

.flash {
    margin: 10px 0;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 0.92rem;
}

.flash-success { color: var(--ok); background: #edf9f3; border-color: #9dd8b6; }
.flash-error   { color: var(--danger); background: #ffefef; border-color: #ecb4b4; }

/* HERO */
.hero {
    padding: 72px 0 52px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
}

.hero-intro h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    line-height: 1.04;
    margin-bottom: 18px;
    color: var(--ink);
}

.leaf-divider {
    display: block;
    color: var(--gold);
    margin-bottom: 18px;
}

.leaf-divider svg {
    width: 96px;
    height: 24px;
    display: block;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 600;
    font-style: italic;
    color: var(--brand);
    margin: 0 0 22px;
    line-height: 1.3;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.hero-intro p {
    color: var(--ink-soft);
    max-width: 54ch;
    font-size: 1.05rem;
    line-height: 1.78;
    margin: 0 0 14px;
}

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

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.hero-actions .btn svg {
    width: 18px;
    height: 18px;
}

.hero-photo {
    position: relative;
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border-radius: 28px;
    background: linear-gradient(150deg, var(--brand-light), rgba(194, 163, 107, 0.16));
    z-index: 0;
}

.hero-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 26px;
    border: 1px solid rgba(58, 125, 110, 0.14);
    box-shadow: 0 22px 48px rgba(26, 34, 48, 0.18);
}

/* SECTION / PANEL */
.panel { padding: 60px 0; }

.panel-alt {
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.45));
    border-top: 1px solid rgba(58, 125, 110, 0.08);
    border-bottom: 1px solid rgba(58, 125, 110, 0.08);
}

.section-head { max-width: 680px; margin-bottom: 32px; }

.section-kicker {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 700;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.section-kicker::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 10px;
    color: var(--ink);
}

.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

.section-head.center {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head.center .leaf-divider {
    margin: 0 auto 16px;
    width: 96px;
}

.section-head.center h2 { margin-bottom: 12px; }

/* HAKKIMIZDA */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-lead {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 8px;
}

.about-intro-text .section-head { margin-bottom: 20px; }

.about-intro-text > p {
    color: var(--ink-soft);
    line-height: 1.75;
    margin: 0 0 16px;
}

.about-signature {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 1.9rem;
    color: var(--brand);
    margin-top: 6px !important;
}

.about-photo {
    margin: 0;
    margin-top: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: var(--brand-light);
    position: relative;
    position: sticky;
    top: 24px;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.about-bio { align-self: stretch; }

.about-grid-single { grid-template-columns: 1fr; }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.card-soft { background: var(--brand-light); border-color: var(--brand-mid); }

.tick-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.tick-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft);
}

.tick-list li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: var(--brand);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='%23fff'%3E%3Cpath d='M4 7L2 5 1 6l3 4 7-7-1-1z'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* CV / OZGECMIS */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.cv-block { break-inside: avoid; }

.cv-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--brand-light);
    color: var(--brand-dark);
}

.cv-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    color: var(--brand);
}

.cv-icon svg { width: 100%; height: 100%; }

.cv-list { margin: 0; padding: 0; list-style: none; }

.cv-list li {
    padding: 5px 0;
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cv-list li + li { border-top: 1px solid var(--line); }

/* . . . continued below . . . */

/* PAGE CARDS (ana sayfa 4'lü kart) */
.page-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.page-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.page-card-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    color: var(--brand);
    margin-bottom: 12px;
}

.page-card-icon svg { width: 100%; height: 100%; }

.page-card h3 {
    font-size: 1.18rem;
    margin-bottom: 6px;
}

.page-card p {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 14px;
}

.page-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--brand);
}

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

/* FOCUS CARDS (calisma alanlari) */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.focus-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.focus-card h3 {
    font-size: 1.12rem;
    margin-bottom: 12px;
    color: var(--brand-dark);
}

.focus-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.focus-card li {
    padding: 4px 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.focus-card li::before {
    content: '— ';
    color: var(--brand-mid);
}

/* LONG FOCUS CARDS (3 yan yana) */
.focus-grid--long {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.focus-card--long {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.focus-card--long h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--brand-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-light);
}

.focus-card--long ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.focus-card--long li {
    padding: 5px 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
    border-bottom: 1px solid var(--line);
}

.focus-card--long li:last-child {
    border-bottom: none;
}

.focus-card--long li::before {
    content: '— ';
    color: var(--brand-mid);
}

@media (max-width: 820px) {
    .focus-grid--long {
        grid-template-columns: 1fr;
    }
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.faq-grid article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.faq-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    color: var(--brand);
    margin-bottom: 10px;
}

.faq-icon svg { width: 100%; height: 100%; }

.faq-grid h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.faq-grid p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.steps-grid article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.steps-grid h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.steps-grid p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}



/* SLOT PICKER */
.slot-section { margin: 0 0 16px; }

.slot-label {
    font-size: 0.88rem;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--ink);
}

.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 44px;
}

.slot-btn {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
    transition: 0.12s;
}

.slot-btn:hover:not(:disabled) {
    background: var(--brand-light);
    border-color: var(--brand-mid);
}

.slot-btn--selected {
    background: var(--brand) !important;
    color: #fff;
    border-color: var(--brand);
}

.slot-btn--taken {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slot-btn:disabled { cursor: not-allowed; }

.slot-hint {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0;
    width: 100%;
}

.slot-hint--warn { color: var(--danger); }

/* APPT MESSAGE */
.appt-msg {
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 0.92rem;
}

.appt-msg--ok { color: var(--ok); background: #edf9f3; border-color: #9dd8b6; }
.appt-msg--err { color: var(--danger); background: #ffefef; border-color: #ecb4b4; }

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.contact-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    color: var(--brand);
}

.contact-icon svg { width: 100%; height: 100%; }

.contact-card h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--brand-dark);
}

.contact-card p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 8px;
}

.contact-card a {
    color: var(--brand);
    text-decoration: underline;
}

.contact-map {
    margin-top: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}

.contact-map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--paper);
    font-size: 0.88rem;
}

.contact-map-footer a {
    color: var(--brand);
    text-decoration: underline;
}

/* MAP SECTION (ana sayfa) */
.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.map-info {
    padding: 4px 0;
}

.map-info h3 {
    font-size: 1.05rem;
    color: var(--brand-dark);
    margin: 20px 0 6px;
}

.map-info h3:first-child {
    margin-top: 0;
}

.map-info p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 6px;
}

.map-info a {
    color: var(--brand);
    text-decoration: underline;
}

.map-info .btn-whatsapp {
    margin-top: 20px;
    display: inline-flex;
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

/* FOOTER */
.site-footer {
    background: var(--deep);
    color: rgba(255, 255, 255, 0.78);
    padding: 48px 0 0;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.12);
}

.footer-col h4 {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand-mid);
    margin-bottom: 12px;
}

.footer-col a { color: rgba(255, 255, 255, 0.78); }
.footer-col a:hover { color: #fff; }

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    font-size: 0.85rem;
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links a {
    padding: 3px 0;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p { margin: 0; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
}

.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.btn-ghost:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* WHATSAPP BUTTON */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1fbd5a;
    color: #fff;
    transform: translateY(-1px);
}

/* NAV WHATSAPP LINK */
.nav-whatsapp {
    background: #25D366;
    color: #fff !important;
    /*border-radius: 999px;
    padding: 8px 16px;
    margin-left: 6px;*/
}

.nav-whatsapp:hover {
    background: #1fbd5a;
    color: #fff !important;
}

/* LEGAL TEXT (KVKK) */
.legal-text {
    max-width: 860px;
}

.legal-text h3 {
    font-size: 1.15rem;
    margin: 24px 0 8px;
    color: var(--brand-dark);
}

.legal-text p {
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0 0 14px;
}

.legal-text a { color: var(--brand); text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 980px) {
    .hero-grid,
    .about-grid,
    .focus-grid,
    .steps-grid,
    .faq-grid,
    .page-cards,
    .cv-grid,
    .contact-grid,
    .stats-grid,
    .map-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .about-lead { grid-template-columns: 1fr; }
    .about-photo { position: static; margin-top: 8px; }
    .about-photo img { aspect-ratio: 4 / 3; height: auto; object-position: center 25%; }

    .hero { padding-top: 56px; }
    .panel { padding: 44px 0; }
    .appt-row { grid-template-columns: 1fr; }

    .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
        gap: 6px;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        flex-shrink: 0;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: sticky;
    }

    .nav-wrap {
        align-items: stretch;
        flex-direction: column;
        justify-content: center;
        min-height: 0;
        padding: 10px 0 8px;
        gap: 10px;
    }

    .brand {
        align-self: flex-start;
        font-size: 1.06rem;
        line-height: 1.1;
    }

    .brand-name { font-size: 1.06rem; }
    .brand-sub { font-size: 0.55rem; letter-spacing: 0.15em; }

    .brand-logo {
        width: 40px;
        height: 40px;
        padding: 4px;
    }

    .nav {
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0 -4vw;
        padding: 0 4vw 4px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        flex: 0 0 auto;
        padding: 8px 13px;
        background: rgba(255, 255, 255, 0.64);
        border: 1px solid rgba(58, 125, 110, 0.12);
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .nav a.active {
        border-color: transparent;
    }

    .nav-whatsapp {
        background: #25D366 !important;
        color: #fff !important;
    }
}

@media (max-width: 420px) {
    .brand span {
        max-width: 220px;
    }

    .nav a {
        padding-inline: 12px;
    }
}

/* CERTIFICATE GALLERY */
.cert-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cert-item {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 100%;
}

.cert-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cert-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 565;
    object-fit: contain;
    object-position: center;
    background: #f0f0f0;
}


/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 24px;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    background: none;
    border: none;
    font-family: inherit;
    z-index: 2;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Lightbox navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(0,0,0,0.35);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
    z-index: 2;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(0,0,0,0.55);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

/* Lightbox counter */
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    z-index: 2;
    background: rgba(0,0,0,0.3);
    padding: 4px 14px;
    border-radius: 999px;
}

@media (max-width: 820px) {
    .cert-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .cert-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .cert-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
