@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #1a1a1a;
    --secondary: #c5a059;
    --accent: #2c3e50;
    --light: #fdfdfd;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --text-main: #333333;
    --text-muted: #666666;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 80px 0;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-gold { color: var(--secondary); }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

/* Navbar */
.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-toggle-cb {
    display: none;
}

/* Navbar Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.nav-toggle-cb:checked ~ .nav-toggle .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle-cb:checked ~ .nav-toggle .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle-cb:checked ~ .nav-toggle .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


.mobile-cta {
    display: none;
    margin-top: 2rem;
    width: 100%;
}

.desktop-cta {
    display: block;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-member {
    background: white;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition-smooth);
    position: relative;
    text-align: center;
    color: inherit;
    text-decoration: none;
    display: block;
}


.team-member:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--secondary);
}

.member-image {
    width: 100%;
    max-width: 240px; /* Limit the width of the image */
    height: 280px; /* Fixed height for consistency */
    background: var(--gray-100);
    margin: 0 auto 1.5rem; /* Center the image container */
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}


.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition-smooth);
}

.team-member:hover .member-image img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.member-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.member-info p {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.member-bio-snippet {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}


/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-300);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p, .footer-col li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

#blazor-error-ui {
    background: #ff7675;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
    text-align: center;
}

#blazor-error-ui .reload {
    margin-left: 1rem;
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}


/* Responsive */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 4rem 2rem;
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        z-index: 999;
    }

    .nav-toggle-cb:checked ~ .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .desktop-cta {
        display: none;
    }

    .mobile-cta {
        display: block;
    }

    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .contact-container { grid-template-columns: 1fr; }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content div {
        justify-content: center;
    }

    .about-brief div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}