/* ========================================
   MALEKOS MEDIA
   COMPLETE STYLESHEET
======================================== */

:root {
  --brown: #513627;
  --brown-dark: #352219;
  --brown-light: #6a4938;

  --blue: #eef9fc;
  --blue-deep: #dff3f8;

  --white: #ffffff;
  --text: #3f3028;
  --muted: #74665e;
  --line: #d8e5e8;

  --shadow: 0 16px 45px rgba(53, 34, 25, 0.09);
}


/* ========================================
   RESET AND GENERAL STYLES
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0.7rem 0 1.4rem;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

h2 {
  margin: 0.4rem 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h3 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.25rem;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  line-height: 1.8;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--brown);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--blue-deep);
}


/* ========================================
   HEADER AND NAVIGATION
======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  min-height: 76px;
  padding: 1rem clamp(1.25rem, 6vw, 5rem);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;

  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 10px;
  background: var(--brown);
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.site-nav > a:not(.button) {
  font-weight: 600;
}

.site-nav > a:not(.button):hover {
  color: var(--brown-light);
}

.menu-button {
  display: none;

  padding: 0.6rem 1rem;

  background: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;

  font: inherit;
  cursor: pointer;
}


/* ========================================
   BUTTONS
======================================== */

.button {
  display: inline-block;

  padding: 0.85rem 1.25rem;

  background: var(--brown);
  color: var(--white);
  border: 1px solid var(--brown);
  border-radius: 999px;

  font-weight: 700;
  text-align: center;
  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  transform: translateY(-2px);
}

.button-small {
  padding: 0.65rem 1rem;
}

.button-outline {
  background: var(--white);
  color: var(--text);
  border-color: var(--line);
}

.button-outline:hover {
  background: var(--blue);
  color: var(--brown);
  border-color: var(--brown);
}

.button-light {
  background: var(--white);
  color: var(--brown);
  border-color: var(--white);
}

.button-light:hover {
  background: var(--blue-deep);
  color: var(--brown-dark);
  border-color: var(--blue-deep);
}


/* ========================================
   HERO
======================================== */

.hero {
  padding:
    clamp(4rem, 9vw, 8rem)
    clamp(1.25rem, 7vw, 6rem);

  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 4rem;

  background:
    radial-gradient(
      circle at 85% 20%,
      var(--blue-deep),
      transparent 34%
    );
}

.hero-copy {
  max-width: 850px;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;

  margin-top: 1.8rem;
}

.hero-card {
  padding: 2rem;

  background: var(--blue);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 2rem;
}

.hero-card ul {
  margin: 1.4rem 0 0;
  padding: 0;

  list-style: none;
}

.hero-card li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.hero-card li::before {
  content: "●";
  margin-right: 0.65rem;
  color: var(--brown);
}


/* ========================================
   GENERAL SECTIONS
======================================== */

.section {
  padding:
    clamp(4rem, 8vw, 7rem)
    clamp(1.25rem, 7vw, 6rem);
}

.blue-section {
  background: var(--blue);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;

  margin-bottom: 2.5rem;
}

.section-heading > p {
  max-width: 470px;
  color: var(--muted);
}


/* ========================================
   HOMEPAGE PACKAGE BUTTON SECTION
======================================== */

.package-choice-heading {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.package-choice-heading > p:last-child {
  max-width: 650px;
  margin: 1rem auto 0;
  color: var(--muted);
}

/*
  The 40px gap creates visible separation
  between buttons on a full screen.
*/

.package-buttons {
  max-width: 850px;
  margin: 3rem auto 0;

  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
}

.package-button {
  flex: 1;
  min-width: 240px;
  padding: 1.1rem 1.75rem;
  text-align: center;
}


/* ========================================
   ABOUT PREVIEW
======================================== */

.about-heading {
  align-items: center;
}

.about-summary {
  max-width: 520px;
}

.about-summary p {
  color: var(--muted);
}

.about-summary .button {
  margin-top: 0.75rem;
}


/* ========================================
   PACKAGES PAGE INTRODUCTION
======================================== */

.page-hero {
  padding:
    clamp(4rem, 9vw, 7rem)
    clamp(1.25rem, 7vw, 6rem);

  text-align: center;

  background:
    radial-gradient(
      circle at 50% 20%,
      var(--blue-deep),
      transparent 48%
    );
}

.page-hero h1 {
  max-width: 900px;
  margin: 0.7rem auto 1.2rem;
}

.page-hero > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto;

  color: var(--muted);
  font-size: 1.15rem;
}


