﻿@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
    --bg: #f6f7f8;
    --bg-alt: #e9edf2;
    --ink: #132237;
    --muted: #3d4e63;
    --accent: #0c3f73;
    --accent-2: #b98131;
    --surface-strong: #11243d;
    --card: #ffffff;
    --border: #ccd8e4;
    --shadow: 0 16px 40px rgba(17, 36, 61, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1160px;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
}

* {
    box-sizing: border-box;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fbfdff 0%, var(--bg) 55%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 246, 243, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 20px;
    letter-spacing: 0.6px;
}

.nav__links {
    display: flex;
    gap: 24px;
    align-items: center;
    font-weight: 600;
}

.nav__links a {
    color: var(--muted);
}

.nav__links a:hover {
    color: var(--ink);
}

.nav__links a.cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
}

.hero {
    padding: 80px 0 60px;
}

.hero__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
    animation: rise 0.7s ease both;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    color: var(--accent-2);
}

.hero h1 {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 44px;
    margin: 12px 0 18px;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.hero__actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__card {
    background: var(--card);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: rise 0.8s ease both;
    animation-delay: 0.1s;
}

.hero__card-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.hero__stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.stat__value {
    font-size: 24px;
    font-weight: 700;
}

.stat__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.section {
    padding: 70px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section--cta {
    background: var(--ink);
    color: #fff;
}

.section__header h2 {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 32px;
    margin: 0 0 12px;
}

.section__header p {
    color: var(--muted);
    margin: 0 0 28px;
}

.section--cta p {
    color: rgba(255, 255, 255, 0.7);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: rise 0.7s ease both;
}

.card--post img {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card__body {
    padding-top: 18px;
}

.meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 8px;
}

.link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--accent);
}

.image-tile {
    background: linear-gradient(135deg, rgba(31, 58, 95, 0.15), rgba(138, 106, 47, 0.2));
    border-radius: var(--radius);
    min-height: 180px;
}

.image-tile--mid {
    background: linear-gradient(135deg, rgba(31, 58, 95, 0.3), rgba(27, 27, 27, 0.15));
}

.image-tile--dark {
    background: linear-gradient(135deg, rgba(27, 27, 27, 0.5), rgba(138, 106, 47, 0.35));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn--ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.page-hero {
    padding: 70px 0 30px;
}

.page-hero h1 {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 38px;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--muted);
}

.page-hero--post {
    background: var(--bg-alt);
}

.hero-image {
    margin-bottom: 32px;
}

.prose {
    line-height: 1.7;
    color: var(--ink);
}

