/* =========================================================
   YASIN MOUSSAOUI REAL ESTATE
   Main Stylesheet
========================================================= */


/* =========================================================
   01. DESIGN SYSTEM / VARIABLES
========================================================= */

:root {
  /* Colors */
  --color-background: #f4f2ed;
  --color-background-soft: #ebe8e1;
  --color-dark: #171716;
  --color-dark-soft: #242422;
  --color-text: #1b1b19;
  --color-muted: #77756f;
  --color-light-text: #eeece6;
  --color-border: rgba(27, 27, 25, 0.18);
  --color-light-border: rgba(238, 236, 230, 0.2);

  /* Typography */
  --font-sans: "DM Sans", sans-serif;
  --font-serif: "Playfair Display", serif;

  /* Layout */
  --page-padding: clamp(24px, 5vw, 80px);
  --section-padding: clamp(90px, 11vw, 170px);

  /* Motion */
  --transition: 500ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   02. RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
}


/* =========================================================
   03. GLOBAL TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
}

h1,
h2 {
  letter-spacing: -0.035em;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.section {
  padding: var(--section-padding) var(--page-padding);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: rgba(238, 236, 230, 0.72);
}

.eyebrow.dark {
  color: var(--color-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  margin-top: 35px;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;

  transition:
    gap var(--transition),
    opacity var(--transition);
}

.text-link:hover {
  gap: 22px;
  opacity: 0.65;
}

.dark-link {
  color: var(--color-text);
}


/* =========================================================
   04. HEADER / NAVIGATION
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;

  color: var(--color-light-text);

  transition:
    background-color 400ms ease,
    color 400ms ease,
    box-shadow 400ms ease;
}

.site-header.scrolled {
  background: rgba(244, 242, 237, 0.94);
  color: var(--color-text);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 1px 0 var(--color-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 92px;

  padding: 0 var(--page-padding);
}

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

  line-height: 1;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.brand-subtitle {
  margin-top: 5px;

  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;

  opacity: 0.65;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav > a:not(.nav-cta) {
  position: relative;
}

.desktop-nav > a:not(.nav-cta)::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -5px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: right;

  transition: transform var(--transition);
}

.desktop-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  padding: 0 20px;

  border: 1px solid currentColor;

  transition:
    background-color 300ms ease,
    color 300ms ease;
}

.nav-cta:hover {
  background: currentColor;
  color: var(--color-dark);
}

.menu-toggle {
  display: none;

  position: relative;

  width: 40px;
  height: 40px;

  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 8px;

  width: 24px;
  height: 1px;

  background: currentColor;

  transition:
    transform 400ms ease,
    top 400ms ease;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 23px;
}

.menu-toggle.active span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle.active span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}


/* =========================================================
   05. HERO
========================================================= */

.hero {
  position: relative;

  min-height: 100svh;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  background: var(--color-dark);
  color: var(--color-light-text);
}

.hero-image {
  position: absolute;
  inset: 0;

  overflow: hidden;
}

.hero-image img {
  transform: scale(1.02);

  animation: heroImageReveal 1.5s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.05) 38%,
      rgba(0, 0, 0, 0.62) 100%
    );
}

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

  width: min(900px, 100%);

  padding:
    160px
    var(--page-padding)
    90px;
}

.hero h1 {
  max-width: 850px;

  margin-top: 22px;

  font-size: clamp(52px, 7.5vw, 118px);
  line-height: 0.94;

  letter-spacing: -0.055em;
}

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

  margin-top: 32px;

  font-size: 15px;
  line-height: 1.65;

  color: rgba(238, 236, 230, 0.78);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;

  margin-top: 42px;

  padding-bottom: 9px;

  border-bottom: 1px solid rgba(238, 236, 230, 0.65);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  transition:
    gap var(--transition),
    opacity var(--transition);
}

.hero-link:hover {
  gap: 28px;
  opacity: 0.7;
}

.arrow {
  font-size: 16px;
  line-height: 1;
}


/* =========================================================
   06. INTRODUCTION
========================================================= */

.intro {
  background: var(--color-background);
}

.intro-label {
  display: flex;
  justify-content: space-between;

  padding-bottom: 25px;

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

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: var(--color-muted);
}

.intro-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 10vw;

  padding-top: 75px;
}

.intro h2 {
  max-width: 900px;

  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 0.98;
}

.intro-text {
  align-self: end;
}

.intro-text p {
  max-width: 410px;

  font-size: 16px;
  line-height: 1.75;

  color: var(--color-muted);
}


/* =========================================================
   07. ABOUT
========================================================= */

.about {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 1fr);
  gap: clamp(50px, 9vw, 150px);

  align-items: center;

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

.about-image {
  aspect-ratio: 4 / 5;

  overflow: hidden;
}

.about-image img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image:hover img {
  transform: scale(1.035);
}

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

.about-content h2 {
  margin-top: 20px;

  font-size: clamp(46px, 5.2vw, 82px);
  line-height: 0.98;
}