/* ========================================
   WEBSITE PACKAGE CARDS
======================================== */

.website-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.price-card {
  padding: 1.75rem;

  display: flex;
  flex-direction: column;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.price-card.featured {
  border: 2px solid var(--brown);
  transform: translateY(-8px);
}

.price {
  margin: 0.5rem 0 1rem;

  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 700;
}

.price span {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
}

.price-card > p:not(.price, .eyebrow),
.price-card li {
  color: var(--muted);
}

.price-card ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.price-card > a {
  margin-top: auto;
  color: var(--brown);
  font-weight: 700;
}


/* ========================================
   WEBSITE UPDATE PLAN
======================================== */

.care-plan {
  margin-top: 1.5rem;
  padding: 1.6rem 1.8rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;

  background: var(--brown);
  color: var(--white);
  border-radius: 18px;
}

.care-plan h3,
.care-plan p {
  margin-top: 0;
}

.care-plan p {
  margin-bottom: 0;
}

.care-plan .price {
  white-space: nowrap;
}

.care-plan .price span {
  color: var(--blue-deep);
}


/* ========================================
   MEDIA PACKAGE CARDS
======================================== */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.media-card {
  padding: 2rem;

  display: flex;
  flex-direction: column;

  background: var(--blue);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.media-card > p:not(.price, .eyebrow),
.media-card li {
  color: var(--muted);
}

.media-card ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.media-card .button {
  align-self: flex-start;
  margin-top: auto;
}


/* ========================================
   PACKAGE PAGE CALL TO ACTION
======================================== */

.package-cta {
  padding:
    clamp(4rem, 8vw, 6rem)
    clamp(1.25rem, 7vw, 6rem);

  background: var(--brown);
  color: var(--white);
  text-align: center;
}

.package-cta h2 {
  margin-bottom: 1rem;
}

.package-cta > p:not(.eyebrow) {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}


/* ========================================
   CONTACT
======================================== */

.contact {
  padding:
    clamp(4rem, 8vw, 7rem)
    clamp(1.25rem, 7vw, 6rem);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);

  background: var(--brown);
  color: var(--white);
}

.contact h2 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.contact-form {
  display: grid;
  gap: 0.6rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem;

  background: var(--white);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;

  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--blue-deep);
  outline-offset: 2px;
}

.contact-form button {
  margin-top: 0.8rem;
}

.form-note {
  margin: 0.5rem 0 0;
}


/* ========================================
   FOOTER
======================================== */

footer {
  padding: 2rem clamp(1.25rem, 7vw, 6rem);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;

  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
}


/* ========================================
   SPLIT SCREEN AND TABLETS
======================================== */

