/* ========================================
   South Austin Pet Clinic — Styles
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --coral: #E8725A;
  --coral-dark: #d4614a;
  --coral-light: #f5ddd6;
  --coral-bg: #fef0ed;
  --charcoal: #2D2D2D;
  --charcoal-light: #4a4a4a;
  --bg-cream: #FDF8F6;
  --bg-white: #FFFFFF;
  --text-primary: #2D2D2D;
  --text-secondary: #6B6B6B;
  --text-muted: #999999;
  --border-light: #f0e6e2;
  --shadow-sm: 0 2px 8px rgba(45, 45, 45, 0.06);
  --shadow-md: 0 4px 20px rgba(45, 45, 45, 0.08);
  --shadow-lg: 0 8px 40px rgba(45, 45, 45, 0.12);
  --shadow-coral: 0 4px 20px rgba(232, 114, 90, 0.3);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --transition: 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;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--charcoal);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  box-shadow: var(--shadow-coral);
}

.btn-coral:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 114, 90, 0.4);
}

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

.btn-outline:hover {
  background: var(--charcoal);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--coral);
  border-color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--coral-light);
  color: var(--coral-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 18px 28px;
  font-size: 17px;
}

/* ---------- Section Header ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--coral-bg);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
}

.logo-icon {
  flex-shrink: 0;
}

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

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a:not(.btn) {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal-light);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
}

.main-nav a:not(.btn):hover {
  color: var(--coral);
  background: var(--coral-bg);
}

.btn-nav {
  padding: 10px 22px !important;
  font-size: 14px !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 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);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  background: var(--bg-cream);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--coral);
  background: var(--coral-bg);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.hero-headline em {
  color: var(--coral);
  font-style: normal;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

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

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal-light);
}

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

.hero-img-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--coral);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-coral);
}

.float-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-card-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.float-card-label {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

/* ---------- Services ---------- */
.services {
  padding: 100px 0;
  background: var(--bg-white);
}

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

.service-card {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral-light);
  background: var(--bg-white);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--coral-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--coral);
}

.service-card:hover .service-icon svg {
  stroke: #fff !important;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  background: var(--bg-cream);
}

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

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: -20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-cream);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--coral-light);
  z-index: -1;
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-lead {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  background: var(--border-light);
  align-self: stretch;
}

/* ---------- Why Choose Us ---------- */
.why-us {
  padding: 100px 0;
  background: var(--bg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.why-card {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral-light);
}

.why-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 48px;
  color: var(--coral-light);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.why-card:hover .why-num {
  color: var(--coral);
}

.why-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 100px 0;
  background: var(--bg-cream);
}

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

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral-light);
}

.testimonial-quote {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 80px 0;
  background: var(--charcoal);
  overflow: hidden;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(232, 114, 90, 0.1);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(232, 114, 90, 0.08);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: #fff;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--coral-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-card a {
  color: var(--coral);
  font-weight: 600;
}

.contact-hint {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(232, 114, 90, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

/* Form success */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--coral-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.form-success p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.form-success a {
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
}

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

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
  color: var(--coral);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

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

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

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    gap: 16px;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .main-nav a:not(.btn) {
    display: block;
    padding: 12px 16px;
    font-size: 17px;
  }

  .btn-nav {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    order: -1;
  }

  .hero-float-card {
    bottom: -10px;
    left: 10px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img-secondary {
    right: 10px;
    bottom: -20px;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-content .section-tag {
    display: block;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .service-card {
    padding: 28px 22px;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }
}
