/* ---- CSS Variables: Earth-toned Minimalism ---- */
:root {
    --color-sage: #87A96B;
    --color-sage-light: #a9c693;
    --color-sage-dark: #6e8b56;
    --color-sand: #F5F5DC;
    --color-sand-dark: #e8e8ce;
    --color-slate: #708090;
    --color-slate-dark: #4a5968;
    --color-white: #ffffff;
    --color-bg: #FCFCFA;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;

    --radius-sm: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 12px rgba(112, 128, 144, 0.08);
    --shadow-md: 0 8px 24px rgba(112, 128, 144, 0.12);
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-slate);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--color-slate-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

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

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-sand {
    background-color: var(--color-sand);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-sage);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-sage-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ---- Navigation ---- */
.navbar {
    padding: 20px 0;
    background-color: rgba(252, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(112, 128, 144, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-slate-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--color-slate);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-sage);
}

/* ---- Sections ---- */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
}

/* ---- Hero Section ---- */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-sand) 0%, rgba(245, 245, 220, 0) 70%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-slate-dark);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-slate);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    max-height: 550px;
}

/* ---- Expertise Cards ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(112, 128, 144, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-sage-light);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 16px;
    background-color: var(--color-bg);
    border-radius: var(--radius-full);
    color: var(--color-sage);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* ---- About Section ---- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-wrapper {
    flex: 1;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/5;
    object-fit: cover;
    width: 100%;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

/* ---- Contact Section ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--color-sage-dark);
}

.map-placeholder {
    width: 100%;
    height: 240px;
    background-color: var(--color-sand-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(135, 169, 107, 0.1);
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) sepia(15%) opacity(0.85);
    transition: var(--transition);
}

.map-placeholder:hover .map-img {
    filter: grayscale(0%) sepia(0%) opacity(1);
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-slate-dark);
    transition: var(--transition);
    background-color: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(135, 169, 107, 0.2);
    background-color: var(--color-white);
}

/* ---- Footer ---- */
.footer {
    background-color: var(--color-slate-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer-brand h3 {
    color: var(--color-white);
    margin-bottom: 8px;
}

.footer-brand p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-sand);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-copy {
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    width: 100%;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {

    .hero-container,
    .about-container,
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding-top: 140px;
        min-height: 100vh;
        height: auto;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-wrapper {
        order: -1;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}