/* ===== Ersan Cetin Hukuk - Premium ===== */

:root {
    --red: #8b0000;
    --red-light: #a31515;
    --red-dark: #5c0000;
    --white: #ffffff;
    --off-white: #fafafa;
    --cream: #f8f6f3;
    --gray-100: #f0f0f0;
    --gray-200: #e5e5e5;
    --gray-300: #d0d0d0;
    --gray-400: #767676;
    --gray-500: #666666;
    --gray-600: #4a4a4a;
    --gray-700: #333333;
    --gray-800: #1a1a1a;
    --black: #0a0a0a;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--gray-600);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

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

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: var(--white);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transition: top 0.3s ease;
}

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

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

address {
    font-style: normal;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    transition: box-shadow 0.3s ease;
}

.header--scrolled {
    box-shadow: 0 1px 0 var(--gray-200);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.header__logo {
    display: flex;
    flex-direction: column;
}

.header__name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-800);
    letter-spacing: 0.01em;
}

.header__bar {
    font-size: 11px;
    color: var(--red);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Font loading - hide all content until fonts ready */
.fonts-loading .header__inner,
.fonts-loading .hero,
.fonts-loading main,
.fonts-loading .section,
.fonts-loading .footer {
    opacity: 0;
}

.fonts-ready .header__inner,
.fonts-ready .hero,
.fonts-ready main,
.fonts-ready .section,
.fonts-ready .footer {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.header__nav {
    display: flex;
    gap: 40px;
}

.header__nav a {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.header__nav a:hover {
    color: var(--red);
}

.header__nav a.active {
    color: var(--red);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 32px;
}

.lang-switcher__item {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.lang-switcher__item:hover {
    color: var(--gray-700);
}

.lang-switcher__item--active {
    color: var(--red);
    font-weight: 500;
}

.lang-switcher__divider {
    width: 1px;
    height: 12px;
    background: var(--gray-300);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--gray-700);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Hero ===== */
.hero {
    padding-top: 72px;
}

.hero__image {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.hero__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* ===== Sections ===== */
.section {
    padding: 100px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.section--alt {
    max-width: none;
    background: var(--cream);
}

.section--alt > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}


.section__title {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section__title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.section__note {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 48px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ===== About ===== */
.about {
    max-width: 800px;
}

.about--with-photo {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "photo intro"
        "photo text";
    gap: 20px 40px;
    max-width: 920px;
    align-items: start;
}

.about__intro {
    grid-area: intro;
    font-size: 18px;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0;
}

.about__photo {
    grid-area: photo;
    position: sticky;
    top: 100px;
    width: 200px;
    height: 260px;
    overflow: hidden;
}

.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transform: scale(1.3);
    transform-origin: center 25%;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.about__photo img:hover {
    filter: grayscale(0%);
}

.about__text {
    grid-area: text;
}

.about__text p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: 24px;
}

.about__text p:last-child {
    margin-bottom: 0;
}

.about__credentials {
    margin-top: 40px;
    font-size: 13px;
    color: var(--gray-400);
    letter-spacing: 0.02em;
}

/* ===== Principles ===== */
.principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.principle {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: var(--white);
    align-items: flex-start;
}

.principle > i {
    font-size: 28px;
    color: var(--red);
    flex-shrink: 0;
}

.principle__content {
    flex: 1;
}

.principle__title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.principle__desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Practice Areas ===== */
.areas {
    display: flex;
    flex-direction: column;
}

.area {
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 20px;
    align-items: start;
}

.area:first-child {
    padding-top: 0;
}

.area:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.area > i {
    font-size: 24px;
    color: var(--red);
    margin-top: 2px;
}

.area__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.area__title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--gray-800);
}

.area__desc {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ===== Articles Filter ===== */
.articles-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--gray-400);
    color: var(--gray-700);
}

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

/* ===== Articles ===== */
.articles-wrapper {
    position: relative;
}

.articles {
    overflow: hidden;
}

.articles-track {
    display: flex;
    gap: 20px;
    transition: transform 0.7s ease;
}

.articles-track .article {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
}

.articles-track .article.hidden {
    display: none;
}

.articles-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.articles-nav:hover {
    border-color: var(--red);
    color: var(--red);
}

.articles-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.articles-nav:disabled:hover {
    border-color: var(--gray-200);
    color: var(--gray-600);
}

.articles-nav i {
    font-size: 20px;
}

.articles-nav--prev {
    left: 0;
}

.articles-nav--next {
    right: 0;
}

.article {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--red);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    min-height: 260px;
}

.article:hover {
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.article__cat {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
}

.article__reading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--gray-400);
}

.article__reading i {
    font-size: 14px;
}

.article__title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 10px;
    line-height: 1.35;
}

