/* =========================================================
   ANA LEAL CONSULTING
   COMPLETE STYLESHEET
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
  --green: #17352d;
  --green-light: #274a3f;
  --cream: #f7f4ee;
  --cream-soft: #f3eee6;
  --warm: #ebe4da;
  --brown: #9a6b42;
  --text: #1c211f;
  --muted: #66645f;
  --white: #ffffff;
  --border: #ded9d1;
}


/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

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


/* =========================================================
   HEADER
========================================================= */

.header {
  width: 100%;
  height: 82px;

  padding: 0 5.5%;

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

  background: #faf8f4;

  position: relative;
  z-index: 50;
}

.logo {
  display: flex;
  flex-direction: column;

  color: #111716;

  font-size: 22px;
  line-height: 1;

  letter-spacing: 7px;
}

.logo small {
  margin-top: 7px;

  font-size: 8px;
  letter-spacing: 6px;
}

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

  gap: 38px;

  font-size: 13px;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;

  background: var(--text);

  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.linkedin {
  font-size: 17px;
  font-weight: 600;
}


/* =========================================================
   COMMON
========================================================= */

.eyebrow {
  margin-bottom: 13px;

  color: #76583f;

  font-size: 11px;
  font-weight: 500;

  letter-spacing: 1.7px;

  text-transform: uppercase;
}

.button {
  min-height: 44px;

  padding: 12px 23px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 27px;

  font-size: 13px;

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

.button-primary {
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
}

.button-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}

.button-secondary {
  color: var(--text);

  background: rgba(247, 244, 238, 0.55);

  border: 1px solid var(--text);
}

.button-secondary:hover {
  color: var(--white);
  background: var(--text);
}


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

.hero {
  position: relative;

  width: 100%;
  height: 500px;

  overflow: hidden;

  background-color: var(--cream-soft);

  background-image: url("./hero-ana-leal.png");

  background-repeat: no-repeat;

  /*
    The clean image fills the complete hero.
    No separate right-hand image column.
  */
  background-size: cover;

  /*
    Shifts the photo slightly toward the right so the
    laptop/plant remain visible and the left stays calm.
  */
  background-position: 58% center;
}


/*
   Cream overlay:
   strong behind the text,
   then gradually disappears into the photograph.

   IMPORTANT: there is no hard vertical division.
*/

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(243, 238, 230, 0.99) 0%,
    rgba(243, 238, 230, 0.98) 23%,
    rgba(243, 238, 230, 0.92) 32%,
    rgba(243, 238, 230, 0.72) 40%,
    rgba(243, 238, 230, 0.42) 47%,
    rgba(243, 238, 230, 0.16) 54%,
    rgba(243, 238, 230, 0) 62%
  );
}


/* HERO CONTENT */

.hero-content {
  position: relative;
  z-index: 3;

  width: 50%;
  max-width: 720px;

  height: 500px;

  padding: 42px 0 42px 5.5%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}


/* EYEBROW */

.hero .eyebrow {
  margin-bottom: 13px;
}


/* HEADLINE */

.hero h1 {
  width: 100%;
  max-width: 660px;

  color: var(--green);

  font-size: clamp(48px, 3.7vw, 62px);

  line-height: 1.01;

  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--brown);
}


/* DESCRIPTION */

.hero-description {
  width: 100%;
  max-width: 565px;

  margin: 21px 0 24px;

  color: var(--text);

  font-size: 16px;

  line-height: 1.45;
}


/* HERO BUTTONS */

.hero-buttons {
  display: flex;
  align-items: center;

  gap: 16px;

  flex-wrap: wrap;
}


/*
   The HTML still contains hero-visual.
   It is intentionally hidden because the PNG is now
   the background of the complete hero.
*/

.hero-visual {
  display: none;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
  padding: 48px 5% 58px;

  background: #faf8f4;
}

.section-intro {
  margin-bottom: 25px;
}

.section-intro h2 {
  margin-bottom: 7px;

  font-size: 39px;

  line-height: 1.08;
}

.section-intro > p:last-child {
  max-width: 680px;

  font-size: 15px;

  line-height: 1.45;
}

.service-grid {
  display: grid;

  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 13px;
}

.service-card {
  min-width: 0;
  min-height: 255px;

  padding: 21px 19px;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.25);

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

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

  background: var(--white);
}

.service-icon {
  width: 43px;
  height: 43px;

  margin-bottom: 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #896344;

  background: #f1ebe3;

  font-size: 19px;
}

.service-card h3 {
  margin-bottom: 11px;

  font-size: 17px;

  line-height: 1.1;
}

.service-card p {
  color: var(--muted);

  font-size: 12.5px;

  line-height: 1.45;
}

.service-card > a {
  margin-top: auto;

  padding-top: 15px;

  font-size: 20px;
}


/* =========================================================
   WORK WITH ME
========================================================= */

.work {
  width: 100%;

  display: grid;

  grid-template-columns: 58% 42%;
}

.work-main {
  padding: 50px 6%;

  background: #eee8df;
}

.work-main h2 {
  max-width: 700px;

  margin-bottom: 15px;

  font-size: 40px;

  line-height: 1.06;
}

.work-intro {
  max-width: 650px;

  margin-bottom: 19px;

  font-size: 15px;

  line-height: 1.45;
}

.work ul {
  margin: 20px 0 26px;

  list-style: none;
}

