/*
 * Global styles for HOWELLS Pet Xpress.
 * The palette is inspired by the business card: a dark base with
 * metallic neutrals and a highway yellow accent. All colours and
 * spacing variables live here to make future adjustments easier.
 */

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-text: #f5f5f5;
  --color-muted: #cccccc;
  --color-accent: #f5a623; /* highway yellow */
  --color-highlight: #ffd65c;
  --font-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Basic typography */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

/* Layout containers */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* Header and navigation */
header {
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

.nav li {
  display: inline-block;
}

.nav a {
  display: block;
  padding: 1rem 0.5rem;
  color: var(--color-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  border-color: var(--color-accent);
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, #0a0a0a 0%, #131313 100%);
}

.hero img {
  max-width: 300px;
  margin-bottom: 1rem;
  width: 80%;
  height: auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 640px;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #0a0a0a;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--color-highlight);
  color: #000;
}

/* Service cards */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.service-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 350px;
  text-align: left;
}

.service-card h3 {
  margin-top: 0;
  color: var(--color-accent);
}

.service-card ul {
  list-style: disc;
  margin-left: 1.2rem;
  padding: 0;
}

.service-card ul li {
  margin-bottom: 0.5rem;
}

/* Testimonials carousel */
.testimonials {
  margin: 3rem 0;
  position: relative;
}

.testimonial-item {
  display: none;
  text-align: center;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.testimonial-item.active {
  display: block;
}

.testimonial-item p {
  font-style: italic;
}

.testimonial-item .author {
  margin-top: 1rem;
  font-weight: 600;
}

/* Forms */
form {
  display: grid;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

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

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form input[type="date"],
form textarea,
form select {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid #333;
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

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

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

.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Footer */
footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid #222;
  padding: 2rem 0;
}

footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

footer .footer-nav {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

footer .footer-nav li a {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

table th,
table td {
  padding: 0.8rem;
  border-bottom: 1px solid #333;
  text-align: left;
}

table th {
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .services {
    flex-direction: column;
    align-items: stretch;
  }
}