/* ==========================================================================
   RUSTY'S CALM CAT CARE — MAIN STYLESHEET
   ==========================================================================
   This file is organized top to bottom in the order things usually appear
   on a page: layout basics, then header/nav, buttons, footer, then each
   page's own section styles, then responsive rules at the very bottom.

   Every page on the site links this ONE file (see the <link> tag in each
   .html file's <head>). The four files in css/tokens/ are pulled in via
   @import below — they hold the raw values (colors, fonts, spacing) and
   this file uses them to build actual visual components.
   ========================================================================== */

@import 'tokens/colors.css';
@import 'tokens/typography.css';
@import 'tokens/spacing.css';
@import 'tokens/base.css';


/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */

/* .container centers content and stops it from stretching edge-to-edge on
   wide screens. Any section that should line up with the nav/footer wraps
   its content in a <div class="container">. */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-12);
}


/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-standard);
}
.btn:hover {
  text-decoration: none; /* buttons shouldn't underline on hover the way text links do */
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-on-rust);
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  color: var(--text-on-rust);
}
.btn-primary:active {
  background: var(--brand-primary-active);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}
.btn-outline:hover {
  background: var(--rust-100);
  color: var(--brand-primary);
}

/* A smaller button used inside the site header/nav */
.btn-small {
  padding: 10px 22px;
  font-size: var(--text-sm);
}


/* --------------------------------------------------------------------------
   SITE HEADER / NAVIGATION
   Same markup is repeated at the top of every page (see index.html etc).
   -------------------------------------------------------------------------- */

.site-header {
  padding: var(--space-5) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--text-primary);
}
.logo:hover {
  color: var(--text-primary); /* the logo shouldn't turn teal like a normal link on hover */
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.logo-wordmark {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-secondary);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}
.site-nav a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}
/* The current page's nav link is marked with aria-current="page" in the
   HTML (see any .html file's <nav>). This is the accessible, standard way
   to say "you are here" — screen readers announce it, and we can style it
   here without needing a JavaScript "active class" toggle. */
.site-nav a[aria-current="page"] {
  color: var(--brand-primary);
}

/* Hamburger toggle, hidden until the mobile breakpoint below shows it and
   collapses .site-nav into a dropdown. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 1px;
}


/* --------------------------------------------------------------------------
   SITE FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface-inverse);
  color: var(--text-on-teal);
  padding: var(--space-12) 0;
  margin-top: var(--space-20);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}
.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.footer-badges .badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-on-teal);
}

.footer-signature {
  font-family: var(--font-script);
  font-size: var(--text-xl);
  color: var(--rust-200);
}

.footer-staff-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  text-decoration: none;
}
.footer-staff-link:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}


/* --------------------------------------------------------------------------
   BADGES
   Small rounded pills used for credentials ("Emergency Vet Tech", etc.)
   Add a second class (badge-teal / badge-green / badge-gold / badge-brick /
   badge-black) to set the color.
   -------------------------------------------------------------------------- */

.badge-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
}
.badge-teal {
  background: var(--teal-500);
  color: var(--text-on-teal);
}
.badge-green {
  background: var(--green-700);
  color: var(--cream-50);
}
.badge-gold {
  background: var(--amber-500);
  color: var(--text-on-rust);
}
.badge-brick {
  background: var(--brick-500);
  color: var(--text-on-rust);
}
.badge-black {
  background: var(--ink-900);
  color: var(--cream-50);
}


/* --------------------------------------------------------------------------
   PHOTO GALLERY
   A grid of candid Rusty photos on the About page. Unlike .hero-photo and
   .about-photo (which are sized for one specific spot), gallery photos are
   all the same square-ish aspect ratio so the grid stays tidy regardless
   of each source photo's original dimensions.
   -------------------------------------------------------------------------- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}


/* --------------------------------------------------------------------------
   HOME PAGE — hero section
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-12) var(--space-20);
}

.hero-content {
  flex: 1;
}

.wordmark-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--surface-inverse);
  padding: var(--space-10) var(--space-12);
}

.hero-icon {
  height: 116px;
  width: auto;
  object-fit: contain;
  transform: translateY(14px);
}
.hero-icon-flipped {
  transform: scaleX(-1) translateY(14px);
}

.hero-wordmark {
  height: 140px;
  width: auto;
  object-fit: contain;
}

.hero-kicker {
  font-family: var(--font-script);
  font-size: var(--text-xl);
  color: var(--brand-primary);
  margin-bottom: var(--space-2);
}

.hero-content h1 {
  font-size: var(--text-4xl);
  max-width: 520px;
}

.hero-content p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-top: var(--space-5);
  max-width: 480px;
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.hero-photo {
  flex: 1;
  width: 100%;
  height: 440px;
  object-fit: cover; /* crops the photo to fill the box instead of stretching/squishing it */
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}


/* --------------------------------------------------------------------------
   HOME PAGE — testimonial band
   -------------------------------------------------------------------------- */

.testimonial-band {
  background: var(--surface-inverse);
  padding: var(--space-16) var(--space-12);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-10);
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--text-on-teal);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--leading-snug);
  text-align: center;
}

.testimonial-attribution {
  margin-top: var(--space-4);
  color: var(--rust-200);
  font-weight: var(--weight-bold);
  text-align: center;
}

.testimonial-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.testimonial-photos img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

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


