
:root {
    --bg: #f5f1ea;           /* Sandstone Calm */
    --card: #ffffff;         /* Modern Linen (light card) */
    --accent: #9bb39b;       /* Warm Sage */
    --accent-dark: #5f7a61;
    --text: #272727;
    --muted: #6f6f6f;
    --border: #e0ded8;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #fdfaf4 0, var(--bg) 55%);
    color: var(--text);
    line-height: 1.6;
}

/* Global layout */

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

/* Header & Navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(245, 241, 234, 0.96), rgba(245, 241, 234, 0.85));
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.brand-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    position: relative;
    padding-bottom: 0.15rem;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: var(--accent-dark);
    transition: width 0.2s ease-out;
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: var(--accent-dark);
    font-weight: 600;
}

.nav a.active::after {
    width: 100%;
}

/* Buttons */

.btn,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: var(--accent-dark);
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    gap: 0.45rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.btn-outline {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
    box-shadow: none;
}

/* Hero / page header */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 1.75rem;
    align-items: center;
}

.hero-text-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 2.6rem);
    letter-spacing: 0.02em;
    margin: 0 0 0.6rem;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 34rem;
}

.hero-actions {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-badge-row {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background-color: rgba(255,255,255,0.9);
}

.hero-portrait {
    position: relative;
    align-self: stretch;
}

.hero-card {
    background: radial-gradient(circle at top, #ffffff 0, var(--card) 60%);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-img-wrapper {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #ddd;
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card-footer {
    margin-top: 0.7rem;
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Section helpers */

.section {
    margin-top: 2.5rem;
}

.section-header {
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: 1.3rem;
    margin: 0 0 0.3rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Cards & grids */

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.15rem 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.7);
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 1.3rem;
}

.grid-3 {
    display: grid;
    grid-repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

/* Lists */

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

.list-quiet li {
    margin-bottom: 0.45rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.list-quiet li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-dark);
}

/* About page specific */

.about-lead {
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 40rem;
}

.badge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.7rem;
}

.badge {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(155,179,155,0.12);
    border: 1px solid rgba(155,179,155,0.6);
}

/* Practice areas */

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.practice-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.practice-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Contact page (reusing previous layout tweaks) */

.contact-page-intro {
    text-align: center;
    margin-top: 1.4rem;
    margin-bottom: 2rem;
    font-size: 0.93rem;
    color: var(--muted);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-column {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info p {
    margin: 0.4rem 0;
    font-size: 0.93rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--accent-dark);
    text-decoration: none;
    font-size: 0.86rem;
    color: var(--accent-dark);
    background-color: rgba(255,255,255,0.85);
}

.map-wrapper iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 12px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form label {
    font-size: 0.9rem;
}

.form input,
.form textarea {
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    font: inherit;
    background: #fbfbfb;
}

.form button {
    margin-top: 0.2rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 3rem;
    padding: 1.2rem 1.5rem 1.7rem;
    background: rgba(255,255,255,0.8);
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.site-footer a {
    color: var(--accent-dark);
    text-decoration: none;
}

/* Responsive */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-wrap: wrap;
        row-gap: 0.4rem;
    }
}

@media (max-width: 640px) {
    .wrapper {
        padding-inline: 1rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: minmax(0,1fr);
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