.prose h2, .prose h3 {
    font-family: "Fraunces", "Georgia", serif;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tag {
    background: rgba(31, 58, 95, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gallery {
    margin-top: 30px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filters {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 24px;
}

.filters input,
.filters select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
}

.form {
    display: grid;
    gap: 16px;
}

.form__row {
    display: grid;
    gap: 8px;
}

.form__row input,
.form__row textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
}

.form__check {
    display: flex;
    gap: 10px;
    align-items: center;
}

.two-col {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card--aside {
    align-self: start;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer {
    background: #11110f;
    color: #fff;
    padding: 50px 0 0;
}

.footer__inner {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding-bottom: 32px;
}

.footer__title {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.footer__label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.muted {
    color: var(--muted);
}

.flash {
    background: var(--bg-alt);
    padding: 12px 0;
}

.flash__item {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    color: var(--accent);
    font-weight: 600;
}

.badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(138, 106, 47, 0.2);
    color: var(--accent-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.site-aura {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 8% 12%, rgba(185, 129, 49, 0.18), transparent 42%),
        radial-gradient(circle at 90% 6%, rgba(12, 63, 115, 0.14), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 40%);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -120px;
    z-index: 100;
    background: var(--surface-strong);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.eyebrow,
.meta,
.footer__label {
    font-family: "Space Grotesk", sans-serif;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 64px;
}

.hero__card {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, #ffffff 40%, rgba(17, 36, 61, 0.04));
}

.card {
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(14, 30, 50, 0.14);
    border-color: rgba(12, 63, 115, 0.3);
}

.feature-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    margin-bottom: var(--space-2);
    color: var(--accent);
    background: rgba(12, 63, 115, 0.1);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.section__header--center {
    text-align: center;
}

.section--cta {
    background: linear-gradient(130deg, #10253e, #0f3b6c 55%, #114d86 100%);
}

.btn {
    transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(12, 63, 115, 0.22);
}

.btn--ghost:hover {
    background: rgba(12, 63, 115, 0.08);
}

.filters {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
    backdrop-filter: blur(10px);
}

.filters input,
.filters select,
.form__row input,
.form__row textarea {
    background: #fff;
}

.form-errors,
.errorlist {
    color: #8c1d1d;
    margin: 0;
    font-size: 0.95rem;
}

.errorlist {
    list-style: none;
    padding: 0;
}

.pagination__link {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
}

.pagination__meta {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo__img {
    height: 52px;
    width: 52px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.logo__name {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.2px;
}

.logo__subtitle {
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-2);
    font-weight: 600;
}

/* ── Avocat profile (homepage) ── */
.avocat-profile {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: center;
}

.avocat-profile__img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.avocat-profile__content h2 {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 34px;
    margin: 8px 0 16px;
}

.profile-values {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0 24px;
}

.profile-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
}

.profile-value__icon {
    font-size: 18px;
}

/* ── Photo grid (homepage methodology) ── */
.section--photos {
    background: var(--bg);
}

.photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.photo-grid__main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
}

.photo-grid__side {
    display: grid;
    gap: 16px;
}

.photo-grid__side img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
}

.photo-grid--services {
    grid-template-columns: 1fr 1fr;
}

.photo-grid--services img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ── Service blocks ── */
.service-block {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 28px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(12, 63, 115, 0.1);
    color: var(--accent);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 4px;
}

.service-block h2 {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 26px;
    margin: 0 0 10px;
}

.service-block p {
    color: var(--muted);
    margin: 0 0 16px;
}

/* ── List spaced ── */
.list--spaced li {
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    color: var(--muted);
}

.list--spaced li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-weight: 700;
}

/* ── About photo ── */
.about-photo {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.two-col--reverse {
    direction: rtl;
}

.two-col--reverse > * {
    direction: ltr;
}

/* ── CTA button variants ── */
.btn--gold {
    background: var(--accent-2);
    color: #fff;
}

.btn--gold:hover {
    background: #a57028;
    box-shadow: 0 10px 24px rgba(185, 129, 49, 0.35);
}

.btn--outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* ── Hamburger button ── */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 200ms ease;
}

.nav__burger:hover {
    background: rgba(12, 63, 115, 0.08);
}

.nav__burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 280ms ease, opacity 200ms ease;
    transform-origin: center;
}

/* Burger → X animation */
.nav--open .nav__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav--open .nav__burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav--open .nav__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
    .avocat-profile {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .avocat-profile__img img {
        height: 280px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid__side {
        grid-template-columns: 1fr 1fr;
    }

    .photo-grid__side img {
        height: 160px;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-photo {
        height: 300px;
    }

    .two-col--reverse {
        direction: ltr;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

    /* Navbar */
    .nav__burger {
        display: flex;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(248, 246, 243, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 8px 0 16px;
        box-shadow: 0 12px 32px rgba(17, 36, 61, 0.12);
    }

    .nav--open .nav__links {
        display: flex;
    }

    .nav__links a {
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 0;
        color: var(--ink);
    }

    .nav__links a:hover {
        background: rgba(12, 63, 115, 0.06);
    }

    .nav__links a.cta {
        margin: 8px 16px 0;
        border-radius: 999px;
        text-align: center;
        background: var(--ink);
        color: #fff;
        padding: 14px 24px;
    }

    .nav {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    /* Hero */
    .hero {
        padding: 48px 0 40px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.25;
    }

    .lead {
        font-size: 16px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 22px;
    }

    .hero__stats {
        gap: 20px;
    }

    /* Sections */
    .section {
        padding: 48px 0;
    }

    .section__header h2 {
        font-size: 26px;
    }

    /* Profile section */
    .avocat-profile {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .avocat-profile__img img {
        height: 240px;
        width: 100%;
    }

    .avocat-profile__content h2 {
        font-size: 26px;
    }

    .profile-values {
        gap: 12px;
    }

    /* Cards */
    .card {
        padding: 20px;
    }

    /* Photo grids */
    .photo-grid {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .photo-grid__main img {
        height: 240px;
    }

    .photo-grid__side {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .photo-grid__side img {
        height: 130px;
    }

    .photo-grid--services {
        grid-template-columns: 1fr;
    }

    .photo-grid--services img {
        height: 220px;
    }

    /* Service blocks */
    .service-block {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px 0;
    }

    .service-block h2 {
        font-size: 22px;
    }

    /* Page hero */
    .page-hero {
        padding: 48px 0 24px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    /* About photo */
    .about-photo {
        height: 240px;
    }

    .two-col--reverse {
        direction: ltr;
    }

    /* CTA section */
    .cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section--cta .cta > div:last-child {
        width: 100%;
    }

    .btn--gold,
    .btn--outline-white {
        width: 100%;
        justify-content: center;
        padding: 14px 22px;
    }

    /* Contact aside cards */
    .card--aside {
        margin-top: 0;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    /* Form */
    .form__row input,
    .form__row textarea {
        font-size: 16px; /* prevents iOS zoom */
    }

    .filters input,
    .filters select {
        font-size: 16px;
    }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    .avocat-profile__content h2 {
        font-size: 24px;
    }

    .photo-grid__side {
        grid-template-columns: 1fr;
    }

    .photo-grid__side img {
        height: 180px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }

    .hero__card {
        padding: 20px;
    }

    .stat__value {
        font-size: 20px;
    }

    .logo__img {
        height: 44px;
        width: 44px;
    }
}
