/* ==========================================================================
   The Rovervelt Pet Hotel & Spa — Shared Stylesheet
   Design direction: C2 — Fresh & Natural, Modern & Rounded
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --forest:        #2d6a4f;
  --forest-dark:   #1b4332;
  --honey:         #e09f3e;
  --honey-dark:    #c4843e;
  --slate:         #335c81;
  --soft-green:    #f0f5ec;
  --natural-white: #fffdf5;
  --white:         #ffffff;
  --dark-text:     #2c3e2d;
  --muted:         #5a7d6a;
  --light-border:  #dde5d8;

  --font-heading: 'DM Sans', 'Segoe UI', sans-serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  --max-width:   1100px;
  --radius:      12px;
  --radius-pill: 25px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--natural-white);
  color: var(--dark-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--forest);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  z-index: 999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--forest);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

h4 {
  font-size: clamp(1rem, 2vw, 1.15rem);
}

p {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section--tinted {
  background-color: var(--soft-green);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  background-color: var(--natural-white);
  border-bottom: 2px solid var(--light-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--forest-dark);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-links a.active {
  border-bottom: 2px solid var(--honey);
  padding-bottom: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--forest);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Animate toggle to X when open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Block (C2 style — rounded green block floating in page)
   -------------------------------------------------------------------------- */
.hero {
  padding: 1.5rem;
}

.hero-inner {
  background-color: var(--forest);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.hero-inner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: rgba(224, 159, 62, 0.12);
  pointer-events: none;
}

.hero-inner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-tag {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--honey);
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
  position: relative;
}

.hero h1 {
  color: var(--white);
  position: relative;
}

.hero-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  position: relative;
}

.hero-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
}

/* --------------------------------------------------------------------------
   Photo Hero Variant
   -------------------------------------------------------------------------- */
.hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
}
.hero-inner--photo {
  background: rgba(27, 67, 50, 0.78);
  border-radius: 0;
  max-width: none;
  padding: 5rem 2rem;
  margin: 0;
}
.hero-inner--photo::before,
.hero-inner--photo::after {
  display: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}

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

.btn--primary:hover {
  background-color: var(--honey-dark);
  border-color: var(--honey-dark);
}

.btn--ghost {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.btn--outline:hover {
  background-color: var(--forest);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Pills
   -------------------------------------------------------------------------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pill {
  background-color: var(--soft-green);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  transition: background-color 0.2s;
}

.pill:hover {
  background-color: var(--light-border);
}

/* --------------------------------------------------------------------------
   Pricing Tables
   -------------------------------------------------------------------------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th {
  background-color: var(--forest);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
}

.pricing-table thead tr th:first-child {
  border-top-left-radius: var(--radius);
}

.pricing-table thead tr th:last-child {
  border-top-right-radius: var(--radius);
}

.pricing-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--light-border);
}

.pricing-table tbody tr:nth-child(even) td {
  background-color: var(--soft-green);
}

.pricing-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius);
}

.pricing-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Pricing Table Helpers
   -------------------------------------------------------------------------- */
.table-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.heading-note {
  font-size: 0.7em;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Policy List (Services page)
   -------------------------------------------------------------------------- */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-list li {
  padding: 1rem 1.25rem;
  background-color: var(--white);
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Service Cards (Homepage)
   -------------------------------------------------------------------------- */
.service-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-card-img {
  width: calc(100% + 3rem);
  height: 200px;
  object-fit: contain;
  object-position: center;
  background: var(--soft-green);
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}
.service-card-price {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--honey);
}

/* --------------------------------------------------------------------------
   Promise Section (Homepage)
   -------------------------------------------------------------------------- */
.promise-section {
  background: var(--forest);
  color: var(--white);
}
.promise-section h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.promise-badge {
  font-size: 2.5rem;
  color: var(--honey);
  margin-bottom: 0.5rem;
}
.promise-text {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.promise-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.promise-pillar {
  text-align: center;
}
.promise-pillar strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--honey);
  margin-bottom: 0.25rem;
}
.promise-pillar span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   Testimonials (Homepage)
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.testimonial-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--dark-text);
  flex: 1;
}
.testimonial-card footer {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--light-border);
}
.testimonial-stars {
  color: var(--honey);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Photo Strip (Homepage)
   -------------------------------------------------------------------------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.photo-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s;
}
.photo-strip img:hover {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Photo Grid
   -------------------------------------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.photo-grid-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-grid-item:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Google Map Embed
   -------------------------------------------------------------------------- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--forest-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer h4 {
  color: var(--honey);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  transition: color 0.2s;
}

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

.footer-contact {
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--honey);
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--honey);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Responsive — 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Show nav toggle */
  .nav-toggle {
    display: flex;
  }

  /* Nav links become a dropdown */
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--natural-white);
    border-bottom: 2px solid var(--light-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 0;
    width: 100%;
    font-size: 1rem;
  }

  .nav-links a.active {
    border-bottom: none;
    color: var(--forest);
    font-weight: 700;
  }

  /* Hero adjustments */
  .hero {
    padding: 1rem 0;
  }

  .hero-inner {
    padding: 2.5rem 1.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  /* Footer: single column */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Card grid: single column */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Photo grid: smaller minimum */
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  /* Service cards: 2 columns on tablet */
  .card-grid[style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Promise pillars: 2x2 grid */
  .promise-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials: single column */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Photo strip: 3 columns */
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Responsive — 480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-inner {
    padding: 2rem 1rem;
    border-radius: 12px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .pill-row {
    justify-content: center;
  }

  /* Service cards: single column */
  .card-grid[style*="repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Promise pillars: single column */
  .promise-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Photo strip: 2 columns */
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-nav,
  .site-footer,
  .nav-toggle,
  .lightbox-overlay {
    display: none !important;
  }

  body {
    background-color: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
