/* ============================================
   Rogerius Beheer B.V. — Classical Law Firm Site
   ============================================ */

:root {
    --navy:        #0e2a47;
    --navy-deep:   #081a2e;
    --navy-light:  #1b3d63;
    --gold:        #b08d3c;
    --gold-light:  #d6b66a;
    --cream:       #f7f3ec;
    --paper:       #fbf9f5;
    --ink:         #1a1a1a;
    --muted:       #6b6258;
    --line:        #e3dccf;
    --shadow:      0 20px 60px rgba(14, 42, 71, 0.12);
    --shadow-sm:   0 4px 18px rgba(14, 42, 71, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }

p { color: #3a3631; }

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

em {
    font-style: italic;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(251, 249, 245, 0.0);
    transition: all .3s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(251, 249, 245, 0.96);
    backdrop-filter: blur(10px);
    padding: 0.65rem 0;
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: flex; align-items: center; gap: 0.85rem;
    color: var(--cream);
    transition: color .3s ease;
}
.navbar.scrolled .brand { color: var(--navy); }
.brand-logo {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--cream);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}
.brand-tag {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.75;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    color: var(--cream);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: all .25s ease;
}
.navbar.scrolled .nav-links a { color: var(--navy); }
.nav-links a:hover,
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 0.55rem 1.3rem !important;
    border-radius: 2px;
    border: none !important;
    font-weight: 500;
}
.nav-cta:hover {
    background: var(--gold-light);
    border: none !important;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(8,26,46,0.92) 0%, rgba(14,42,71,0.82) 100%),
        radial-gradient(ellipse at top right, #1b3d63 0%, #081a2e 60%);
    color: var(--cream);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(176, 141, 60, 0.04) 0,
            rgba(176, 141, 60, 0.04) 1px,
            transparent 1px,
            transparent 12px);
    pointer-events: none;
}
.hero::after {
    content: '§';
    position: absolute;
    right: -3rem;
    bottom: -5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 36rem;
    color: rgba(176, 141, 60, 0.07);
    line-height: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
    width: 100%;
    z-index: 2;
}
.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.hero-eyebrow::before {
    content: '— ';
    color: var(--gold);
}
.hero h1 {
    color: var(--cream);
    margin-bottom: 1.8rem;
    max-width: 18ch;
}
.hero h1 em { color: var(--gold-light); }
.hero-lead {
    font-size: 1.18rem;
    color: rgba(247, 243, 236, 0.85);
    max-width: 38rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
    display: inline-block;
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(176, 141, 60, 0.35);
}
.btn-ghost {
    color: var(--cream);
    border-color: rgba(247, 243, 236, 0.35);
    background: transparent;
}
.btn-ghost:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}
.btn-full { width: 100%; }

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1px solid rgba(247, 243, 236, 0.45);
    border-radius: 13px;
    z-index: 2;
}
.scroll-indicator span {
    display: block;
    width: 3px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 2px;
    margin: 7px auto 0;
    animation: scroll-dot 1.8s infinite;
}
@keyframes scroll-dot {
    0%   { opacity: 0; transform: translateY(0); }
    40%  { opacity: 1; }
    80%  { opacity: 0; transform: translateY(14px); }
    100% { opacity: 0; }
}

/* ---------- Sections (generic) ---------- */
.section { padding: 7rem 0; position: relative; }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: rgba(247, 243, 236, 0.78); }
.section-profile { background: var(--paper); }
.section-credentials { background: var(--cream); }

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1rem;
}
.section-label.light { color: var(--gold-light); }
.section-label::before { content: '§ '; }

.section-header { margin-bottom: 4rem; max-width: 720px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { margin-bottom: 1rem; }
.section-intro { font-size: 1.08rem; color: var(--muted); }
.section-dark .section-intro { color: rgba(247, 243, 236, 0.7); }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}
.lead {
    font-size: 1.2rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.col-text p { margin-bottom: 1.1rem; }

/* ---------- Portrait ---------- */
.portrait-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--navy);
}
.portrait-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(247, 243, 236, 0.4);
    z-index: 2;
    pointer-events: none;
}
.portrait-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(15%) contrast(1.02);
}
.signature {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
}
.sig-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    color: var(--navy);
    font-weight: 600;
}
.sig-title {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Expertise ---------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.expertise-card {
    background: rgba(247, 243, 236, 0.04);
    border: 1px solid rgba(247, 243, 236, 0.12);
    padding: 2.4rem 2rem;
    transition: all .3s ease;
    position: relative;
}
.expertise-card:hover {
    background: rgba(176, 141, 60, 0.06);
    border-color: var(--gold);
    transform: translateY(-4px);
}
.card-icon {
    font-size: 2.2rem;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
    line-height: 1;
}
.expertise-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}
.expertise-card p { font-size: 0.96rem; line-height: 1.65; }

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--line);
}
.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 10px;
    width: 11px;
    height: 11px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--paper);
}
.timeline-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    padding-top: 4px;
    letter-spacing: 0.04em;
}
.timeline-body h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.timeline-body p { color: var(--muted); }

