/* Base styles for Veterinaria Dr. VET website
 *
 * This stylesheet defines the colour palette, typography, layout and responsive
 * behaviour for the entire website. Consistent use of variables and
 * modular classes makes it easy to maintain and extend. The design aims to
 * communicate professionalism and warmth while ensuring accessibility.
 */

/* CSS variables to centralise colours and spacing */
:root {
  --primary-colour: #1e7e34; /* deep green conveying health and trust */
  --secondary-colour: #0077b6; /* vibrant blue for highlights */
  --light-colour: #ffffff; /* white for clean backgrounds */
  --dark-colour: #032b43; /* navy tone for text */
  --muted-colour: #f5f7fa; /* light grey for section backgrounds */
  --accent-colour: #38b6ff; /* light blue accent */
  --max-width: 1200px;
  --transition-speed: 0.3s;
}

/* Global resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--light-colour);
  color: var(--dark-colour);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container to wrap content and align centrally */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

/* Navigation bar */
header {
  background-color: var(--light-colour);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-colour);
  text-decoration: none;
  display: flex;
  align-items: center;
}

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

.nav-links li a {
  color: var(--dark-colour);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-speed);
}

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

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--light-colour);
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
}

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  background-color: var(--primary-colour);
  color: var(--light-colour);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-speed);
}

.btn:hover {
  background-color: var(--secondary-colour);
}

/* Section headers */
section h2 {
  font-size: 2rem;
  color: var(--primary-colour);
  margin-bottom: 1rem;
  text-align: center;
}

section p.section-intro {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}

/* About section */
.about {
  background-color: var(--muted-colour);
  padding: 4rem 0;
}

.about-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.about-grid img {
  flex: 1 1 350px;
  max-width: 500px;
  width: 100%;
  border-radius: 8px;
}

.about-grid .about-text {
  flex: 1 1 350px;
}

.about-grid .about-text h3 {
  margin-bottom: 1rem;
  color: var(--secondary-colour);
  font-size: 1.5rem;
}

.about-grid .about-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

/* Services section */
.services {
  padding: 4rem 0;
}

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

.service-card {
  background-color: var(--muted-colour);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 3px solid var(--primary-colour);
}

.service-card h3 {
  color: var(--secondary-colour);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Opinions / Testimonials */
.testimonials {
  background-color: var(--muted-colour);
  padding: 4rem 0;
}

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

.testimonial-card {
  background-color: var(--light-colour);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-colour);
  position: absolute;
  top: -20px;
  left: 20px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--dark-colour);
}

.rating {
  color: #ffc107; /* gold for star rating */
  margin-bottom: 1rem;
}

/* Contact section */
.contact {
  padding: 4rem 0;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1 1 300px;
  color: #333;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--secondary-colour);
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-info a {
  color: var(--primary-colour);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  flex: 1 1 350px;
  background-color: var(--muted-colour);
  padding: 2rem;
  border-radius: 8px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
}

.map-container {
  flex: 1 1 350px;
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: var(--dark-colour);
  color: var(--light-colour);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: auto;
}

footer p {
  font-size: 0.9rem;
}

/* Fixed call to action button for mobile */
.call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--secondary-colour);
  color: var(--light-colour);
  padding: 0.75rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 999;
}

.call-button:hover {
  background-color: var(--primary-colour);
}

.call-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Floating WhatsApp button */
.whatsapp-button {
  position: fixed;
  bottom: 80px; /* slightly above the call button */
  right: 20px;
  background-color: #25d366; /* WhatsApp green */
  color: var(--light-colour);
  padding: 0.75rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 999;
}

.whatsapp-button:hover {
  background-color: #1ebe57;
}

.whatsapp-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .navbar-brand {
    font-size: 1.2rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .btn-group {
    flex-direction: column;
  }
}
/* Logo inside the navbar */
.navbar-brand .logo {
  height: 40px;
  width: 40px;
  margin-right: 0.5rem;
}

/* Footer social icons */
.footer-social {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-social img.social-icon {
  width: 32px;
  height: 32px;
  margin: 0 0.5rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-colour);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--light-colour);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0.5rem 0;
    text-align: center;
  }
  .menu-toggle {
    display: block;
  }
  /* reduce nav font size on small screens */
  .navbar-brand {
    font-size: 1.2rem;
  }
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}