.article__desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    flex: 1;
}

.article__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.article__date {
    font-size: 12px;
    color: var(--gray-400);
}

.article__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--red);
    letter-spacing: 0.04em;
    transition: gap 0.3s ease;
}

.article:hover .article__link {
    gap: 10px;
}

.article.hidden {
    display: none;
}

/* ===== Series Cards ===== */
.series-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.series-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--red);
    transition: all 0.3s ease;
}

.series-card:hover {
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.08);
    transform: translateX(4px);
}

.series-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    flex-shrink: 0;
}

.series-card__icon i {
    font-size: 24px;
    color: var(--red);
}

.series-card__content {
    flex: 1;
}

.series-card__title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.series-card__desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 8px;
}

.series-card__count {
    font-size: 12px;
    font-weight: 500;
    color: var(--red);
    letter-spacing: 0.04em;
}

.series-card__arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.series-card__arrow i {
    font-size: 20px;
}

.series-card:hover .series-card__arrow {
    color: var(--red);
    transform: translateX(4px);
}

/* ===== Contact ===== */
.contact__intro {
    max-width: 600px;
    margin-bottom: 48px;
}

.contact__heading {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 12px;
}

.contact__subtext {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

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

.contact__card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact__card > i {
    font-size: 18px;
    color: var(--red);
    margin-top: 2px;
}

.contact__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact__label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.contact__value {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
    transition: color 0.2s ease;
}

a.contact__card:hover .contact__value {
    color: var(--red);
}


/* ===== Footer ===== */
.footer {
    background: var(--gray-800);
    padding: 48px 32px 32px;
}

.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer__main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-700);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.footer__name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
}

.footer__bar {
    font-size: 11px;
    color: var(--gray-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer__nav,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__nav-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.footer__nav a,
.footer__contact a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.footer__nav a:hover,
.footer__contact a:hover {
    color: var(--white);
}

.footer__contact a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__contact i {
    font-size: 16px;
}

.footer__bottom {
    padding-top: 24px;
    text-align: center;
}

.footer__disclaimer {
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer__copyright {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about--with-photo {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .about__intro {
        order: 1;
        font-size: 17px;
        text-align: left;
    }

    .about__text {
        order: 2;
    }

    .about__photo {
        display: none;
    }

    .about__credentials {
        text-align: center;
    }

    .principles {
        grid-template-columns: repeat(2, 1fr);
    }

    .area {
        grid-template-columns: 28px 1fr;
        gap: 16px;
    }

    .area > i {
        font-size: 20px;
    }

    .articles-nav--prev {
        left: 8px;
    }

    .articles-nav--next {
        right: 8px;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact__heading {
        font-size: 24px;
    }

    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header__inner {
        height: 64px;
        padding: 0 24px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .header__nav.active {
        opacity: 1;
        visibility: visible;
    }

    .header__nav a {
        font-size: 14px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 12px;
    }

    .hero {
        padding-top: 64px;
    }

    .hero__image {
        height: 40vh;
        min-height: 200px;
    }

    .hero__content {
        padding: 48px 24px 64px;
    }

    .section {
        padding: 64px 24px;
    }


    .articles-track .article {
        flex: 0 0 100%;
        width: 100%;
    }

    .articles-nav {
        width: 36px;
        height: 36px;
    }

    .articles-nav--prev {
        left: -12px;
    }

    .articles-nav--next {
        right: -12px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    .series-card {
        padding: 20px 24px;
        gap: 16px;
    }

    .series-card__icon {
        width: 48px;
        height: 48px;
    }

    .series-card__icon i {
        font-size: 20px;
    }

    .series-card__title {
        font-size: 18px;
    }

    .series-card__desc {
        font-size: 13px;
    }

    .series-card__arrow {
        width: 32px;
        height: 32px;
    }

    .principles {
        grid-template-columns: 1fr;
    }

    .principle {
        padding: 20px;
        gap: 16px;
    }

    .article {
        padding: 20px;
        min-height: auto;
    }

    .footer {
        padding: 32px 24px 24px;
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer__brand {
        align-items: center;
    }

    .footer__nav,
    .footer__contact {
        align-items: center;
    }

    .footer__contact a {
        justify-content: center;
    }

    /* Hide footer contact on main pages (they have contact section above) */
    .page-main .footer__contact {
        display: none;
    }
}

/* ===== Animations ===== */
.section__title,
.about,
.principles,
.areas,
.articles-wrapper,
.series-cards,
.contact__grid {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section__title.visible,
.about.visible,
.principles.visible,
.areas.visible,
.articles-wrapper.visible,
.series-cards.visible,
.contact__grid.visible {
    opacity: 1;
    transform: translateY(0);
}