@media (max-width: 900px) {

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;

    display: none;
    padding: 1.25rem;

    background: var(--white);
    border-bottom: 1px solid var(--line);

    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .button {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .about-heading {
    align-items: flex-start;
  }

  /*
    Buttons stack with 28px between them
    when the browser is in split-screen mode.
  */

  .package-buttons {
    max-width: 100%;
    flex-direction: column;
    gap: 28px;
  }

  .package-button {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .website-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

}


/* ========================================
   SMALL PHONES
======================================== */

@media (max-width: 550px) {

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .site-header {
    min-height: 70px;
  }

  .site-nav {
    top: 70px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .package-buttons {
    gap: 24px;
    margin-top: 2.25rem;
  }

  .package-button {
    padding: 1rem 1.25rem;
  }

  .care-plan {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .media-card .button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* ========================================
   MEET THE MALEKOS CAROUSEL
======================================== */

.malekos-section {
  background: var(--white);
}

.malekos-heading {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.malekos-carousel {
  max-width: 950px;
  margin: 0 auto;
}

.malekos-carousel-window {
  overflow: hidden;

  background: var(--blue);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.malekos-carousel-track {
  display: flex;
  transition: transform 0.7s ease-in-out;
}

.malekos-slide {
  min-width: 100%;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
}

.malekos-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.malekos-photo-placeholder,
.malekos-photo {
  width: 230px;
  height: 230px;

  margin-bottom: 1.75rem;

  border-radius: 18px;
}

.malekos-photo-placeholder {
  display: grid;
  place-items: center;

  background: var(--brown);
  color: var(--white);

  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
}

.malekos-photo {
  display: block;
  object-fit: cover;
  object-position: center;
}

.malekos-profile-card h3 {
  margin: 0 0 0.5rem;

  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.malekos-profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 600;
}

.malekos-carousel-controls {
  margin-top: 1.75rem;

  display: flex;
  justify-content: center;
  gap: 1rem;
}

.malekos-arrow {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  background: var(--brown);
  color: var(--white);
  border: 0;
  border-radius: 50%;

  font-size: 2rem;
  line-height: 1;
  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.malekos-arrow:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
}

.meet-malekos-action {
  margin-top: 2.25rem;
  text-align: center;
}

.meet-malekos-action .button {
  min-width: 220px;
}


/* MOBILE */

@media (max-width: 550px) {
  .malekos-slide {
    padding: 2.5rem 1rem;
  }

  .malekos-photo-placeholder,
  .malekos-photo {
    width: 180px;
    height: 180px;
  }

  .malekos-photo-placeholder {
    font-size: 3rem;
  }

  .malekos-arrow {
    width: 48px;
    height: 48px;
  }

  .meet-malekos-action .button {
    width: 100%;
  }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .malekos-carousel-track {
    transition: none;
  }
}

/* ========================================
   ABOUT PAGE
======================================== */

.about-page-hero {
  padding:
    clamp(4.5rem, 10vw, 8rem)
    clamp(1.25rem, 7vw, 6rem);

  text-align: center;

  background:
    radial-gradient(
      circle at 50% 20%,
      var(--blue-deep),
      transparent 50%
    );
}

.about-page-hero h1 {
  max-width: 950px;
  margin: 0.7rem auto 1.4rem;
}

.about-page-hero > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 auto;

  color: var(--muted);
  font-size: 1.15rem;
}


/* TEAM SECTION */

.about-team-section {
  background: var(--white);
}

.about-team-heading {
  max-width: 750px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-team-grid {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 2rem;
}

.about-person-card {
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: var(--blue);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.about-person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(53, 34, 25, 0.14);
}

.about-person-photo {
  width: 100%;
  height: 340px;
  display: block;

  background: var(--blue-deep);
  object-fit: cover;
  object-position: center;
}

.about-person-content {
  padding: 2rem;

  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.about-person-content h3 {
  margin: 0 0 0.35rem;

  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 1.15;
}

.about-person-title {
  margin-bottom: 1.25rem;

  color: var(--brown);
  font-weight: 700;
}

.about-person-bio {
  margin-bottom: 0;
  color: var(--muted);
}


/* APPROACH SECTION */

.about-approach-section {
  background: var(--blue);
}

.about-approach-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-approach-content > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}


/* ABOUT PAGE BUTTONS */

.about-page-actions {
  margin-top: 2rem;

  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}


/* TABLETS AND SPLIT SCREEN */

@media (max-width: 950px) {
  .about-team-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .about-person-photo {
    height: 420px;
  }
}


/* PHONES */

@media (max-width: 550px) {
  .about-person-photo {
    height: 320px;
  }

  .about-person-content {
    padding: 1.5rem;
  }

  .about-page-actions {
    flex-direction: column;
  }

  .about-page-actions .button {
    width: 100%;
  }
}

/* JOSHUA PHOTO FIT */

.joshua-photo {
  width: 100%;
  height: 340px;
  padding: 0;

  object-fit: cover;
  object-position: center 28%;

  background: var(--blue-deep);
}