/*
  Modern and accessible styles for the Disinfestazione Venezia website.
  The design uses a clean layout with generous whitespace and a restrained
  colour palette inspired by the Venetian lagoon. The CSS is mobile‑first
  and progressively enhances larger screens with additional layout rules.
*/

/* Variables for colours and spacing */
:root {
  --colour-primary: #0c4a6e;      /* deep blue for headers and accents */
  --colour-secondary: #0891b2;    /* teal for buttons and highlights */
  --colour-light: #f4f7fb;        /* very light grey for backgrounds */
  --colour-dark: #021b30;         /* almost black for text */
  --colour-accent: #eab308;       /* warm gold accent */
  --max-width: 1200px;
  --header-height: 70px;
  --transition: 0.3s ease;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  line-height: 1.6;
  color: var(--colour-dark);
  background-color: var(--colour-light);
}

a {
  color: var(--colour-secondary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--colour-dark);
  color: white;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav .brand {
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  /* Prevent the site name from breaking onto multiple lines */
  white-space: nowrap;
}
nav .brand span.logo {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--colour-secondary);
  margin-right: 0.5rem;
}

nav ul {
  list-style: none;
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--colour-dark);
}
nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
nav a {
  display: block;
  padding: 1rem;
  color: white;
}
nav a:hover {
  background: var(--colour-secondary);
}

/* Hamburger button */
.menu-toggle {
  margin-left: auto;
  margin-right: 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  transition: var(--transition);
}

/* Show menu on toggle */
nav.open ul {
  display: block;
}

/* Hero section */
.hero {
  position: relative;
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  background: var(--colour-secondary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 600;
}
.btn:hover {
  background: var(--colour-accent);
  color: var(--colour-dark);
}

/* Section headings */
section {
  padding: 4rem 0;
}
section h2 {
  font-size: 2rem;
  color: var(--colour-primary);
  margin-bottom: 1rem;
}
section p.lead {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Cards for services and pests */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: var(--transition);
}
.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card h3 {
  margin-bottom: 0.5rem;
  color: var(--colour-primary);
}
.card p {
  margin-bottom: 1rem;
}
.card a {
  font-weight: 600;
  color: var(--colour-secondary);
}
.card a:hover {
  color: var(--colour-accent);
}

/* Bulleted lists */
.bullets {
  list-style: none;
  padding-left: 1rem;
}
.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--colour-secondary);
  border-radius: 50%;
}

/* FAQ section */
details {
  background: white;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--colour-primary);
}

/* Contact form */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
form label {
  font-weight: 600;
}
form input,
form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
form textarea {
  resize: vertical;
  min-height: 120px;
}
form button[type="submit"] {
  align-self: start;
}

/* Footer */
footer {
  background: var(--colour-dark);
  color: #eee;
  padding: 2rem 0;
  font-size: 0.9rem;
}
footer a {
  color: var(--colour-secondary);
}
footer .footer-cols {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Responsive design */
@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  nav ul {
    display: flex;
    position: static;
    background: none;
    height: var(--header-height);
  }
  nav li {
    border: none;
  }
  nav a {
    padding: 0 1rem;
    line-height: var(--header-height);
  }
  nav .menu-toggle {
    display: none;
  }
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero h1 {
    font-size: 3rem;
  }
}

/* Adjust the brand font size on very small screens */
@media (max-width: 360px) {
  nav .brand {
    font-size: 1rem;
  }
}