/*
Navigation Bar
*/

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  box-shadow: 0 2px 8px rgba(243, 212, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px clamp(10px, 4vw, 10%);
  z-index: 1000;
  transition: background 0.3s ease;
}

nav .logo {
  margin-right: 3px;
  width: 80px;
  height: auto;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

/* Hover underline */

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ff7f50;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #ff7f50;
}

/* Offset body for fixed nav */

body {
  padding-top: 100px;
}

/*
Global Reset & Typography
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: white;
  color: black;
  line-height: 1.6;
}

/* Headings */

h1,
h2,
h3 {
  margin-bottom: 12px;
  line-height: 1.2;
  text-align: center;
}

h2 {
  font-size: 2rem;
}

/* Paragraph readability */

p {
  line-height: 1.6;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* Automatic vertical rhythm */

section > * + * {
  margin-top: 14px;
}

/*
Section Layout
*/

section {
  min-height: 30vh;
  padding: 60px 10%;
  transition: all 0.4s ease;
}

/*
Hero Section
*/

.hero {
  background-color: white;
  color: black;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
}

.hero h2 {
  font-size: 2.5rem;
}

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

.hero button {
  margin-top: 10px;
  padding: 10px 25px;
  font-size: 1rem;
  background: #000000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.hero button:hover {
  background: #e0d8d5;
}

/*
About Section
*/

.about {
  background: #ffffff;
  color: #222;
  text-align: center;
}

.about .content {
  max-width: 700px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* LIST ALIGNMENT FIX */

.about ul,
.services ul {
  list-style-position: inside;
  text-align: left;
  display: inline-block;
  margin: 20px auto;
  padding: 0;
}

.about li,
.services li {
  line-height: 1.6;
}

.about li + li,
.services li + li {
  margin-top: 6px;
}

/*
Services Section
*/

.services {
  background-color: white;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 77px;
}

.services h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* Service paragraph */

.services p {
  max-width: 400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Service cards */

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  background: white;
  padding: 30px;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.service-card h3 {
  margin-bottom: 10px;
  color: #050505;
}

/*
Privacy Policy Section
*/

.privacy-policy {
  background-color: white;
  color: black;
  text-align: center;
}

/* Headings aligned with readable width */

.privacy-policy h2,
.privacy-policy h3 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Paragraph width */

.privacy-policy p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Ordered and unordered lists */

.privacy-policy ul,
.privacy-policy ol {
  list-style-position: inside;
  text-align: left;
  display: inline-block;
  margin: 20px auto;
  padding: 0;
  max-width: 700px;
}

/* List item spacing */

.privacy-policy li {
  line-height: 1.6;
}

.privacy-policy li + li {
  margin-top: 6px;
}

/*
Contact Section
*/

.contact {
  background-color: white;
  color: black;
  text-align: center;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.contact textarea {
  resize: none;
  height: 120px;
}

.contact button {
  padding: 12px 25px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.contact button:hover {
  background: #000000;
}

/*
Responsive adjustments
*/

@media (max-width: 900px) {

  nav ul {
    gap: 18px;
  }

}

@media (max-width: 700px) {

  nav ul {
    gap: 12px;
  }

  section {
    padding: 40px 6%;
  }

}

@media (max-width: 600px) {

  nav .logo {
    width: 50px;
  }

}

@media (max-width: 420px) {

  nav .logo {
    width: 42px;
  }

  nav ul {
    gap: 10px;
    font-size: 0.9rem;
  }

  .service-cards {
    flex-direction: column;
  }

}