/*
Theme Name: Betterplan Notary Solutions
Theme URI: https://betterplannotary.com
Author: Betterplan Notary Solutions
Author URI: https://betterplannotary.com
Description: A professional one-page theme for Betterplan Notary Solutions - offering mobile notary, loan signing, and document translation services.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: betterplan-notary
Tags: one-page, custom-background, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ===== CSS Variables ===== */
:root {
  --primary: 222 47% 20%;
  --primary-foreground: 0 0% 100%;
  --secondary: 187 100% 42%;
  --secondary-foreground: 222 47% 15%;
  --background: 210 20% 98%;
  --foreground: 222 47% 15%;
  --muted: 210 20% 96%;
  --muted-foreground: 220 10% 40%;
  --accent: 45 93% 47%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 15%;
  --border: 220 13% 91%;
  --radius: 0.5rem;
  
  /* Named colors */
  --navy-900: 222 47% 15%;
  --navy-800: 222 47% 20%;
  --navy-700: 222 40% 30%;
  --cyan-500: 187 100% 42%;
  --cyan-400: 187 100% 50%;
  --gold-500: 45 93% 47%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--secondary)), hsl(187 100% 35%));
  color: hsl(var(--secondary-foreground));
  box-shadow: 0 4px 15px hsla(var(--secondary), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(var(--secondary), 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid hsl(var(--primary-foreground));
  color: hsl(var(--primary-foreground));
}

.btn-outline:hover {
  background: hsla(var(--primary-foreground), 0.1);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsla(var(--navy-900), 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsla(var(--primary-foreground), 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--gold-500)));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
}

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

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: 2rem;
  }
}

.main-nav a {
  color: hsla(var(--primary-foreground), 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.header-phone {
  color: hsl(var(--secondary));
  font-weight: 600;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsla(var(--navy-900), 0.85) 0%,
    hsla(var(--navy-800), 0.9) 50%,
    hsla(var(--navy-900), 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-tagline {
  color: hsl(var(--secondary));
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-title span {
  color: hsl(var(--secondary));
}

.hero-phone {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-phone {
    font-size: 2.5rem;
  }
}

.hero-description {
  color: hsla(var(--primary-foreground), 0.9);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* ===== Certifications Section ===== */
.certifications {
  padding: 3rem 0;
  background: hsl(var(--muted));
  border-bottom: 1px solid hsl(var(--border));
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.cert-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, hsl(var(--navy-800)), hsl(var(--navy-700)));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--secondary));
  font-size: 1.5rem;
  border: 2px solid hsl(var(--secondary));
}

.cert-name {
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.cert-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

/* ===== Services Section ===== */
.services {
  padding: 5rem 0;
  background: hsl(var(--background));
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  color: hsl(var(--muted-foreground));
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px hsla(0, 0%, 0%, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px hsla(var(--secondary), 0.2);
}

.service-card.dark {
  background: linear-gradient(135deg, hsl(var(--navy-800)), hsl(var(--navy-900)));
  color: hsl(var(--primary-foreground));
}

.service-image {
  height: 160px;
  background: linear-gradient(135deg, hsl(var(--navy-700)), hsl(var(--navy-800)));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--secondary));
  font-size: 3rem;
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--secondary));
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Why Us Section ===== */
.why-us {
  padding: 5rem 0;
  background: hsl(var(--background));
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  transition: background 0.3s ease;
}

.benefit-item:hover {
  background: hsl(var(--muted));
}

.benefit-icon {
  color: hsl(var(--secondary));
  flex-shrink: 0;
  font-size: 1.5rem;
}

.benefit-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: 'Inter', sans-serif;
}

.benefit-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 5rem 0;
  background: linear-gradient(135deg, hsl(var(--navy-900)), hsl(var(--navy-800)));
  color: hsl(var(--primary-foreground));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: hsla(var(--primary-foreground), 0.05);
  border: 1px solid hsla(var(--primary-foreground), 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.testimonial-stars {
  color: hsl(var(--gold-500));
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.875rem;
  opacity: 0.7;
}

.testimonials-summary {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(var(--primary-foreground), 0.1);
}

.summary-stars {
  color: hsl(var(--gold-500));
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ===== Contact Section ===== */
.contact {
  padding: 5rem 0;
  background: hsl(var(--navy-900));
  color: hsl(var(--primary-foreground));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-desc {
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: hsla(var(--secondary), 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--secondary));
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.875rem;
  opacity: 0.7;
}

.contact-value {
  font-weight: 600;
}

.contact-form-wrapper {
  background: hsla(var(--primary-foreground), 0.05);
  border: 1px solid hsla(var(--primary-foreground), 0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsla(var(--primary-foreground), 0.1);
  border: 1px solid hsla(var(--primary-foreground), 0.2);
  border-radius: var(--radius);
  color: hsl(var(--primary-foreground));
  font-size: 1rem;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: hsla(var(--primary-foreground), 0.5);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

/* ===== Footer ===== */
.site-footer {
  background: hsl(var(--navy-900));
  color: hsl(var(--primary-foreground));
  padding: 4rem 0 2rem;
  border-top: 1px solid hsla(var(--primary-foreground), 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  opacity: 0.7;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: hsl(var(--secondary));
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  opacity: 0.7;
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: hsl(var(--secondary));
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsla(var(--primary-foreground), 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-legal a:hover {
  opacity: 1;
}

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: hsl(var(--card));
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
}

.modal-features {
  list-style: none;
  margin: 1rem 0;
}

.modal-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-features li::before {
  content: "✓";
  color: hsl(var(--secondary));
  font-weight: bold;
}

.modal-pricing {
  margin-top: 1.5rem;
  padding: 1rem;
  background: hsl(var(--muted));
  border-radius: var(--radius);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: hsl(var(--primary-foreground));
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: hsl(var(--navy-900));
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid hsla(var(--primary-foreground), 0.1);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: hsl(var(--primary-foreground));
  padding: 0.75rem;
  border-radius: var(--radius);
  transition: background 0.3s ease;
}

.mobile-menu a:hover {
  background: hsla(var(--primary-foreground), 0.1);
}
