/* ==========================================================================
   CT Law Theme — Main Stylesheet
   C. Topouzis & Associates
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors — aligned to logo banner (purple #2C1C3C, grey #615C64) */
    --color-primary: #2c1c3c;
    --color-primary-dark: #1c1228;
    --color-primary-light: #5a426e;
    --color-secondary: #615c64;
    --color-accent: #cba469;
    --color-accent-light: #d4b87a;
    --color-light: #ede9e3;
    /* Warm off-white surfaces (cards, header, white-on-dark text) — softer than
       pure white, which reads as harsh/utilitarian. */
    --color-white: #fcfaf6;
    /* Warm paper tone for the page background — calmer than pure white and reads
       more "editorial/premium" without hurting legibility. */
    --color-paper: #f7f4ef;
    --color-dark: #1c1228;
    /* Warm dark text — a hair softer than near-black for a less "crisp" feel. */
    --color-text: #423d44;
    --color-text-light: #66606b;
    --color-border: #d9d5cf;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
    --container-narrow: 800px;

    /* Transitions */
    --transition: 0.3s ease;

    /* Accessible accent for text — meets WCAG AA 4.5:1 on every light surface
       (warm paper #f7f4ef ≥5.2, cream sections #ede9e3 ≥4.7, cards, white). */
    --color-accent-text: #7c622a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.4rem); }
h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1.25em;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-padding) 0;
}

.site-main {
    overflow: hidden;
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 1.4rem + 2vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0 auto 20px;
}

.section-divider-left {
    margin-left: 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary-dark);
    background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    color: var(--color-white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 27, 61, 0.15);
}

.hero-logo-bg {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    width: 47%;
    max-width: 552px;
    z-index: 0;
    pointer-events: none;
    /* After the line-draw completes (~2.6s) the mark keeps gently breathing. */
    animation: hero-mark-float 26s ease-in-out 2.8s infinite;
    will-change: transform;
}

/* Slow gold sheen drifting across the backdrop so the hero is never static. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 35% 42%, rgba(184, 150, 78, 0.13), transparent 70%);
    animation: hero-sheen 32s ease-in-out infinite;
    will-change: transform;
}

.hero-logo-svg {
    width: 100%;
    height: auto;
}

/* --- SVG Stroke Animation (line-draw) --- */
.logo-stroke {
    fill: none;
    stroke-linecap: round;
}

.logo-stroke-circle {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 1477;
    stroke-dashoffset: 1477;
    animation: draw-stroke 2.5s ease-out 0.3s forwards;
}

.logo-stroke-diagonal {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1.5;
    stroke-dasharray: 482;
    stroke-dashoffset: 482;
    animation: draw-stroke 1s ease-out 1.2s forwards;
}

.logo-stroke-gold {
    stroke: rgba(184, 150, 78, 0.5);
    stroke-width: 3;
    stroke-dasharray: 445;
    stroke-dashoffset: 445;
    /* Draw in once, then a slow continuous shimmer keeps the gold line alive. */
    animation: draw-stroke 0.8s ease-out 1.8s forwards, gold-shimmer 7s ease-in-out 3s infinite;
}

@keyframes draw-stroke {
    to { stroke-dashoffset: 0; }
}

@keyframes hero-mark-float {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50%      { transform: translateY(-53%) scale(1.03); }
}

@keyframes gold-shimmer {
    0%, 100% { stroke-opacity: 1; }
    50%      { stroke-opacity: 0.5; }
}

@keyframes hero-sheen {
    0%   { transform: translate3d(-6%, -4%, 0) scale(1.15); }
    50%  { transform: translate3d(6%, 4%, 0) scale(1.25); }
    100% { transform: translate3d(-6%, -4%, 0) scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.0rem + 1.35vw, 2.05rem);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 22px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-accent-light);
    margin-bottom: 15px;
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    line-height: 1.8;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    background-color: var(--color-primary-dark);
    background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.page-hero-title {
    font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3rem);
    color: var(--color-white);
    margin-bottom: 10px;
}

.page-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Practice Areas Grid ---------- */
.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.practice-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(61, 43, 86, 0.12);
    border-color: var(--color-accent);
}

.practice-card-icon {
    color: var(--color-accent);
    margin-bottom: 25px;
}

.practice-card-image {
    display: block;
    margin-bottom: 20px;
    overflow: hidden;
}

.practice-card-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform var(--transition);
}

.practice-card:hover .practice-card-image img {
    transform: scale(1.05);
}

