/* ===================================
   Livesay & Associates Ins. Services
   Classic & Elegant Style
   =================================== */

/* CSS Custom Properties */
:root {
  --color-teal: #0d7377;
  --color-teal-dark: #095e61;
  --color-teal-light: #14a3a8;
  --color-slate: #2c3e50;
  --color-slate-light: #3d5166;
  --color-slate-dark: #1a252f;
  --color-cream: #f8f6f3;
  --color-warm-gray: #e8e4df;
  --color-text: #2c3e50;
  --color-text-light: #5a6c7d;
  --color-white: #ffffff;
  --color-border: #d4d0cb;
  
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(44, 62, 80, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.1);
  --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.12);
  --shadow-xl: 0 16px 48px rgba(44, 62, 80, 0.15);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-teal-dark);
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-slate-dark);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 246, 243, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(248, 246, 243, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-slate-dark);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.logo-icon {
  color: var(--color-teal);
}

.logo-accent {
  color: var(--color-teal);
}

.logo:hover {
  color: var(--color-slate-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-teal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-slate);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-slate);
  border-color: var(--color-slate);
}

.btn-outline:hover {
  background: var(--color-slate);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-teal);
  border-color: var(--color-white);
}

.btn-white:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Section Tags */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(13, 115, 119, 0.08);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: var(--color-slate-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.7;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-teal);
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(13, 115, 119, 0.08);
  border-radius: 100px;
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-slate-dark);
}

.text-teal {
  color: var(--color-teal);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.trust-item svg {
  color: var(--color-teal);
}

/* Hero Image */
.hero-image {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.hero-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--color-teal);
  opacity: 0.1;
  border-radius: var(--radius-xl);
  z-index: -1;
}

.hero-stats {
  position: absolute;
  bottom: -30px;
  left: -30px;
  display: flex;
  gap: 16px;
}

.stat-card {
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* Hero Pattern */
.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(13, 115, 119, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ===================================
   Services Section
   =================================== */
.services {
  padding: 120px 0;
  background: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

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

.service-card {
  padding: 40px 32px;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(13, 115, 119, 0.2);
  background: var(--color-white);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 115, 119, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-teal);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-teal);
  color: var(--color-white);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-slate-dark);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-teal);
}

.service-link:hover {
  gap: 10px;
}

/* ===================================
   About Section
   =================================== */
.about {
  padding: 120px 0;
  background: var(--color-cream);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 115, 119, 0.2), transparent);
  border-radius: var(--radius-xl);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-teal);
  color: var(--color-white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
}

.about-text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.about-feature {
  display: flex;
  gap: 16px;
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 115, 119, 0.1);
  border-radius: 50%;
  color: var(--color-teal);
}

.about-feature strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-slate-dark);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===================================
   Why Us Section
   =================================== */
.why-us {
  padding: 120px 0;
  background: var(--color-slate-dark);
  color: var(--color-white);
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-us-text .section-tag {
  background: rgba(13, 115, 119, 0.3);
}

.why-us-text .section-title {
  color: var(--color-white);
}

.why-us-text .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.why-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.why-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-teal-light);
  margin-bottom: 12px;
  line-height: 1;
}

.why-item h4 {
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.why-us-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
  padding: 120px 0;
  background: var(--color-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  padding: 40px;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(13, 115, 119, 0.15);
}

.testimonial-quote {
  color: var(--color-teal);
  margin-bottom: 20px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  color: var(--color-teal);
  opacity: 0.5;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--color-slate-dark);
  font-size: 0.95rem;
}

.author-detail {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
  padding: 120px 0;
  background: var(--color-cream);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 20px;
}

.contact-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 115, 119, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-teal);
}

.contact-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-slate-dark);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-item a {
  color: var(--color-teal);
}

.contact-item a:hover {
  color: var(--color-teal-dark);
  text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-white);
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: var(--color-slate-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(13, 115, 119, 0.1);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 48px;
}

.form-success.active {
  display: block;
}

.success-icon {
  color: var(--color-teal);
  margin-bottom: 20px;
}

.form-success h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--color-slate-dark);
}

.form-success p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===================================
   Map Section
   =================================== */
.map-section {
  background: var(--color-slate-dark);
}

.map-container {
  opacity: 0.9;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  filter: grayscale(30%);
}

/* ===================================
   Footer
   =================================== */
.footer {
  padding: 80px 0 0;
  background: var(--color-slate-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-teal-light);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-teal-light);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--color-teal-light);
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
  .hero-container,
  .about-container,
  .why-us-content,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-image img,
  .about-image img,
  .why-us-image img {
    height: 500px;
  }
  
  .hero-stats {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .hero-headline {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .services-grid,
  .testimonials-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 32px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-headline {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .service-card {
    padding: 28px;
  }
  
  .testimonial-card {
    padding: 28px;
  }
}