.about-content > p:not(.eyebrow) {
  max-width: 520px;

  margin-top: 30px;

  font-size: 16px;
  line-height: 1.8;

  color: var(--color-muted);
}

.about-content > p + p {
  margin-top: 18px;
}


/* =========================================================
   08. SERVICES
========================================================= */

.services {
  background: var(--color-background);
}

.section-heading {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;

  margin-bottom: 75px;
}

.section-number {
  padding-top: 5px;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;

  color: var(--color-muted);
}

.section-heading h2 {
  max-width: 800px;

  margin-top: 20px;

  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.98;
}

.services-list {
  border-top: 1px solid var(--color-border);
}

.service-row {
  display: grid;
  grid-template-columns: 70px minmax(180px, 1fr) minmax(250px, 0.75fr) 30px;
  gap: 30px;

  align-items: center;

  padding: 32px 0;

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

  transition:
    padding var(--transition),
    background-color 400ms ease;
}

.service-row:hover {
  padding-left: 18px;
  padding-right: 18px;

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

.service-number {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;

  color: var(--color-muted);
}

.service-title {
  font-family: var(--font-serif);

  font-size: clamp(30px, 3vw, 46px);

  line-height: 1;
}

.service-description {
  max-width: 360px;

  font-size: 13px;
  line-height: 1.65;

  color: var(--color-muted);
}

.service-arrow {
  font-size: 22px;

  transition: transform var(--transition);
}

.service-row:hover .service-arrow {
  transform: translateX(8px);
}


/* =========================================================
   09. EXPERIENCE
========================================================= */

.experience {
  background: var(--color-dark);
  color: var(--color-light-text);
}

.experience-intro {
  max-width: 900px;
}

.experience-intro h2 {
  margin-top: 25px;

  font-size: clamp(52px, 7vw, 108px);
  line-height: 0.94;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;

  margin-top: 110px;
}

.experience-item {
  padding-top: 22px;

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

.experience-item > span {
  display: block;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;

  color: rgba(238, 236, 230, 0.5);
}

.experience-item h3 {
  margin-top: 55px;

  font-family: var(--font-serif);

  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.experience-item p {
  max-width: 340px;

  margin-top: 22px;

  font-size: 14px;
  line-height: 1.75;

  color: rgba(238, 236, 230, 0.58);
}


/* =========================================================
   10. SELECTED PROPERTIES
========================================================= */

.properties {
  background: var(--color-background);
}

.properties-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 50px;

  margin-bottom: 70px;
}

.properties-heading h2 {
  margin-top: 20px;

  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.96;
}

.properties-heading > p {
  max-width: 280px;

  font-size: 13px;
  line-height: 1.7;

  color: var(--color-muted);
}

.property-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 25px;

  align-items: start;
}

.property-image {
  overflow: hidden;

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

.property-large .property-image {
  aspect-ratio: 1.1 / 1;
}

.property-small {
  margin-top: 130px;
}

.property-small .property-image {
  aspect-ratio: 0.9 / 1;
}

.property-image img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.property:hover .property-image img {
  transform: scale(1.045);
}

.property-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: 20px;

  padding-top: 18px;
}

.property-info h3 {
  font-family: var(--font-serif);

  font-size: 25px;
}

.property-info p {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--color-muted);
}


/* =========================================================
   11. TESTIMONIAL
========================================================= */

.testimonial {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 70vh;

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

  text-align: center;
}

.testimonial-inner {
  width: min(1000px, 100%);
}

.testimonial blockquote {
  margin-top: 40px;

  font-family: var(--font-serif);

  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.05;

  letter-spacing: -0.025em;
}

.testimonial-name {
  margin-top: 40px;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: var(--color-muted);
}


/* =========================================================
   12. CONTACT
========================================================= */

.contact {
  min-height: 75vh;

  display: flex;
  align-items: center;

  background: var(--color-dark);
  color: var(--color-light-text);
}

.contact-content {
  width: min(1000px, 100%);
}

.contact h2 {
  max-width: 900px;

  margin-top: 25px;

  font-size: clamp(55px, 8vw, 125px);
  line-height: 0.92;
}

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

  margin-top: 35px;

  font-size: 15px;
  line-height: 1.7;

  color: rgba(238, 236, 230, 0.62);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 25px;

  margin-top: 45px;

  padding: 17px 22px;

  border: 1px solid rgba(238, 236, 230, 0.6);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  transition:
    background-color 300ms ease,
    color 300ms ease,
    gap var(--transition);
}

.contact-button:hover {
  background: var(--color-light-text);
  color: var(--color-dark);

  gap: 35px;
}


/* =========================================================
   13. FOOTER
========================================================= */