/* ---------- Credentials ---------- */
.creds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.cred-block {
    background: var(--paper);
    padding: 2.5rem;
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-sm);
}
.cred-block h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}
.cred-block ul { list-style: none; }
.cred-block li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--line);
    color: #3a3631;
}
.cred-block li:last-child { border-bottom: none; }
.cred-block li strong { color: var(--navy); margin-right: 0.5rem; }

.badge-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 3rem 2rem;
    background: var(--navy);
    color: var(--cream);
}
.badge {
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid rgba(247, 243, 236, 0.18);
}
.badge:last-child { border-right: none; }
.badge-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.4rem;
    font-weight: 500;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.6rem;
}
.badge-label {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(247, 243, 236, 0.8);
}

/* ---------- Contact ---------- */
.section-contact {
    background:
        linear-gradient(135deg, rgba(8,26,46,0.97) 0%, rgba(27,61,99,0.92) 100%),
        radial-gradient(circle at 70% 30%, #1b3d63 0%, #081a2e 70%);
    color: var(--cream);
}
.section-contact h2 { color: var(--cream); }
.section-contact .lead { color: rgba(247, 243, 236, 0.92); }

.contact-list {
    list-style: none;
    margin-top: 2.5rem;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(247, 243, 236, 0.12);
}
.contact-list li:last-child { border-bottom: none; }
.ci {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(176, 141, 60, 0.15);
    color: var(--gold-light);
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ci-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-light);
    margin-bottom: 0.2rem;
}
.contact-list a { color: var(--cream); font-size: 1.05rem; }
.contact-list a:hover { color: var(--gold-light); }
.contact-list span:not(.ci):not(.ci-label) {
    color: rgba(247, 243, 236, 0.85);
    line-height: 1.5;
}

.contact-form {
    background: var(--paper);
    padding: 3rem;
    box-shadow: var(--shadow);
    color: var(--ink);
}
.contact-form h3 {
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-form label {
    display: block;
    margin-bottom: 1.1rem;
}
.contact-form span {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    background: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.form-status {
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.2rem;
    font-size: 0.98rem;
    line-height: 1.5;
    border-left: 4px solid var(--gold);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.form-status.success {
    border-left-color: #2f7d4f;
    background: #eef7f1;
    color: #1d4d31;
}
.form-status.error {
    border-left-color: #b04444;
    background: #fbeeee;
    color: #6b1f1f;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-deep);
    color: rgba(247, 243, 236, 0.7);
    padding: 3rem 0;
    border-top: 3px solid var(--gold);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex; align-items: center; gap: 1rem;
}
.footer-brand img {
    width: 50px; height: 50px;
    background: var(--cream);
    border-radius: 50%;
    padding: 4px;
}
.f-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--cream);
    font-weight: 600;
}
.f-tag {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.75;
}
.footer-meta { text-align: right; font-size: 0.88rem; }
.footer-meta .muted { opacity: 0.55; margin-top: 0.3rem; font-size: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .section { padding: 5rem 0; }
    .two-col { grid-template-columns: 1fr; gap: 3rem; }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .creds-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .badge-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .badge { border-right: none; }
    .badge:nth-child(odd) { border-right: 1px solid rgba(247, 243, 236, 0.18); }
    .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .timeline-year { font-size: 1rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-meta { text-align: center; }
}

@media (max-width: 640px) {
    .container, .nav-container, .hero-content { padding-left: 1.25rem; padding-right: 1.25rem; }
    .nav-links { gap: 1rem; }
    .nav-links a:not(.nav-cta) { display: none; }
    .expertise-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 2rem 1.5rem; }
    .brand-tag { display: none; }
    .hero-content { padding-top: 7rem; padding-bottom: 4rem; }
}
