/* ============================================
   Amalfi Coast Explorer - Custom CSS
   Created by ChatGPT (Original for coursework)
   ============================================ */

/* Reset default spacing for consistency */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body and base text */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fffdf9;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* -----------------------------
   Header & Navigation
----------------------------- */
.site-header {
  background: linear-gradient(135deg, #037c73, #00a698);
  color: #fff;
  padding: 0.75rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-title {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.5rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  transition: background 0.2s ease-in-out;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background-color: rgba(255,255,255,0.2);
}

/* -----------------------------
   Hero Section
----------------------------- */
.hero {
  text-align: center;
  margin-top: 1.5rem;
}

.hero h2 {
  font-size: 1.6rem;
  color: #024e47;
  margin-bottom: 0.5rem;
}

.hero p {
  color: #555;
}

.hero img {
  margin-top: 1rem;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

/* -----------------------------
   Card Grid
----------------------------- */
.cards {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin-top: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.card h3 {
  color: #04665e;
  margin-bottom: 0.25rem;
}

.card p {
  color: #444;
  font-size: 0.95rem;
}

/* -----------------------------
   Buttons / Links
----------------------------- */
a.cta,
button {
  background-color: #037c73;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  display: inline-block;
  transition: background 0.2s ease-in-out;
  font-weight: 500;
}

a.cta:hover,
button:hover {
  background-color: #02645d;
}

/* -----------------------------
   Forms
----------------------------- */
.contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 600px;
  margin: 1.5rem auto;
}

.contact-form label {
  font-weight: 600;
  color: #024e47;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00a698;
  border-color: #00a698;
}

/* -----------------------------
   Footer
----------------------------- */
.site-footer {
  background: #f3f3f3;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}

/* -----------------------------
   Accessibility: Skip Link
----------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.skip-link:focus {
  top: 10px;
  left: 10px;
}

/* -----------------------------
   Responsive Design
----------------------------- */
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero h2 {
    font-size: 2rem;
  }
}
