/* ============================================================
   GASING VETERINARY HOSPITAL — Main Stylesheet
   Palette: Deep Teal #0d4d4d | Ivory #f7f3ee | Gold #c9922a
   Type: Playfair Display (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --teal:   #0d4d4d;
  --teal-light: #145f5f;
  --ivory:  #f7f3ee;
  --ivory-dark: #ede8e0;
  --gold:   #c9922a;
  --gold-light: #e0a83a;
  --dark:   #1a1a1a;
  --muted:  #5a6472;
  --white:  #ffffff;
  --border: #ddd6cc;
  --whatsapp: #25D366;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --container: 90%;
  --container-max: 1140px;
  --radius: 4px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- LAYOUT ---------- */
.container {
  width: var(--container);
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--teal  { background: var(--teal); color: var(--white); }
.section--dark  { background: #0a3333; color: var(--white); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  font-weight: 700;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--teal);
  margin-bottom: 16px;
}

.section--teal .section-title,
.section--dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}

.section--teal .section-subtitle { color: rgba(255,255,255,0.75); }

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.header.scrolled {
  background: var(--teal);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.logo span {
  display: block;
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

nav {
  display: flex;
  align-items: center;
  gap: 0;
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  margin-left: 0;
  background: var(--gold);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--white) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 16px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--teal);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,77,77,0.92) 0%, rgba(13,77,77,0.70) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: saturate(0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 120px 0 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  color: var(--white);
  margin-bottom: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

/* Trust bar */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-block {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: stretch;
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

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

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--teal-light);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.trust-item svg { flex-shrink: 0; }

/* ---------- SERVICES INTRO ---------- */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.service-item:first-child { border-top: 1px solid var(--border); }

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--ivory-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.service-item h3 {
  font-size: 17px;
  font-family: var(--font-serif);
  color: var(--teal);
  margin-bottom: 4px;
}

.service-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- ADVANCED SERVICES ---------- */
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.advanced-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 10px;
}

.advanced-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- EMERGENCY BANNER ---------- */
.emergency-banner {
  background: #8b1a1a;
  padding: 0;
}

.emergency-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  flex-wrap: wrap;
}

.emergency-text h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 4px;
}

.emergency-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 72px;
  color: var(--ivory-dark);
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.testimonial-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- ABOUT / HERITAGE STRIP ---------- */
.heritage-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.heritage-img-wrap {
  position: relative;
}

.heritage-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

.heritage-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--ivory);
}

.heritage-badge .badge-year {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.heritage-badge .badge-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

/* ---------- TEAM CARDS ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: var(--ivory-dark);
}

.team-img-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--ivory-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.team-info {
  padding: 24px;
}

.team-info h3 {
  font-size: 19px;
  color: var(--teal);
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.team-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- HOURS TABLE ---------- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.hours-table tr {
  border-bottom: 1px solid var(--border);
}

.hours-table td {
  padding: 12px 0;
  color: var(--dark);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--teal);
}

.hours-table tr.today td {
  color: var(--teal);
  font-weight: 600;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--ivory-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-info-item p, .contact-info-item a {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.5;
}

.map-embed {
  width: 100%;
  aspect-ratio: 4/3;
  border: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- EMERGENCY PAGE ---------- */
.emergency-hero {
  background: linear-gradient(135deg, #5a0a0a 0%, #8b1a1a 100%);
  padding: 120px 0 80px;
  text-align: center;
  color: var(--white);
}

.emergency-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  color: var(--white);
  margin-bottom: 16px;
}

.emergency-phone-block {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 32px 48px;
  display: inline-block;
  margin: 32px 0;
}

.emergency-phone-block .phone-number {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 56px);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.emergency-phone-block p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* ---------- FOOTER ---------- */
footer {
  background: #061e1e;
  color: rgba(255,255,255,0.65);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: var(--teal);
  padding: 120px 0 60px;
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
}

/* ---------- DIVIDER ---------- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0 32px;
}

/* ---------- FIND US GRID ---------- */
.find-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Consistent link style inside contact-info-item */
.contact-info-item p a {
  color: var(--dark);
  font-size: 15px;
  line-height: 1.5;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .services-intro,
  .heritage-strip,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .find-us-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Map stacks below contact info on mobile */
  .find-us-grid { direction: ltr; }
  .find-us-grid > div:last-child { order: 2; }

  .heritage-badge {
    bottom: -16px;
    right: 16px;
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--teal);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 5%;
  }

  .nav-links.open { max-height: 400px; padding: 12px 5% 20px; }

  .nav-links a {
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }

  .nav-links a:last-child { border-bottom: none; }
  .nav-links a:nth-last-child(2) { border-bottom: none; }
  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    display: block !important;
    text-align: center !important;
    padding: 12px 20px !important;
    border-radius: var(--radius) !important;
    border-bottom: none !important;
  }

  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .stat-number { font-size: 30px; }

  .trust-bar .container { gap: 24px; }

  .emergency-banner .container { flex-direction: column; align-items: flex-start; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --- WhatsApp Float Button --- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
