/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === PROMO NOTARY COLORS === */
  --primary: #0f172a;
  --primary-light: rgba(15, 23, 42, 0.1);
  --accent: #1e3a5f;
  --cat1-color: #0f172a;
  --cat2-color: #1e3a5f;
  --cat3-color: #475569;
  /* === END CUSTOMIZE === */

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --gradient-hero: linear-gradient(to right bottom, #eff6ff, #f1f5f9);
  --gradient-cta: linear-gradient(to right bottom, #eff6ff, #f1f5f9);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: 'Poppins', system-ui, sans-serif; color: var(--gray-900); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 0.5rem; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  padding: 0.75rem 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.navbar-logo img { height: 96px; width: auto; }

/* Nav links */
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a { font-size: 0.95rem; font-weight: 500; color: var(--gray-600); transition: color 0.2s; }
.navbar-links a:hover { color: var(--primary); }

/* Nav CTA button */
.btn-nav {
  background: var(--primary); color: var(--white) !important; padding: 0.5rem 1.25rem;
  border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; transition: background 0.2s;
}
.btn-nav:hover { opacity: 0.9; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.mobile-menu-btn svg { width: 24px; height: 24px; stroke: var(--gray-700); }

/* Mobile menu panel */
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md); z-index: 99;
}
.mobile-menu a { display: block; padding: 0.75rem 0; font-size: 1rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.active { display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s;
  border: none; font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--gray-700); border: 2px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.05rem; }
.btn svg { width: 20px; height: 20px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  padding: 5rem 0 4rem; position: relative;
}
.hero .container {
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.hero-content { flex: 1; max-width: 600px; }
.hero h1 {
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.hero p { font-size: 1.875rem; color: var(--gray-600); margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image {
  flex-shrink: 0;
}
.hero-image .seal-container {
  width: 260px; height: 260px; border-radius: 50%;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-image .seal-container img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--gradient-hero);
  padding: 4rem 0 3rem; text-align: center;
}
.page-hero h1 {
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.page-hero p { font-size: 1.1rem; color: var(--gray-600); max-width: 640px; margin: 0 auto 1.5rem; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 0; }
.section-gray { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--gray-500); max-width: 600px; margin: 0.75rem auto 0; font-size: 1.05rem; }

/* ===== SERVICE CARDS (Homepage) ===== */
.services { padding: 4rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.services-cta { text-align: center; margin-top: 2.5rem; }
.service-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 2rem; transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; background: var(--gray-100); color: var(--gray-600);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 0; }
.service-card ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.75rem; }
.service-card ul li { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0.35rem; }

/* ===== DETAIL CARDS (Service pages) ===== */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.detail-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 2rem; transition: transform 0.2s, box-shadow 0.2s;
}
.detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.detail-card .card-icon { margin-bottom: 1rem; }
.detail-card .card-icon svg { width: 32px; height: 32px; }
.detail-card h3 { margin-bottom: 0.5rem; }
.detail-card > p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 1rem; }

/* ===== CTA SECTION ===== */
.cta {
  background: var(--gray-50); padding: 4rem 0; text-align: center;
}
.cta h2 { color: var(--gray-900); margin-bottom: 1rem; }
.cta p { font-size: 1.1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto 2rem; }

/* ===== QUESTIONS SECTION ===== */
.questions-section {
  padding: 4rem 0; background: var(--white);
}
.questions-card {
  max-width: 700px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 3rem; box-shadow: var(--shadow-md);
}
.questions-card h2 { margin-bottom: 0.75rem; }
.questions-card > p { color: var(--gray-500); margin-bottom: 2rem; }
.questions-contacts { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.questions-contact-item { text-align: center; }
.questions-contact-item .q-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
}
.questions-contact-item .q-icon svg { width: 24px; height: 24px; }
.questions-contact-item h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.questions-contact-item p, .questions-contact-item a {
  font-size: 0.95rem; color: var(--gray-500); margin-bottom: 0;
}
.questions-contact-item a:hover { color: var(--primary); }

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  margin-bottom: 1rem; overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer;
  font-family: 'Poppins', system-ui, sans-serif; font-size: 1.05rem; font-weight: 600;
  color: var(--gray-900); text-align: left; line-height: 1.4;
}
.faq-chevron { width: 22px; height: 22px; color: var(--gray-500); flex-shrink: 0; transition: transform 0.25s; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 1.5rem 1.25rem; color: var(--gray-500); font-size: 0.95rem; margin-bottom: 0; }
.faq-answer a { color: var(--primary); font-weight: 500; }
.faq-answer a:hover { text-decoration: underline; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; font-size: 1.75rem; }
.contact-info > p { color: var(--gray-500); margin-bottom: 2rem; }
.contact-details { margin-top: 2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-detail svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-detail div strong { display: block; font-size: 0.95rem; color: var(--gray-900); margin-bottom: 0.15rem; }
.contact-detail div span, .contact-detail div a { font-size: 0.9rem; color: var(--gray-500); }
.contact-detail div a:hover { color: var(--primary); }

.contact-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem; }
.contact-form h3 { margin-bottom: 1.5rem; font-size: 1.35rem; }
.form-success { background: #ecfdf5; border: 1px solid #10b981; color: #065f46; padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 500; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit; outline: none; transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,23,42,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
footer { background: var(--gray-900); color: var(--white); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
footer h4 { font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; }
.footer-about p { color: var(--gray-400); font-size: 0.9rem; line-height: 1.6; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 40px; width: auto; filter: brightness(10); }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--gray-400); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; color: var(--gray-400); font-size: 0.9rem; }
.footer-contact li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; stroke: var(--gray-400); }
.footer-contact a { color: var(--gray-400); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0; text-align: center;
  color: var(--gray-400); font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-image .seal-container { width: 200px; height: 200px; }
  .hero h1 { font-size: 2rem; }
  .services-grid, .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .questions-contacts { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
