/* ============================================
   INK ACTIVATED - NOTARY BUSINESS WEBSITE
   Professional Law-Firm Style Design
   ============================================ */

/* CSS Variables - Color Palette */
:root {
  --navy: #1F2A44;
  --blue: #2E5AAC;
  --slate: #5B677A;
  --light-gray: #F4F6F8;
  --white: #FFFFFF;
  --accent-gold: #C9A227;
  --text-dark: #1F2A44;
  --text-light: #5B677A;
  --border-color: #E0E4E8;
  --shadow: rgba(31, 42, 68, 0.1);
  --shadow-hover: rgba(31, 42, 68, 0.15);
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 20px;
  --container-max-width: 1280px;
  --border-radius: 4px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--blue);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Full-width sections */
section {
  padding: var(--section-padding);
}

.section-full {
  width: 100%;
}

/* Header / Navigation */
header {
  background-color: var(--navy);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
  overflow: visible;
}

header.scrolled {
  box-shadow: 0 4px 20px var(--shadow);
}

nav {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0.75rem 20px;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-left {
  justify-content: flex-end;
  padding-right: 2rem;
}

.nav-right {
  justify-content: flex-start;
  padding-left: 2rem;
}

.nav-left li + li::before,
.nav-right li + li::before {
  content: "|";
  color: rgba(255, 255, 255, 0.55);
  margin-right: 1.25rem;
  margin-left: 0.25rem;
}

.nav-left a,
.nav-right a {
  font-weight: 500;
  color: var(--white);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.nav-left a:hover,
.nav-right a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-brand {
  position: static;
  transform: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
  transition: transform 0.3s ease;
}

.nav-brand:hover {
  transform: scale(1.05);
}

.nav-logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  display: block;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 0.25rem;
}

.dropdown-toggle.active::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  min-width: 220px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 0.75rem 1.5rem;
  display: block;
  color: var(--text-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--light-gray);
  color: var(--blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
  padding: 0.5rem;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background-color: var(--blue);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent-gold);
  color: var(--white);
}

.btn-accent:hover {
  background-color: #B8941F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 100px 20px;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 0;
  color: var(--text-light);
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* Services Grid */
.services-section {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--navy);
}

.section-header p {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-4px);
  border-color: var(--blue);
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-card .btn {
  width: 100%;
}

/* Coverage Area */
.coverage-section {
  background-color: var(--light-gray);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.coverage-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  color: var(--text-dark);
}

/* How It Works */
.how-it-works {
  background-color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-section {
  background-color: var(--light-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px var(--shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--navy);
}

.testimonial-author::before {
  content: '— ';
}

/* FAQ Accordion */
.faq-section {
  background-color: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--blue);
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0;
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 0 1.5rem 0;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Contact Form */
.contact-section {
  background-color: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-info-item a {
  color: var(--blue);
  font-weight: 600;
}

.contact-form {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 90, 172, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* About Page */
.about-hero {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 80px 20px;
  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 4rem;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
}

.value-card h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

/* Services Page */
.services-hero {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 80px 20px;
  text-align: center;
}

.pricing-section {
  background-color: var(--light-gray);
  margin-top: 4rem;
}

.pricing-table {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
}

.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row.header {
  background-color: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.pricing-service {
  font-weight: 600;
  color: var(--text-dark);
}

.pricing-fee {
  color: var(--blue);
  font-weight: 600;
}

.reminder-box {
  background-color: var(--light-gray);
  border-left: 4px solid var(--blue);
  padding: 1.5rem;
  margin-top: 3rem;
  border-radius: var(--border-radius);
}

.reminder-box h4 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 4rem 20px 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .nav-left li + li::before,
  .nav-right li + li::before {
    display: none;
  }

  .nav-left li,
  .nav-right li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-left li:last-child,
  .nav-right li:last-child {
    border-bottom: none;
  }

  .nav-left a,
  .nav-right a {
    padding: 1rem 0;
    color: var(--white);
    width: 100%;
  }

  .nav-brand {
    order: -1;
    width: 100%;
    margin-bottom: 1rem;
    justify-content: center;
  }

  .nav-inner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--navy);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-inner.active {
    transform: translateX(0);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
    margin-top: 0;
    display: none;
    width: 100%;
    left: 0;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu a {
    color: var(--white);
  }

  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    order: -1;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .pricing-row.header {
    display: none;
  }

  .pricing-service::before {
    content: 'Service: ';
    font-weight: 700;
    color: var(--navy);
  }

  .pricing-fee::before {
    content: 'Fee: ';
    font-weight: 700;
    color: var(--navy);
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 60px 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 60px 20px;
    min-height: auto;
  }


  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility */
*:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
