/*
  VetHomopath Website Styles
  A calm, modern design inspired by natural colours and holistic healing.
  This stylesheet defines variables for colours and applies responsive layouts
  for an engaging user experience on any device.
*/

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafaf6;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  margin-bottom: 0.5rem;
  color: #2a3d45;
}

p {
  margin-bottom: 1rem;
  color: #444;
  font-size: 1rem;
}

/* Colour palette */
:root {
  --primary: #6f9ba5;      /* teal blue */
  --primary-dark: #4f737c;
  --secondary: #9abf9d;    /* soft green */
  --accent: #bfae9e;       /* warm beige */
  --light: #ffffff;
  --dark: #2a3d45;
  --gray: #e6e9e6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header */
#header {
  background: var(--light);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.navbar a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover, .navbar a.active {
  color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.primary-btn {
  background-color: var(--primary);
  color: #fff;
}

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

.appointment-btn {
  background-color: var(--secondary);
  color: var(--dark);
}

.appointment-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--light);
  margin-top: 4.5rem; /* space for fixed header */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #f5f5f5;
  margin-bottom: 2rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* About */
.about {
  background-color: var(--light);
}

.about p {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  text-align: center;
}

/* Services */
.services {
  background-color: var(--gray);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Animals */
.animals {
  background-color: var(--light);
}

.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.animal-card {
  background: var(--gray);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.animal-card:hover {
  transform: translateY(-5px);
}

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

/* Books */
.books {
  background-color: var(--gray);
}

.books-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.book-item {
  background: var(--light);
  padding: 1rem;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.book-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.book-item p {
  font-size: 0.9rem;
  color: #555;
}

/* Appointment */
.appointment {
  background: var(--light);
}

.appointment-form {
  max-width: 700px;
  margin: 2rem auto 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.appointment-form .form-group {
  display: flex;
  flex-direction: column;
}

.appointment-form .form-group.full {
  grid-column: 1 / -1;
}

.appointment-form label {
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.appointment-form button {
  grid-column: 1 / -1;
  width: fit-content;
  justify-self: center;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #fff;
  padding-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--secondary);
}

.footer p, .footer a {
  color: #f0f0f0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer a:hover {
  text-decoration: underline;
}

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

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  background: var(--primary-dark);
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--light);
    width: 200px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .navbar.open ul {
    max-height: 500px;
  }
  .navbar ul li {
    padding: 0.8rem 1rem;
  }
  .hamburger {
    display: flex;
  }
  .appointment-form {
    grid-template-columns: 1fr;
  }
}

/* --- Dropdown Navbar Enhancements --- */
.navbar { position: relative; }
.menu { list-style: none; display: flex; gap: 1rem; align-items: center; }
.menu > li { position: relative; }
.menu a { text-decoration: none; padding: .75rem 0.5rem; display: block; }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,.08); border-radius: 12px; padding: .5rem 0; z-index: 1000; }
.dropdown-content li a { padding: .6rem 1rem; }
.dropdown:hover > .dropdown-content { display: block; }
.nav-toggle { display: none; border: none; background: transparent; font-size: 1.5rem; }
@media (max-width: 900px){
  .menu { flex-direction: column; align-items: flex-start; display: none; background: #fff; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem; border-bottom: 1px solid #eee; }
  .menu.open { display: flex; }
  .dropdown-content { position: static; box-shadow: none; border-radius: 0; }
  .nav-toggle { display: block; margin-left: auto; }
}
.page-content { padding: 2rem 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; margin: 2rem auto; }
.card { background:#fff; border:1px solid #eee; border-radius:16px; padding:1rem; box-shadow:0 6px 20px rgba(0,0,0,.04); }
.btn-link { font-weight:600; }
