/* Custom CSS */
:root {
  --header-bg: #191966;
  --footer-bg: #e2d9cb;
  --body-bg: #ffffff;
  --text-color: #1a1a1a;
  --nav-color: #ffffff;
  --link-color: #1a1a1a;
  --heading-font: 'Cormorant Garamond', Georgia, serif;
  --body-font: 'Cormorant Garamond', Georgia, serif;
  --icon-color: #333333;
  --icon-border: #333333;
}

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

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--body-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--link-color);
}

header {
  background-color: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 13vh;
  padding: 0 50px;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo-link img {
  height: 5.5vh;
  min-height: 42px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

nav ul li a {
  color: var(--nav-color);
  text-decoration: none;
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 400;
}

nav ul li a:hover,
nav ul li a.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--nav-color);
  font-size: 26px;
  cursor: pointer;
  padding: 5px;
}

main {
  flex: 1;
}

footer {
  background-color: var(--footer-bg);
  padding: 40px 20px 50px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--icon-border);
  border-radius: 50%;
  color: var(--icon-color);
  text-decoration: none;
  font-size: 17px;
  transition: opacity 0.2s;
}

.social-icons a:hover {
  opacity: 0.6;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.home-content h1 {
  font-family: var(--heading-font);
  font-size: 52px;
  font-weight: 400;
  margin-bottom: 12px;
}

.home-content h2 {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 12px;
}

.home-content p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.services-content {
  padding: 70px 50px 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.services-content > h1 {
  font-family: var(--heading-font);
  font-size: 48px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 50px;
}

.services-intro {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 70px;
}

.service-item {
  display: flex;
  gap: 60px;
  margin-bottom: 70px;
  align-items: flex-start;
}

.service-name {
  flex: 0 0 42%;
}

.service-name h2 {
  font-family: var(--heading-font);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
}

  .serviceBottomMargin {
    margin-bottom: 70px;
  }

  .serviceFlexA {
    /* Use a flexbox layout */
    display: flex;

    /* Make a horizontal flexbox (the default) */
    flex-direction: row;

    gap: 60px;

    /* The important part: vertically center the items */
    align-items: center;
}

.service-details {
  flex: 1;
}

.service-details > p {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.service-details ul {
  padding-left: 22px;
}

.service-details ul li {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.about-content {
  display: flex;
  gap: 60px;
  padding: 70px 50px 80px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: flex-start;
  width: 100%;
}

.about-image {
  flex: 0 0 42%;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  flex: 1;
  padding-top: 0px;
}

.about-headline {
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 20px;
}

.about-body {
  font-size: 17px;
  line-height: 1.6;
}

.about-body a {
  color: var(--link-color);
}

.contact-content {
  padding: 70px 20px 80px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.contact-content h1 {
  font-family: var(--heading-font);
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 35px;
}

.contact-intro {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-section {
  margin-bottom: 35px;
}

.contact-label {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 5px;
}

.contact-section a {
  color: var(--link-color);
  font-size: 17px;
}

@media (max-width: 768px) {
  header {
    min-height: 10vh;
    padding: 0 25px;
  }

  .logo-link img {
    height: 4.5vh;
    min-height: 35px;
  }

  .hamburger {
    display: block;
  }

  nav {
    position: relative;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    background-color: var(--header-bg);
    padding: 25px 35px;
    gap: 18px;
    z-index: 1000;
    min-width: 160px;
  }

  nav ul.open {
    display: flex;
  }

  .home-content {
    padding: 60px 25px;
  }

  .home-content h1 {
    font-size: 36px;
  }

  .home-content h2 {
    font-size: 22px;
  }

  .services-content {
    padding: 50px 25px 60px;
  }

  .services-content > h1 {
    font-size: 36px;
    margin-bottom: 35px;
  }

  .services-intro {
    margin-bottom: 50px;
  }


  .service-item {
    flex-direction: row;
    gap: 20px;
    margin-bottom: 50px;
  }

  .service-name {
    flex: none;
  }

  .service-name h2 {
    font-size: 30px;
  }

  .about-content {
    flex-direction: column;
    padding: 40px 25px 60px;
    gap: 40px;
  }

  .about-image {
    flex: none;
    max-width: 100%;
  }

  .about-headline {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .about-text {
    padding-top: 0;
  }

  .contact-content {
    padding: 50px 25px 60px;
  }

  .contact-content h1 {
    font-size: 36px;
  }
}
