:root {
  --cream: #F5F1EA;
  --navy: #0A3551;
  --navy-soft: #0d415f;
  --shadow: rgba(0,0,0,0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
}

/* NAVBAR */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 600;
}

.nav-links a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 18px;
  transition: 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-links .active {
  text-decoration: underline;
}

/* HERO */
.hero {
  padding: 110px 40px 90px;
  max-width: 1100px;
  margin: auto;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero p {
  max-width: 560px;
  font-size: 18px;
  margin-bottom: 34px;
  color: #1c1c1c;
}

/* BUTTONS */
.btn {
  background: var(--navy);
  color: white;
  padding: 14px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: 0.25s ease;
  margin-right: 14px;
}

.btn:hover {
  transform: scale(1.06);
  box-shadow: 0px 8px 22px rgba(0,0,0,0.18);
}

.btn {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 22px;
}

.btn:hover {
  background: var(--navy);
  color: white;
  transform: scale(1.06);
}

/* SECTIONS */
.section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 40px;
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  margin-bottom: 18px;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-box {
  background: white;
  padding: 26px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: 0.25s;
  font-size: 15px;
}

.service-box:hover {
  transform: scale(1.02);
  box-shadow: 0px 12px 30px var(--shadow);
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.price-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: 0.25s ease;
}

.price-box:hover {
  transform: scale(1.05);
  box-shadow: 0px 18px 40px rgba(0,0,0,0.20);
  border-color: rgba(0,0,0,0.18);
}

.price-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.price-num {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy-soft);
}

/* PORTFOLIO PAGE */
.portfolio-section-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin: 42px 0 12px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.portfolio-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.portfolio-item img {
  width: 100%;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px;
  background: rgba(10, 53, 81, 0.82);
  color: white;
  opacity: 0;
  transition: 0.25s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: 0px 16px 35px rgba(0,0,0,0.12);
}

/* CONTACT */
.contact-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 16px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px;
  margin-top: 60px;
  color: var(--navy);
  opacity: 0.7;
}

/* MOBILE */
@media (max-width: 1000px) {
  .services-grid,
  .pricing-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .nav {
    padding: 18px 20px;
  }

  .section {
    padding: 0 20px;
  }
}

/* MOBILE IMPROVEMENTS */
@media (max-width: 900px) {

  /* GENERAL */
  body {
    text-align: center;
  }

  .nav {
    padding: 16px 18px;
  }

  .logo {
    font-size: 22px;
  }

  .nav-links a {
    font-size: 14px;
    margin-left: 14px;
  }

  /* HERO */
  .hero {
    padding: 80px 20px 70px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 14px;
    text-align: center;
  }

  .hero p {
    font-size: 16px;
    max-width: 90%;
    margin: 0 auto 26px;
    text-align: center;
  }

  .btn {
    display: block;
    width: 90%;
    margin: 10px auto;
    font-size: 16px;
    padding: 14px 0;
  }

  /* SECTIONS */
  .section h2 {
    font-size: 28px;
    text-align: center;
  }

  .section p {
    text-align: center;
    font-size: 16px;
  }

  /* GRID LAYOUTS */
  .services-grid,
  .pricing-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-box,
  .price-box,
  .portfolio-item {
    text-align: center;
  }

  .price-box h3 {
    font-size: 20px;
  }

  .price-num {
    font-size: 24px;
  }

  /* PORTFOLIO IMAGE OVERLAY */
  .portfolio-overlay {
    font-size: 14px;
    padding: 14px;
  }

}