.site-footer {
  padding:
    80px
    var(--page-padding)
    30px;

  background: var(--color-dark);
  color: var(--color-light-text);

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

.footer-top {
  display: flex;
  justify-content: space-between;

  gap: 60px;

  padding-bottom: 100px;
}

.footer-brand h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.footer-brand p {
  margin-top: 7px;

  font-size: 8px;
  letter-spacing: 0.22em;

  color: rgba(238, 236, 230, 0.5);
}

.footer-links {
  display: flex;
  gap: 100px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links p {
  margin-bottom: 8px;

  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: rgba(238, 236, 230, 0.45);
}

.footer-links a {
  width: fit-content;

  font-size: 12px;

  color: rgba(238, 236, 230, 0.8);

  transition: opacity 250ms ease;
}

.footer-links a:hover {
  opacity: 0.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;

  padding-top: 25px;

  border-top: 1px solid var(--color-light-border);

  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: rgba(238, 236, 230, 0.4);
}


/* =========================================================
   14. ANIMATIONS
========================================================= */

@keyframes heroImageReveal {
  from {
    opacity: 0;
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    transform: scale(1.02);
  }
}


/* =========================================================
   15. TABLET
========================================================= */

@media (max-width: 900px) {

  :root {
    --page-padding: 28px;
    --section-padding: 100px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;

    position: fixed;
    inset: 0;

    padding:
      130px
      var(--page-padding)
      50px;

    background: var(--color-dark);
    color: var(--color-light-text);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-15px);

    transition:
      opacity 400ms ease,
      visibility 400ms ease,
      transform 400ms ease;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;

    gap: 20px;
  }

  .mobile-menu nav a {
    font-family: var(--font-serif);

    font-size: clamp(38px, 8vw, 60px);
    line-height: 1;
  }

  .mobile-menu .mobile-cta {
    margin-top: 30px;

    width: fit-content;

    padding-bottom: 8px;

    border-bottom: 1px solid currentColor;

    font-family: var(--font-sans);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .intro-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .intro-text {
    max-width: 500px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-image {
    width: min(600px, 100%);
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 60px;

    margin-top: 80px;
  }

  .experience-item h3 {
    margin-top: 35px;
  }

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

  .property-small {
    width: 70%;
    margin-top: 40px;
    margin-left: auto;
  }

}


/* =========================================================
   16. MOBILE
========================================================= */

@media (max-width: 600px) {

  :root {
    --page-padding: 20px;
    --section-padding: 80px;
  }

  .nav-container {
    height: 78px;
  }

  .brand-name {
    font-size: 11px;
  }

  .brand-subtitle {
    font-size: 7px;
  }

  .hero-content {
    padding:
      130px
      var(--page-padding)
      55px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .hero-description {
    font-size: 14px;
  }

  .intro-label {
    padding-bottom: 18px;
  }

  .intro-content {
    padding-top: 50px;
  }

  .intro h2 {
    font-size: clamp(43px, 12vw, 65px);
  }

  .about-content h2 {
    font-size: clamp(43px, 12vw, 65px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;

    margin-bottom: 55px;
  }

  .section-heading h2 {
    font-size: clamp(43px, 12vw, 65px);
  }

  .service-row {
    grid-template-columns: 35px 1fr 25px;
    gap: 12px;

    padding: 27px 0;
  }

  .service-row:hover {
    padding-left: 8px;
    padding-right: 8px;
  }

  .service-title {
    font-size: 30px;
  }

  .service-description {
    grid-column: 2 / 3;

    max-width: none;

    margin-top: -3px;

    font-size: 12px;
  }

  .service-arrow {
    grid-column: 3;
    grid-row: 1;

    align-self: center;
  }

  .experience-intro h2 {
    font-size: clamp(48px, 13vw, 70px);
  }

  .experience-grid {
    gap: 50px;
  }

  .properties-heading {
    display: block;

    margin-bottom: 50px;
  }

  .properties-heading h2 {
    font-size: clamp(43px, 12vw, 65px);
  }

  .properties-heading > p {
    margin-top: 30px;
  }

  .property-small {
    width: 85%;
  }

  .property-info {
    display: block;
  }

  .property-info p {
    margin-top: 7px;
  }

  .testimonial {
    min-height: 65vh;
  }

  .testimonial blockquote {
    font-size: clamp(37px, 10vw, 58px);
  }

  .contact {
    min-height: 70vh;
  }

  .contact h2 {
    font-size: clamp(52px, 14vw, 76px);
  }

  .footer-top {
    display: block;

    padding-bottom: 70px;
  }

  .footer-links {
    gap: 60px;

    margin-top: 60px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
  }

  .footer-bottom span + span {
    margin-top: 8px;
  }

}

/* =========================================
   YASIN + EXP REALTY HEADER LOGOS
========================================= */

.brand-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.brand-logos .ym-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-logos .brand-divider {
  width: 1px;
  height: 38px;
  background: currentColor;
  opacity: 0.7;
}

.brand-logos .exp-logo {
  width: 90px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  margin-left: -20px;
}

/* Mobile logo sizes */

@media (max-width: 600px) {
  .brand-logos {
    gap: 10px;
  }

  .brand-logos .ym-logo {
    width: 42px;
    height: 42px;
  }

  .brand-logos .brand-divider {
    height: 30px;
  }

  .brand-logos .exp-logo {
    width: 72px;
    max-height: 38px;
  }
}
