/* ============================================
   ZooGrand — Veterinary clinic site styles
   Clear structure, no animations
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --color-bg: #1c1c1c;
  --color-bg-elevated: #252525;
  --color-bg-dark: #141414;
  --color-bg-footer: #141414;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.72);
  --color-text-inverse: #ffffff;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-focus: rgba(201, 162, 39, 0.6);
  --color-accent: #c9a227;
  --color-accent-hover: #d4af37;
  --color-button-bg: #c9a227;
  --color-button-text: #1c1c1c;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1224px;
  --spacing-unit: 16px;
  --spacing-section: 48px;
  --radius-button: 50px;
  --radius-input: 10px;
  --radius-card: 16px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.25);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
}

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

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

/* ---------- Layout ---------- */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.section {
  padding: var(--spacing-section) 0;
}

.section--light {
  background: var(--color-bg-elevated);
  color: var(--color-text);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section--footer {
  background: var(--color-bg-footer);
  color: var(--color-text-inverse);
  padding: 40px var(--spacing-unit);
  border-top: 1px solid var(--color-border);
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-unit) 0;
  min-height: 80px;
  box-sizing: border-box;
}

.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: var(--spacing-unit);
  min-height: 48px;
}

.site-logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.site-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
}

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  flex-wrap: nowrap;
}

.site-nav-list a {
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav-list a:hover {
  color: var(--color-accent);
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .site-header .site-container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
  }

  .site-nav.is-open {
    max-height: 400px;
  }

  .site-nav-list {
    flex-direction: column;
    gap: 0;
    padding: 1rem var(--spacing-unit);
    width: 100%;
  }

  .site-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .site-nav-list li:last-child {
    border-bottom: none;
  }

  .site-nav-list a {
    display: block;
    padding: 1rem 0;
    color: var(--color-text);
  }

  .site-nav-list a:hover,
  .site-nav-list a.is-current {
    color: var(--color-accent);
  }
}

.site-nav-list a.is-current {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.page-hero {
  background: #000;
  color: var(--color-text-inverse);
  padding: 72px 0 88px;
  text-align: center;
}

.page-hero__logo {
  display: block;
  margin: 0 auto 2rem;
  max-width: 280px;
  width: 100%;
  height: auto;
}

.page-hero__title {
  margin: 0 0 0.5em;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  margin: 0 0 1.5em;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--color-button-bg);
  color: var(--color-button-text);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- Section headings ---------- */
.section__title {
  margin: 0 0 0.5em;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.section__intro {
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

.section--dark .section__title,
.section--footer .section__title {
  color: var(--color-text-inverse);
}

.section--dark .section__intro,
.section--footer .section__intro {
  color: var(--color-text-muted);
}

/* ---------- Services grid (home & services page) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid .service-card:last-child:nth-child(3n+1) {
    grid-column: 2;
  }
}

.service-card {
  background: var(--color-bg-elevated);
  padding: 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.service-card__title {
  margin: 0 0 0.5em;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.service-card__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.service-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-unit);
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

/* ---------- Contact form ---------- */
.contact-section .site-container {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-section .site-container {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .contact-section__header {
    grid-column: 1 / -1;
  }

  .contact-form {
    height: 100%;
    min-height: 0;
  }

  .contact-image {
    height: 100%;
    min-height: 0;
  }

  .contact-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

.contact-section__header .section__title {
  margin-bottom: 0.5rem;
}

.contact-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 0 0 1rem;
}

.contact-phones .footer-phone {
  color: var(--color-text);
}

.contact-form {
  background: var(--color-bg-elevated);
  padding: 2rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.125rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-bg);
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

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

.contact-form .btn {
  margin-top: 0.5rem;
}

.contact-image img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

/* ---------- Footer ---------- */
.site-footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer h5 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.site-footer a[href^="mailto"],
.site-footer a[href^="tel"] {
  color: var(--color-text-inverse);
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
}

.footer-phone:hover {
  color: var(--color-accent);
}

.footer-phone svg {
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-flex;
  color: var(--color-text-inverse);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.site-footer-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ---------- Contact page: map block ---------- */
.location-block {
  margin-top: 2rem;
}

.location-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--color-text);
}

.location-block p {
  margin: 0 0 0.25rem;
  color: var(--color-text-muted);
}

.location-block .map-frame {
  width: 100%;
  height: 300px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-top: 1rem;
  background: var(--color-bg-elevated);
}

.map-frame--link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.map-frame--link:hover {
  background: var(--color-bg-dark);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.map-frame__label {
  font-weight: 500;
  font-size: 1rem;
}

/* ---------- Page content (services, reviews, contact) ---------- */
.page-main {
  flex: 1;
  min-height: 0;
}

.content-block {
  max-width: 720px;
}

.content-block h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5em;
}

.content-block p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

.content-block h1,
.content-block h2 {
  color: var(--color-text);
}

/* ---------- Reviews page cards ---------- */
.reviews-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.review-card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent), rgba(201, 162, 39, 0.4));
  border-radius: var(--radius-card) 0 0 var(--radius-card);
}

.review-card__body {
  flex: 1;
  padding-left: 0.5rem;
}

.review-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.review-card__author {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.reviews-cta {
  margin: 2.5rem 0 0.75rem;
  text-align: center;
}

.reviews-cta-secondary {
  margin: 0;
  text-align: center;
}

