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

:root {
  --primary: #1a5f7a;
  --primary-dark: #134a5f;
  --accent: #c9a227;
  --bg: #ffffff;
  --bg-alt: #f7f9fa;
  --text: #222;
  --text-light: #666;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* === Typography === */
h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.7rem; margin-bottom: 1rem; color: var(--text); }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.link-inline { text-decoration: underline; }

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

/* === Header / Nav === */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-links a.active { background: var(--primary); color: white; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  list-style: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
}

.mobile-menu.show { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--primary); font-weight: 600; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-content { max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; color: white; }
.tagline {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
}
.btn-primary:hover {
  background: #b8921f;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

/* === Cards === */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-card {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.about-card h3 { color: var(--primary); }
.about-card p { margin: 0; color: var(--text-light); font-size: 0.95rem; }

.services-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.service-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.service-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

.cta-center { text-align: center; margin-top: 2rem; }

/* === Services Page === */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 { color: white; margin-bottom: 0.5rem; }
.page-subtitle { font-size: 1.1rem; opacity: 0.85; }

.section-intro { font-size: 1.1rem; color: var(--text-light); max-width: 700px; margin-bottom: 2rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.service-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-card h3 { color: var(--primary); margin-bottom: 0.75rem; }
.service-card ul {
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-light);
}
.service-card li { padding: 0.25rem 0; border-bottom: 1px solid var(--border); }
.service-card li:last-child { border-bottom: none; }

/* === Notary Types === */
.notary-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.notary-type {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.notary-type h3 { color: var(--primary); margin-bottom: 0.5rem; }
.notary-type p { margin: 0; font-size: 0.95rem; color: var(--text-light); }

/* === Resume === */
.resume-header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.resume-header h2 { margin-bottom: 0.5rem; }
.resume-contact a { color: var(--primary); }

.resume-section { margin-bottom: 2.5rem; }
.resume-section h3 { color: var(--primary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }

.credential-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.credential-icon { font-size: 1.8rem; }
.credential-card h4 { margin-bottom: 0.25rem; }
.credential-detail { color: var(--text-light); margin: 0.25rem 0; font-size: 0.95rem; }
.credential-meta { font-size: 0.85rem; color: #888; margin: 0; }

.exp-block, .edu-block { margin-bottom: 1.5rem; }
.exp-block h4, .edu-block h4 { margin-bottom: 0.25rem; }
.exp-date, .exp-block + p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.5rem; }
.exp-block ul { margin-left: 1.5rem; font-size: 0.95rem; }
.exp-block li { margin-bottom: 0.25rem; }

.skills-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.skill-tag {
  background: var(--primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.membership-list { margin-left: 1.5rem; }
.membership-list li { margin-bottom: 0.5rem; }

.resume-note { font-size: 0.9rem; color: var(--text-light); margin-top: 0.5rem; }
.resume-note:before { content: "💡 "; }

/* === Contact Cards === */
.contact-intro { margin-bottom: 1.5rem; }
.contact-cards { display: flex; gap: 1.5rem; }
.contact-card {
  flex: 1;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: center;
}
.contact-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-card h3 { margin-bottom: 0.25rem; color: var(--primary); }
.contact-card p { margin: 0; }

/* === Footer === */
footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}
footer p { margin: 0.25rem 0; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 3rem 0; }
  
  .about-grid { grid-template-columns: 1fr; }
  .services-preview { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .notary-types { grid-template-columns: 1fr; }
  .contact-cards { flex-direction: column; }
}

@media (max-width: 480px) {
  .services-preview { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .tagline { font-size: 1.1rem; }
}