/* Palette: Slate Grey, Terra Cotta, Light Grey */
:root {
    --slate: #37474F;
    --terra: #D84315;
    --light-grey: #ECEFF1;
    --white: #FFFFFF;
    --text: #263238;
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--light-grey);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* Header */
.view-header { background: var(--white); padding: 20px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--slate); display: flex; align-items: center; gap: 10px; }
.terra { color: var(--terra); }
.icon-build { font-size: 1.4rem; }

.law-nav a { margin-left: 25px; font-weight: 600; color: #555; font-size: 0.9rem; }
.law-nav a:hover, .law-nav a.active { color: var(--terra); }

.btn-terra { background: var(--terra); color: var(--white) !important; padding: 10px 25px; border-radius: 4px; font-weight: 600; }
.btn-terra:hover { background: var(--slate); }

/* Mobile Menu */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.mobile-toggle span { width: 25px; height: 3px; background: var(--slate); }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 250px; height: 100%; background: var(--slate); z-index: 2000; padding: 30px; transition: 0.4s; }
.mobile-menu.active { right: 0; }
.close-menu { color: var(--white); font-size: 2rem; background: none; border: none; cursor: pointer; margin-bottom: 20px; }
.mobile-menu a { display: block; color: var(--white); font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }

@media (max-width: 900px) {
    .law-nav { display: none; }
    .mobile-toggle { display: flex; }
}

/* Hero */
.hero-view { height: 75vh; background-size: cover; background-position: center; position: relative; }
.hero-shade { width: 100%; height: 100%; background: linear-gradient(rgba(55, 71, 79, 0.9), rgba(55, 71, 79, 0.6)); display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content { color: var(--white); max-width: 800px; padding: 20px; }
.sub-title { color: var(--terra); font-weight: 700; font-size: 0.9rem; letter-spacing: 2px; display: block; margin-bottom: 15px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.2; margin-bottom: 30px; }
.hero-content p { font-size: 1.1rem; color: #cfd8dc; margin-bottom: 40px; }

.cta-row { display: flex; justify-content: center; gap: 20px; }
.btn-primary { background: var(--terra); color: var(--white); padding: 15px 35px; border-radius: 4px; font-weight: 600; }
.btn-secondary { border: 2px solid var(--white); color: var(--white); padding: 13px 35px; border-radius: 4px; font-weight: 600; }
.btn-secondary:hover { background: var(--white); color: var(--slate); }

/* Areas Grid */
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--slate); margin-bottom: 15px; }
.terra-line { width: 60px; height: 4px; background: var(--terra); margin: 0 auto; }
.terra-line.left { margin: 20px 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.area-card { background: var(--white); padding: 40px 25px; border-radius: 8px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: 0.3s; border-bottom: 3px solid transparent; }
.area-card:hover { transform: translateY(-5px); border-bottom-color: var(--terra); }
.icon { font-size: 3rem; margin-bottom: 20px; }
.area-card h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--slate); margin-bottom: 15px; }
.area-card a { color: var(--terra); font-weight: 600; font-size: 0.9rem; }

/* Stats */
.stats-bar { background: var(--slate); color: var(--white); padding: 50px 0; margin-top: 50px; }
.stats-flex { display: flex; justify-content: space-around; text-align: center; }
.stat strong { display: block; font-family: var(--font-heading); font-size: 2.5rem; color: var(--terra); }
.stat span { font-size: 0.9rem; color: #b0bec5; }

/* Detail Layout (Areas Page) */
.detail-layout { display: grid; grid-template-columns: 1fr 2.5fr; gap: 50px; background: var(--white); padding: 50px; border-radius: 8px; }
.sidebar h3 { font-family: var(--font-heading); margin-bottom: 20px; color: var(--slate); }
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { padding: 15px 0; border-bottom: 1px solid #eee; cursor: pointer; transition: 0.3s; }
.sidebar li:hover, .sidebar li.active { color: var(--terra); font-weight: 600; padding-left: 10px; }
.content h1 { font-family: var(--font-heading); color: var(--slate); }
.check-list { list-style: none; margin: 30px 0; }
.check-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.check-list li::before { content: '✓'; color: var(--terra); position: absolute; left: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.lawyer-card { background: var(--white); padding: 30px; text-align: center; border-radius: 8px; border: 1px solid #e0e0e0; }
.lawyer-card.highlight { border-color: var(--terra); }
.photo-placeholder { width: 100px; height: 100px; background: var(--slate); color: var(--white); font-size: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: var(--font-heading); }
.lawyer-card h3 { color: var(--slate); font-family: var(--font-heading); margin-bottom: 5px; }
.lawyer-card .title { color: var(--terra); font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 15px; }

/* Contact */
.contact-block { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; background: var(--white); padding: 60px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.contact-details h2 { font-family: var(--font-heading); color: var(--slate); margin-bottom: 20px; }
.c-item { margin-bottom: 20px; }
.c-item strong { display: block; color: var(--terra); font-size: 0.8rem; }

.clean-form .group { margin-bottom: 20px; }
.clean-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; color: var(--slate); }
.clean-form input, .clean-form select, .clean-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: var(--font-body); }
.submit-btn { width: 100%; background: var(--slate); color: var(--white); border: none; padding: 15px; font-weight: 600; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: var(--terra); }

/* Legal Text */
.legal-content { max-width: 800px; margin: 0 auto; background: var(--white); padding: 60px; border-radius: 8px; }
.legal-content h1 { font-family: var(--font-heading); color: var(--slate); }
.legal-content h3 { color: var(--terra); margin-top: 30px; font-family: var(--font-heading); }

/* Footer */
.view-footer { background: var(--slate); color: #cfd8dc; padding: 60px 0 20px; margin-top: 80px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #455a64; padding-bottom: 30px; margin-bottom: 20px; }
.f-info h4 { color: var(--white); font-family: var(--font-heading); letter-spacing: 1px; }
.f-nav a { margin-left: 20px; color: #cfd8dc; }
.f-nav a:hover { color: var(--terra); }
.copyright { text-align: center; font-size: 0.8rem; }

/* Cookie */
.cookie-legal { position: fixed; bottom: 20px; left: 20px; background: var(--white); border-left: 5px solid var(--terra); padding: 20px 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 20px; z-index: 9999; display: none; }
.cookie-legal.active { display: flex; }
.cookie-legal button { background: var(--slate); color: var(--white); border: none; padding: 8px 20px; border-radius: 4px; cursor: pointer; }

@media (max-width: 900px) {
    .grid-3, .detail-layout, .contact-block, .team-grid, .stats-flex { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .stats-flex { gap: 30px; }
}