/* ==========================================================================
   Morphis Veterinary Services, Inc. -- site styles
   Plain CSS, no build step. Edit variables below to re-theme the whole site.
   ========================================================================== */

:root {
  --color-primary: #5c3a24;      /* dark walnut brown, like the office trim */
  --color-primary-dark: #3a2415;
  --color-accent: #b3814c;       /* warm oak accent */
  --color-bg: #ffffff;           /* white walls */
  --color-bg-alt: #f5f0e8;       /* soft warm off-white for alt sections */
  --color-text: #2a2019;
  --color-text-muted: #6b5c4e;
  --color-border: #e3dcd0;
  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(42, 32, 25, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary);
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Visually hidden but still readable by screen readers / SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.9rem 1.25rem;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 68px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
}

.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-fb-link:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
}

.nav-badge {
  height: 72px;
  width: 72px;
  object-fit: contain;
  display: block;
}

/* ---------- Intro banner: team photo + description ---------- */
.intro-banner {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0 2.5rem;
  text-align: center;
}

.team-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  margin: 0 auto 1.25rem;
}

.intro-banner p {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-text);
}

.intro-banner .hero-actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.intro-banner .btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
}

.intro-banner .btn-outline:hover {
  background: rgba(47, 111, 94, 0.1);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 42rem;
  color: #eef4f1;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.page-hero {
  background: var(--color-bg-alt);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  color: var(--color-primary-dark);
}

.page-hero p {
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #2b2110;
}

.btn-primary:hover {
  background: #d6912e;
  color: #2b2110;
}

.btn-outline {
  border-color: #fff;
  color: #fff !important;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Sections ---------- */
section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

h2 {
  color: var(--color-primary-dark);
  font-size: 1.6rem;
}

.section-intro {
  max-width: 42rem;
  color: var(--color-text-muted);
}

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

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

.card h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
}

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

/* ---------- Two-column layout (e.g. content + Facebook feed) ---------- */
.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

@media (max-width: 780px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- Facebook feed panel ---------- */
.fb-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.fb-panel h2 {
  font-size: 1.2rem;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fb-embed-wrap {
  overflow-x: auto;
}

.fb-fallback {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ---------- Info list (hours, contact) ---------- */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

/* ---------- Placeholder callout ---------- */
.placeholder {
  background: #fff7e6;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #6b5320;
  margin: 1rem 0;
}

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ---------- Contact form (front-end only) ---------- */
form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #d9e6e1;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

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

.footer-grid h3 {
  color: #fff;
  font-size: 1rem;
  margin-top: 0;
}

.site-footer a {
  color: #d9e6e1;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: #a9bdb5;
}