.practice-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.practice-card-title a {
    color: var(--color-dark);
    text-decoration: none;
}

.practice-card-title a:hover {
    color: var(--color-accent);
}

.practice-card-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.practice-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-text);
    transition: color var(--transition);
}

.practice-card-link:hover {
    color: var(--color-primary);
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Dark "blend-in" attorney section — photo edges melt into the matching charcoal */
.section-about {
    background-color: #252527;
}

.section-about .section-title {
    color: var(--color-white);
    font-size: clamp(1.7rem, 1.19rem + 1.7vw, 2.21rem);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* "Christos P. Topouzis" ribbon — 15% smaller to match the title */
.section-about .section-divider-left {
    width: 51px;
    height: 2.5px;
}

.section-about .about-role {
    color: var(--color-accent-light);
}

.section-about .about-text {
    color: rgba(255, 255, 255, 0.85);
}

.section-about .btn-outline {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.55);
}

.section-about .btn-outline:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary);
}

.attorney-photo-wrapper {
    position: relative;
    max-width: 340px;
    margin: 0 auto;
    background-color: #252527;
    border-radius: 14px;
}

/* Feather the photo's edges into the section background so they disappear */
.attorney-photo-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 38px 14px #252527;
    pointer-events: none;
}

.attorney-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: none;
    filter: grayscale(1) contrast(0.98);
    transition: filter 0.5s ease;
}

.attorney-photo-wrapper:hover .attorney-photo,
.attorney-photo-wrapper:focus-within .attorney-photo {
    filter: grayscale(0) contrast(1);
}

.attorney-accent-bar {
    display: none;
}

.about-role {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-accent-text);
    margin-bottom: 20px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ---------- About page: attorney profile ---------- */
/* About page: portrait flows behind the bio as a faint editorial watermark on
   desktop; on narrow screens it returns to a normal inline portrait. */
.section-profile {
    position: relative;
    overflow: hidden;
}

.section-profile .container {
    position: relative;
}

.profile-grid {
    display: block;
}

.profile-content .entry-content > h2:first-child {
    margin-top: 0;
}

/* ---------- Attorney Credentials Panel ---------- */
.profile-credentials {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.profile-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.profile-contact-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 22px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    transition: border-color var(--transition), background-color var(--transition);
}

.profile-contact-item:hover {
    border-color: var(--color-accent);
    background-color: var(--color-light);
}

.profile-contact-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-text);
}

.profile-contact-value {
    font-size: 0.95rem;
    color: var(--color-text);
}

.profile-creds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.profile-creds-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    position: relative;
}

.profile-creds-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: var(--color-accent);
}

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

.profile-creds-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text);
}

.profile-creds-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

@media (min-width: 861px) {
    .profile-content {
        position: relative;
        max-width: 780px;
    }
}

/* ---------- Credibility Section ---------- */
.section-credibility {
    background-color: var(--color-light);
}

.credibility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
    max-width: 900px;
    margin: 0 auto;
}

.credibility-item {
    padding-left: 20px;
    border-left: 2px solid var(--color-accent);
}

.credibility-heading {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.credibility-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

/* ---------- CTA Section ---------- */
.section-cta {
    background-color: var(--color-primary-dark);
    background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
}

.cta-box {
    text-align: center;
    max-width: 595px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.53rem, 1.02rem + 1.7vw, 2.04rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--color-white);
    margin-bottom: 13px;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.cta-text {
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 26px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Contact Page ---------- */
.contact-form-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
}

.contact-form-intro p {
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.contact-direct {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    padding: 40px 30px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-light);
}

.contact-direct-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-text);
    margin-bottom: 12px;
}

