/* ==========================================================================
   drkarmogiannis.gr — vanilla CSS (no framework).
   Calm, professional medical / urology aesthetic.
   ========================================================================== */

:root {
    --brand: #0d7a8c;
    --brand-dark: #0a5b69;
    --brand-light: #16a3b8;
    --accent: #4fc3d4;
    --ink: #1f2a37;
    --muted: #5b6b7b;
    --surface: #ffffff;
    --bg-top: #f3f8fa;
    --bg-bottom: #e4eef1;
    --ring: rgba(13, 122, 140, 0.12);
    --shadow-sm: 0 1px 2px rgba(16, 42, 55, 0.06), 0 2px 8px -2px rgba(16, 42, 55, 0.08);
    --shadow-md: 0 10px 30px -12px rgba(13, 90, 105, 0.30), 0 2px 8px -4px rgba(16, 42, 55, 0.10);
    --shadow-lg: 0 24px 50px -20px rgba(13, 90, 105, 0.40), 0 8px 20px -12px rgba(16, 42, 55, 0.18);
    --radius: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
    color: var(--brand-dark);
    letter-spacing: -0.01em;
}

a {
    color: inherit;
}

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

::selection {
    background: var(--accent);
    color: #04313a;
}

.hidden {
    display: none;
}

/* ---------- Header / navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6rem;
    padding: 0 0.75rem;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--ring);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.logo img {
    height: 3rem;
    width: auto;
}

/* Text logo (no image asset yet) */
.logo-text {
    font-family: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-dark);
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Compact header phone CTA */
.btn-contact.btn-header {
    margin-top: 0;
    padding: 0.45rem 1.1rem;
    font-size: 0.95rem;
}

.nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.nav a {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    padding: 0.35rem 0.2rem;
    transition: color 0.2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

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

.nav a:hover::after {
    transform: scaleX(1);
}

.nav a[aria-current="page"] {
    color: var(--brand);
}

.nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.burger {
    padding-right: 1rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--brand);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.burger:hover {
    color: var(--brand-dark);
    transform: scale(1.05);
}

/* Mobile dropdown panel */
@media (max-width: 767px) {
    .nav {
        position: absolute;
        top: 6rem;
        left: 0;
        z-index: 50;
        width: 100%;
        padding: 1.25rem 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--ring);
        box-shadow: var(--shadow-md);
    }

    .nav.hidden {
        display: none;
    }
}

@media (min-width: 768px) {
    .site-header {
        height: 8rem;
    }

    .logo img {
        height: 4rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .burger {
        visibility: hidden;
    }

    .nav,
    .nav.hidden {
        display: block;
    }

    .nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 2.5rem;
    }
}

/* ---------- Main / page background ---------- */
.main {
    display: flex;
    flex-direction: column;
}

.bg-soft {
    background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.hero-wrap {
    padding: 0 0.5rem 1.75rem;
}

/* Entrance animation for page content */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.main > * {
    animation: fade-up 0.5s ease both;
}

.main > *:nth-child(2) {
    animation-delay: 0.08s;
}

/* ---------- Page title (subpages) ---------- */
.page-title {
    margin: 2.25rem 1rem 0;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
}

.page-title::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: 4px;
    margin: 0.6rem auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.page-title ~ .prose {
    margin-top: 1.5rem;
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--ring);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Hero figure */
.hero {
    display: flex;
    flex-direction: column-reverse;
    max-width: 42rem;
    margin: 2.5rem auto;
    overflow: hidden;
}

.hero figcaption {
    margin: 2.5rem;
    font-size: 1.25rem;
}

.hero figcaption h1 {
    margin: 0;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.hero .subtitle {
    margin: 0 0 0.625rem;
    text-align: center;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.02em;
}

.hero .creds {
    margin: 0.25rem 1.25rem 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ring);
    list-style: disc;
}

.hero .creds li {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.hero .creds li::marker {
    color: var(--brand-light);
}

.hero img {
    width: 100%;
    object-fit: cover;
}

.cta-wrap {
    text-align: center;
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
    }

    .hero figcaption {
        width: 60%;
    }

    .hero img {
        width: 40%;
        height: auto;
    }
}

/* Text card (index "Ιατρείο") */
.text-card {
    margin: 0.5rem;
    max-width: 100%;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.625;
}

.text-card h2 {
    margin-top: 0;
    font-weight: 700;
    color: var(--brand-dark);
}

.text-card p {
    text-align: justify;
}

/* Prose card (bio, office, services, faq) */
.prose {
    max-width: 65ch;
    margin: 2.5rem auto;
    padding: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.7;
}

.prose p {
    text-indent: 2rem;
}

.prose h2 {
    margin: 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.prose ul {
    padding-left: 1.5rem;
}

.prose ul li {
    margin-bottom: 0.5rem;
}

.prose ul li::marker {
    color: var(--brand-light);
}

@media (min-width: 768px) {
    .text-card,
    .prose {
        font-size: 1.5rem;
    }
}

/* ---------- Services check-list ---------- */
.prose .services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prose .services-list li {
    position: relative;
    margin: 0;
    padding: 0.85rem 1rem 0.85rem 2.7rem;
    background: var(--bg-top);
    border: 1px solid var(--ring);
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prose .services-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: var(--brand);
    font-weight: 700;
}

.prose .services-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ---------- FAQ accordion ---------- */
.faq-item {
    border-bottom: 1px solid var(--ring);
    padding-bottom: 0.75rem;
}

.faq-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0.5rem;
    cursor: pointer;
    list-style: none;
    font-family: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--brand);
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--brand);
}

/* ---------- Office image gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--ring);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- Contact button (CTA) ---------- */
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-family: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 9999px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-contact svg {
    height: 1.25rem;
    width: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 2.5rem 1rem;
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    border-top: 4px solid var(--brand);
}

.site-footer h2 {
    margin: 0;
    padding: 0.5rem 0;
    text-align: center;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 0.02em;
}

.site-footer address {
    margin: 0.375rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-style: normal;
}

.site-footer .pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer .pill:hover {
    background: var(--ring);
    transform: translateY(-1px);
}

.site-footer .pill svg {
    height: 2rem;
    width: 1.25rem;
    color: var(--brand);
}

.site-footer .pill p {
    margin: 0;
    white-space: nowrap;
}

.site-footer a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--brand);
}

.hours dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin: 0;
}

.hours dt {
    font-weight: 600;
    color: var(--brand-dark);
}

.hours dd {
    grid-column: span 2;
    margin: 0 0 0.5rem;
    color: var(--muted);
}

@media (min-width: 768px) {
    .site-footer {
        flex-direction: row;
        align-items: center;
        font-size: 1.5rem;
    }
}

/* ---------- Accessibility ---------- */
:focus-visible {
    outline: 3px solid var(--brand-light);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