.work li {
  margin: 8px 0;

  font-size: 13.5px;
}

.work li::before {
  content: "✓";

  width: 29px;

  display: inline-block;

  color: var(--green);

  font-size: 16px;
}

.engagements {
  padding: 50px 7%;

  color: var(--white);

  background: var(--green);
}

.engagements .eyebrow {
  color: #c7bfb3;
}

.engagement {
  padding: 13px 0;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.27);
}

.engagement:last-child {
  border-bottom: none;
}

.engagement h3 {
  margin-bottom: 3px;

  font-size: 17px;

  line-height: 1.2;
}

.engagement p {
  font-size: 12.5px;

  line-height: 1.4;

  opacity: 0.82;
}


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

.about {
  padding: 38px 6%;

  display: grid;

  grid-template-columns: 245px minmax(0, 1fr);

  gap: 38px;

  align-items: center;

  background: #faf8f4;
}

.about-photo {
  width: 245px;
  height: 220px;

  overflow: hidden;

  background: linear-gradient(
    135deg,
    #d8ccbe,
    #b29f89
  );
}

.about-photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;
}

.about-content {
  max-width: 920px;
}

.about-content h2 {
  margin-bottom: 7px;

  font-size: 37px;

  line-height: 1.05;
}

.about-content p {
  margin-bottom: 8px;

  font-size: 13.5px;

  line-height: 1.45;
}

.about-content .button {
  margin-top: 5px;
}


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

.contact {
  padding: 75px 7%;

  text-align: center;

  background: var(--warm);
}

.contact h2 {
  margin-bottom: 15px;

  font-size: 45px;

  line-height: 1.08;
}

.contact > p:not(.eyebrow) {
  max-width: 650px;

  margin: 0 auto 25px;

  font-size: 15px;

  line-height: 1.5;
}


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

footer {
  padding: 35px 6%;

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

  color: var(--white);

  background: var(--green);

  font-size: 11px;
}

.footer-logo {
  letter-spacing: 4px;
}

.footer-logo span {
  opacity: 0.65;
}


/* =========================================================
   SMALL LAPTOP
========================================================= */

@media (max-width: 1200px) {

  .nav {
    gap: 23px;
  }

  .hero {
    background-position: 62% center;
  }

  .hero-content {
    width: 56%;
  }

  .hero h1 {
    font-size: 54px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

  .header {
    padding: 0 7%;
  }

  .nav {
    display: none;
  }


  /* HERO */

  .hero {
    height: 540px;

    background-position: 65% center;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(243, 238, 230, 0.98) 0%,
      rgba(243, 238, 230, 0.96) 38%,
      rgba(243, 238, 230, 0.80) 55%,
      rgba(243, 238, 230, 0.40) 75%,
      rgba(243, 238, 230, 0.10) 100%
    );
  }

  .hero-content {
    width: 72%;
    max-width: 620px;

    height: 540px;

    padding: 45px 0 45px 7%;
  }

  .hero h1 {
    font-size: 49px;
  }

  .hero-description {
    max-width: 490px;

    font-size: 15px;
  }


  /* SERVICES */

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* WORK */

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

  .work-main,
  .engagements {
    padding: 48px 7%;
  }


  /* ABOUT */

  .about {
    grid-template-columns: 210px minmax(0, 1fr);

    gap: 28px;
  }

  .about-photo {
    width: 210px;
    height: 210px;
  }


  /* FOOTER */

  footer {
    flex-direction: column;

    gap: 14px;

    text-align: center;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  /* HEADER */

  .header {
    height: 72px;
  }

  .logo {
    font-size: 17px;

    letter-spacing: 5px;
  }

  .logo small {
    font-size: 7px;

    letter-spacing: 4px;
  }

  .linkedin {
    font-size: 16px;
  }


  /* HERO */

  .hero {
    height: auto;
    min-height: 570px;

    background-position: 70% center;
  }

  .hero::before {
    background: rgba(243, 238, 230, 0.88);
  }

  .hero-content {
    width: 100%;
    max-width: none;

    height: auto;
    min-height: 570px;

    padding: 43px 7%;
  }

  .hero h1 {
    max-width: 100%;

    font-size: 40px;

    line-height: 1.04;

    letter-spacing: -0.5px;
  }

  .hero-description {
    max-width: 100%;

    margin: 20px 0 23px;

    font-size: 15px;
  }

  .hero-buttons {
    width: 100%;

    flex-direction: column;

    align-items: stretch;

    gap: 11px;
  }

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


  /* SERVICES */

  .services {
    padding: 45px 7% 50px;
  }

  .section-intro h2 {
    font-size: 33px;
  }

  .section-intro > p:last-child {
    font-size: 14px;
  }

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

  .service-card {
    min-height: 215px;
  }


  /* WORK */

  .work-main,
  .engagements {
    padding: 45px 7%;
  }

  .work-main h2 {
    font-size: 35px;
  }


  /* ABOUT */

  .about {
    padding: 43px 7%;

    grid-template-columns: 1fr;

    gap: 24px;
  }

  .about-photo {
    width: 100%;
    max-width: 260px;

    height: 250px;
  }

  .about-content h2 {
    font-size: 35px;
  }


  /* CONTACT */

  .contact {
    padding: 62px 7%;
  }

  .contact h2 {
    font-size: 37px;
  }


  /* FOOTER */

  footer {
    padding: 31px 7%;
  }
}