.contact-direct-email {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
    word-break: break-word;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-direct-email:hover,
.contact-direct-email:focus-visible {
    color: var(--color-accent-text);
    border-bottom-color: var(--color-accent-text);
}

.contact-direct-note {
    margin: 20px auto 0;
    max-width: 460px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.section-contact-details {
    background-color: var(--color-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-col h3 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 26px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(203, 164, 105, 0.14);
    color: var(--color-accent-text);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item-body {
    padding-top: 2px;
}

.contact-item-body strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.contact-item-body p {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-item-body a {
    color: var(--color-text-light);
}

.contact-item-body a:hover {
    color: var(--color-accent-text);
}

/* Map */
.contact-map,
#ct-map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e6e1d9;
}

#ct-map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-consent-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.map-consent-content {
    max-width: 320px;
}

.map-consent-icon {
    color: var(--color-accent-text);
    margin: 0 auto 12px;
}

.map-consent-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* ---------- Blog Cards ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.blog-card:hover {
    box-shadow: 0 10px 30px rgba(61, 43, 86, 0.1);
}

.blog-card-image {
    display: block;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-date {
    font-size: 0.85rem;
    color: var(--color-accent-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-title {
    font-size: 1.3rem;
    margin: 10px 0;
}

.blog-card-title a {
    color: var(--color-dark);
}

.blog-card-title a:hover {
    color: var(--color-accent);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.blog-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-text);
}

/* ---------- Single Post ---------- */
.single-post .entry-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.post-meta-top {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--color-accent-light);
}

/* Category links sit on the dark hero, so they must not inherit the body link colour. */
.post-meta-top .post-categories a {
    color: var(--color-accent-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.post-meta-top .post-categories a:hover,
.post-meta-top .post-categories a:focus-visible {
    color: #fff;
    border-bottom-color: var(--color-accent);
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 2px;
    overflow: hidden;
}

.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.post-tags {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.post-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

/* ---------- Practice Area Single ---------- */
.practice-featured-image {
    margin-bottom: 40px;
    overflow: hidden;
}

.practice-cta-box {
    background-color: var(--color-light);
    padding: 40px;
    text-align: center;
    margin: 60px 0;
}

.practice-cta-box h3 {
    margin-bottom: 10px;
}

.practice-cta-box p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.practice-navigation {
    margin-top: 60px;
}

.practice-navigation h3 {
    text-align: center;
    margin-bottom: 30px;
}

.practice-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.practice-nav-item {
    display: block;
    padding: 25px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.practice-nav-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(61, 43, 86, 0.1);
}

.practice-nav-item h4 {
    margin-bottom: 8px;
    color: var(--color-primary);
}

.practice-nav-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ---------- 404 Page ---------- */
.section-404 .container {
    text-align: center;
}

.section-404 h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.section-404 p {
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* ---------- Search Form ---------- */
.search-form {
    display: flex;
    max-width: 500px;
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-right: none;
}

.search-field:focus {
    border-color: var(--color-accent);
}

.search-field:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.search-submit {
    padding: 12px 18px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: background-color var(--transition);
}

.search-submit:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ---------- Entry Content (Gutenberg) ---------- */
.entry-content p {
    text-align: justify;
    hyphens: auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.5em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 1.5em 0;
    padding: 15px 25px;
    background-color: var(--color-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-primary);
}

/* ---------- Entry Content: tables ---------- */
.ct-table-wrap {
    margin: 2em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content table,
.ct-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(61, 43, 86, 0.12);
    hyphens: none;
}

.entry-content thead th {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    background-color: var(--color-light);
    border-bottom: 2px solid var(--color-accent);
}

.entry-content tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- Entry Content: article rule ---------- */
.entry-content .ct-article-rule {
    margin: 2.5em 0 1.5em;
    border: 0;
    border-top: 1px solid rgba(61, 43, 86, 0.15);
}

/* ---------- Pagination ---------- */
.pagination,
.posts-navigation {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.9rem;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 10px 20px;
    position: fixed;
    top: -100px;
    left: 10px;
    z-index: 100000;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 10px;
}

/* ---------- WordPress Classes ---------- */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin: 1em auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    padding: 5px 0;
}

/* ---------- Focus Visibility (WCAG 2.2) ---------- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Remove default outline only when :focus-visible is supported */
:focus:not(:focus-visible) {
    outline: none;
}

/* ---------- Scroll Margin for Sticky Header ---------- */
[id] {
    scroll-margin-top: 100px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    .site-header,
    .skip-link,
    .cookie-consent-banner,
    .mobile-call-btn,
    .hero-buttons,
    .cta-buttons,
    .practice-cta-box .btn,
    .header-search-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .site-main {
        padding-top: 0;
    }

    .hero {
        min-height: auto;
        padding: 30px 0;
        background: #2c1c3c !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hero-logo-bg {
        display: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    nav a[href]::after,
    .btn::after,
    .logo-link::after {
        content: none;
    }

    .section {
        padding: 30px 0;
    }

    .practice-card,
    .blog-card {
        break-inside: avoid;
    }
}

/* ---------- Mobile Call Button (hidden on desktop) ---------- */
.mobile-call-btn {
    display: none;
}

/* ---------- News & Insights listing ---------- */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem);
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 18px;
}

/* ---------- News & Insights Filter Tabs ---------- */
.insights-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.insights-filter-btn {
    appearance: none;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.insights-filter-btn:hover {
    color: var(--color-accent-text);
    border-color: var(--color-accent);
}

.insights-filter-btn.is-active {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.insight-card.is-filtered-out {
    display: none;
}

.entry-readtime {
    color: var(--color-text-light);
    position: relative;
    padding-left: 13px;
}

.entry-readtime::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-border);
    transform: translateY(-50%);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.insight-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    padding: 32px 32px 28px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.insight-card:hover {
    box-shadow: 0 12px 30px rgba(28, 18, 40, 0.10);
    transform: translateY(-3px);
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.entry-date {
    color: var(--color-text-light);
}

.entry-cat {
    color: var(--color-accent-text);
    font-weight: 600;
    position: relative;
    padding-left: 13px;
}

.entry-cat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-accent);
    transform: translateY(-50%);
}

.insight-card .entry-title {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.7rem);
    line-height: 1.25;
    font-weight: 500;
    margin-bottom: 14px;
}

.insight-card .entry-title a {
    color: var(--color-dark);
    transition: color var(--transition);
}

.insight-card .entry-title a:hover {
    color: var(--color-accent-text);
}

.insight-card .entry-summary {
    flex-grow: 1;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 22px;
}

.insight-card .entry-summary p {
    margin: 0;
}

.insight-card .read-more {
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-text);
}

.insight-card .read-more span {
    display: inline-block;
    transition: transform var(--transition);
}

.insight-card .read-more:hover span {
    transform: translateX(4px);
}

.posts-navigation {
    margin-top: 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .insight-card {
        padding: 26px 24px 24px;
    }
}

/* ==========================================================================
   Greek heading normalization
   --------------------------------------------------------------------------
   The heading font (Cormorant Garamond) ships Latin glyphs only — no Greek
   subset (see fonts.css). Greek headings therefore fall back to Georgia,
   which has a larger x-height (~49 vs Cormorant's ~41 at the same size, a
   0.85 ratio) and no 600 weight (so font-weight:600 snaps to Georgia Bold/700).
   That made Greek headings read noticeably larger AND bolder than the English.
   Fix, scoped to Greek only (English is untouched): drop heading weight to 400
   to undo the faux-bold, and scale heading sizes to ~0.85x so the Georgia
   fallback matches the English Cormorant visually.
   ========================================================================== */
html[lang="el"] h1,
html[lang="el"] h2,
html[lang="el"] h3,
html[lang="el"] h4,
html[lang="el"] h5,
html[lang="el"] h6,
html[lang="el"] .page-hero-title,
html[lang="el"] .practice-card-title,
html[lang="el"] .blog-card-title,
html[lang="el"] .credibility-heading,
html[lang="el"] .contact-item-body strong {
    font-weight: 400;
}

/* Scaled sizes (original x 0.85) */
html[lang="el"] h1 { font-size: clamp(1.53rem, 1.02rem + 1.7vw, 2.55rem); }
html[lang="el"] h2 { font-size: clamp(1.275rem, 0.85rem + 1.275vw, 2.04rem); }
html[lang="el"] h3 { font-size: clamp(1.19rem, 0.935rem + 0.85vw, 1.53rem); }
html[lang="el"] h4 { font-size: 1.19rem; }
html[lang="el"] h5 { font-size: 0.935rem; }
html[lang="el"] h6 { font-size: 0.85rem; }

html[lang="el"] .page-hero-title { font-size: clamp(1.87rem, 1.275rem + 1.87vw, 2.55rem); }
html[lang="el"] .section-title   { font-size: clamp(1.7rem, 1.19rem + 1.7vw, 2.21rem); }
html[lang="el"] .page-title      { font-size: clamp(1.87rem, 1.36rem + 2.04vw, 2.55rem); }
html[lang="el"] .cta-title       { font-size: clamp(1.3rem, 0.867rem + 1.445vw, 1.734rem); }
html[lang="el"] .hero-title      { font-size: clamp(1.19rem, 0.85rem + 1.148vw, 1.743rem); }
html[lang="el"] .hero-subtitle   { font-size: clamp(1.02rem, 0.85rem + 0.68vw, 1.275rem); }
html[lang="el"] .insight-card .entry-title { font-size: clamp(1.19rem, 0.935rem + 0.85vw, 1.445rem); }
html[lang="el"] .practice-card-title { font-size: 1.19rem; }
html[lang="el"] .blog-card-title     { font-size: 1.105rem; }
html[lang="el"] .credibility-heading { font-size: 1.1475rem; }