/* --------------------------------------------------------------------------
   HOME PAGE — feature sections (sitter intro, differentiators)
   -------------------------------------------------------------------------- */

.feature-section {
  padding: var(--space-16) 0;
}

.feature-section-title {
  font-size: var(--text-xl);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.sitter-intro {
  display: flex;
  gap: var(--space-10);
  align-items: center;
  flex-wrap: wrap;
}

.sitter-intro-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.sitter-intro-text {
  flex: 1;
  min-width: 260px;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
}

.diff-card h3 {
  font-size: var(--text-md);
  margin-bottom: 4px;
}

.diff-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}


/* --------------------------------------------------------------------------
   ABOUT PAGE
   -------------------------------------------------------------------------- */

.about-layout {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-8);
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-photo {
  width: 340px;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-photo-wide {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-text {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.about-text > p {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.about-text h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.about-text .about-text-body {
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}


/* --------------------------------------------------------------------------
   CALLOUT BOXES
   A colored, left-bordered box used for policy notes, form confirmations,
   and the travel fee notice. Pair .callout with a status modifier class.
   -------------------------------------------------------------------------- */

.callout {
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid;
}
.callout-title {
  font-weight: var(--weight-extrabold);
  font-size: var(--text-xs);
}
.callout-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 4px;
}

.callout-info {
  background: var(--status-info-bg);
  border-color: var(--status-info);
}
.callout-info .callout-title {
  color: var(--status-info);
}

.callout-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning);
}


/* --------------------------------------------------------------------------
   POLICIES PAGE
   -------------------------------------------------------------------------- */

.policy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-12) var(--space-20);
}

.policy-section {
  margin-top: var(--space-8);
}
.policy-section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.policy-section p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.policy-list p {
  font-size: var(--text-sm);
  margin: 0;
  color: var(--text-primary);
}


/* --------------------------------------------------------------------------
   CONTACT PAGE — form
   -------------------------------------------------------------------------- */

.contact-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-12) var(--space-20);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.hp-field {
  position: absolute;
  left: -5000px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--text-primary);
  color-scheme: light; /* stops browsers from auto-inverting form fields in dark mode, which was making the placeholder text render white-on-white */
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.field textarea {
  resize: vertical; /* lets the visitor drag the box taller, but not wider */
}
/* :focus-visible only shows the focus ring for keyboard users (Tab key),
   not for a mouse click — this keeps the page tidy for mouse users while
   staying accessible for keyboard/screen-reader users. */
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

.contact-page .btn {
  align-self: flex-start;
}


/* --------------------------------------------------------------------------
   RESPONSIVE
   One breakpoint (900px) is enough for a site this size: above it, the
   layout is desktop-width multi-column; below it, everything stacks to a
   single column for tablets/phones.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   SOL MAJESTIC FOOTER BADGE
   Credit badge linking out to the design service that built this site.
   Values are hardcoded per the Sol Majestic brand spec (not site tokens) —
   see assets/sol majestic/Sol Majestic footer badge/README.md.
   The "Sol M" pixel font is licensed ONLY for rendering this badge's brand
   text — see assets/fonts/SolM-LICENSE.md. Don't reuse it elsewhere.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Sol M';
  src: url('../assets/fonts/SolM.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.sm-badge-wrap {
  display: flex;
  justify-content: center;
  padding: 28px;
}
.sm-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 8px;
  border-radius: 999px;
  background: #0B0E33;
  border: 1px solid #262C5C;
  transition: border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sm-badge-inner:hover {
  border-color: #FF0089;
  box-shadow: 0 0 18px rgba(255, 0, 137, 0.35);
}
.sm-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  background-image:
    repeating-linear-gradient(180deg,
      transparent 0%, transparent 52%,
      #05061C 52%, #05061C 54.5%,
      transparent 54.5%, transparent 63%,
      #05061C 63%, #05061C 66%,
      transparent 66%, transparent 76%,
      #05061C 76%, #05061C 79.5%,
      transparent 79.5%, transparent 90%,
      #05061C 90%, #05061C 94%,
      transparent 94%),
    linear-gradient(180deg, #00E5FF 0%, #D1FFFF 34%, #FF0089 100%);
  transition: box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sm-badge-tagline {
  font: 600 11px/1 'Chakra Petch', 'Rajdhani', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EAF6FF;
}
.sm-badge-brand {
  display: block;
  margin-top: 3px;
  font: 700 13px/1.2 'Sol M', 'Silkscreen', 'Press Start 2P', monospace;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: #00E5FF;
}
.sm-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.sm-badge-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sm-badge-cta.is-revealed {
  max-width: 200px;
  opacity: 1;
}
.sm-badge-cta-divider {
  width: 1px;
  align-self: stretch;
  background: #262C5C;
}
.sm-badge-cta-text {
  font: 600 11px/1.2 'Chakra Petch', 'Rajdhani', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF0089;
  white-space: nowrap;
}


@media (max-width: 900px) {
  .container,
  .hero,
  .about-layout,
  .policy-page,
  .contact-page {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .hero {
    flex-direction: column;
  }
  .hero-photo {
    width: 100%;
    height: 280px;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }
  .header-inner .btn-primary.btn-small {
    order: 3;
  }
  .site-nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .site-nav.is-open {
    max-height: 400px;
  }
  .site-nav a {
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border-subtle);
  }

  .about-photo {
    width: 100%;
    height: 320px;
  }

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