/* ===== CA Legal Calm - Professional Template ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #1e3a8a;
  --navy-light: #2563eb;
  --navy-dark: #1e1b4b;
  --cream: #fef3c7;
  --cream-light: #fffbeb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --accent: #d97706; /* Amber for subtle highlights */
  --white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--navy-dark); line-height: 1.2; font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.text-accent { color: var(--accent); }
.text-navy { color: var(--navy); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; border-radius: 4px;
  transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.1em;
}
.btn-primary { background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100); height: 90px;
  display: flex; align-items: center; transition: all 0.3s;
}
.navbar.scrolled { height: 75px; box-shadow: var(--shadow-sm); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 45px; height: 45px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 20px; font-family: var(--font-heading); }
.logo-text { font-family: var(--font-heading); font-size: 24px; color: var(--navy-dark); font-weight: 700; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--slate-700); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--navy); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding-top: 90px;
  background: linear-gradient(135deg, var(--white) 0%, var(--cream-light) 100%);
  position: relative;
}
.hero-content { flex: 1; position: relative; z-index: 2; padding-right: 40px; }
.hero-image { flex: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transition: all 0.5s; position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-subtitle { color: var(--navy); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 16px; display: block; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--navy-dark); line-height: 1.1; margin-bottom: 24px; }
.hero-desc { font-size: 1.1rem; color: var(--slate-600); max-width: 500px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; }

/* ===== Grid Sections ===== */
.section { padding: 100px 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: var(--navy); text-transform: uppercase; letter-spacing: 0.2em; font-size: 14px; font-weight: 600; margin-bottom: 60px; display: block; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  padding: 48px; background: var(--white); border: 1px solid var(--slate-100);
  border-radius: var(--radius); transition: all 0.3s; text-align: center;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--navy-light); }
.service-icon { font-size: 40px; margin-bottom: 24px; color: var(--navy); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.service-card p { font-size: 15px; color: var(--slate-600); margin-bottom: 24px; }
.service-card a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; transition: all 0.3s; }
.service-card a:hover { border-color: var(--navy); }

/* ===== About (Home) ===== */
.about-home { background: var(--navy-dark); color: var(--white); }
.about-home h2, .about-home h3 { color: var(--white); }
.about-home p { color: var(--slate-400); }
.about-flex { display: flex; align-items: center; gap: 80px; }
.about-text { flex: 1; }
.about-img { flex: 1; position: relative; }
.about-img img { width: 100%; border-radius: var(--radius); }
.stat-box {
  position: absolute; bottom: -20px; left: -20px; background: var(--white); color: var(--navy-dark);
  padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center;
}
.stat-number { display: block; font-size: 3rem; font-weight: 800; font-family: var(--font-heading); color: var(--navy); line-height: 1; }
.stat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-400); }

/* ===== Contact (Minimal) ===== */
.contact-section { background: var(--slate-50); }
.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.info-card { background: var(--navy); color: var(--white); padding: 48px; border-radius: var(--radius); height: 100%; }
.info-card h3 { color: var(--white); font-size: 2rem; margin-bottom: 32px; }
.info-item { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.info-item h4 { color: var(--accent); font-size: 14px; margin: 0; }
.info-item p { margin: 0; font-size: 16px; opacity: 0.9; }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--navy-dark); }
.form-group input, .form-group textarea {
  width: 100%; padding: 16px; border: 1px solid var(--slate-200); border-radius: 4px;
  font-family: var(--font-body); font-size: 15px; outline: none; transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); }

/* ===== Footer ===== */
.footer { padding: 80px 0 40px; background: var(--white); border-top: 1px solid var(--slate-100); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { margin-top: 20px; color: var(--slate-600); max-width: 300px; }
.footer-links h4 { font-size: 18px; margin-bottom: 24px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: var(--slate-600); transition: color 0.3s; font-size: 15px; }
.footer-links a:hover { color: var(--navy); }
.footer-bottom { border-top: 1px solid var(--slate-50); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--slate-400); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-flex { flex-direction: column; gap: 60px; }
  .contact-container { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
  .navbar { height: 75px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; font-size: 28px; }
  .hero { flex-direction: column; padding-top: 120px; text-align: center; }
  .hero-content { padding-right: 0; margin-bottom: 40px; }
  .hero-actions { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
