/* ==========================================================================
   Morgane Smeesters — one-page portfolio
   Hand-written CSS, no frameworks.
   Design reference canvas: 1024 x 2748 (fluid values scale from that)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette (sampled / taken from the design's vector fills) */
  --cream:      #fff9f5;
  --sand:       #f9e2be;
  --beige:      #f4e9dc;
  --brown:      #613d29;
  --ink:        #261d17;
  --green:      #044644;
  --offwhite:   #f4f1e8;
  --coral:      #ee836a;
  --gold:       #bd8f53;
  --frame:      #623e2a;

  /* Type */
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Poppins', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;   /* stand-in for TAN Angleton */
  --font-body:    'Jost', system-ui, -apple-system, sans-serif; /* stand-in for Garet */
  --font-quote:   'Radley', Georgia, serif;
  --font-small:   'Carlito', system-ui, -apple-system, sans-serif;

  /* Layout */
  --shell: 1180px;
  --gut: clamp(20px, 5vw, 72px);
  --section-y: clamp(56px, 8vw, 120px);

  /* Misc */
  --radius: clamp(12px, 1.8vw, 22px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

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

ul { list-style: none; margin: 0; padding: 0; }

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

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Anchor offset for the fixed-ish header */
section[id], [id] { scroll-margin-top: 3rem; }

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(15px, 2.05vw, 23px);
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
}

.eyebrow--sand { color: var(--sand); }

.pill {
  display: block;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.85em 1em 0.75em;
  border-radius: 0;
}

.badge {
  display: inline-block;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.85em 1.5em 0.75em;
  border-radius: 0;
}

.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1.1em 2.4em 1em;
  border-radius: 0;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); background: #fff; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--sand);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(14px, 2vw, 26px);
}

/* Nav */
.nav { justify-self: start; }

.nav__list {
  display: flex;
  gap: clamp(12px, 1.8vw, 26px);
}

.nav__list a {
  font-family: var(--font-serif);
  font-size: clamp(11px, 1.37vw, 16px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
  padding-block: 0.4em;
  position: relative;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__list a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav__toggle {
  display: none;
  position: relative;
  z-index: 60;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--sand);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Brand */
.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  text-align: center;
}

.brand span {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(14px, 1.95vw, 24px);
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* optically re-center letterspaced text */
  text-transform: uppercase;
  color: var(--sand);
}

/* Header CTA */
.header__cta {
  justify-self: end;
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.3vw, 15px);
  letter-spacing: 0.08em;
  color: var(--sand);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease);
}
.header__cta:hover { border-color: currentColor; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(420px, 62vh, 720px);
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img,
.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darkening + top scrim so the nav stays legible over the photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(38, 29, 23, 0.62) 0%, rgba(38, 29, 23, 0.12) 26%),
    linear-gradient(180deg, rgba(38, 29, 23, 0.15) 40%, rgba(38, 29, 23, 0.45) 100%);
}

/* Decorative photo cards in the top-left corner */
.hero__card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 26px 60px rgba(20, 14, 10, 0.45);
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }

.hero__card--a {
  left: 1%;
  top: -7%;
  width: clamp(150px, 25vw, 310px);
  aspect-ratio: 0.71;
  z-index: -1;
}
.hero__card--b {
  left: -6%;
  top: 8%;
  width: clamp(100px, 16vw, 200px);
  aspect-ratio: 0.71;
  z-index: -1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(70px, 8vw, 130px) var(--gut) 0;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 4.69vw, 58px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--cream);
  /* the "slight brownish shadow" from the design */
  text-shadow:
    0 2px 6px rgba(38, 29, 23, 0.32),
    2px 10px 30px rgba(97, 61, 41, 0.6);
}

.hero__title-line {
  display: block;
}

/* --------------------------------------------------------------------------
   6. Value proposition
   -------------------------------------------------------------------------- */
.value {
  padding: clamp(56px, 10vw, 150px) 0 clamp(40px, 6vw, 90px);
  text-align: center;
}

.value__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3.52vw, 44px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brown);
  max-width: 40ch;
  margin-inline: auto;
}

.value__title span { display: block; }

/* --------------------------------------------------------------------------
   7. Content creation
   -------------------------------------------------------------------------- */
.content { padding: 0 0 var(--section-y); }

.eyebrow--left { margin-bottom: clamp(28px, 4vw, 56px); }

.content__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3.4vw, 46px);
}

.content-card { text-align: center; }

.content-card__frame {
  border: 2px solid var(--frame);
  padding: clamp(9px, 1.3vw, 13px);
  margin-bottom: clamp(14px, 1.6vw, 22px);
}

.content-card__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 0.786;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. Digital marketing
   -------------------------------------------------------------------------- */
.digital {
  background: var(--beige);
  padding: var(--section-y) 0;
}

.digital__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
}

.digital__media {
  position: relative;
}

.digital__media img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 0.7;
  object-fit: cover;
  /* "old door" silhouette: fully rounded top, square bottom */
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
}

/* offset arch frame sitting behind the photo (design: ~12.7px left, ~11px up) */
.digital__media::before {
  content: "";
  position: absolute;
  left: -5.44%;
  top: -3.31%;
  width: 100%;
  height: 100%;
  border: 2px solid var(--frame);
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  z-index: 1;
}

.digital__body .eyebrow { margin-bottom: clamp(20px, 2.4vw, 34px); }

/* service accordion — hairline rules between rows (design: 1px #623E2A, ~57px pitch) */
.digital__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--frame);
}

.digital__item {
  border-bottom: 1px solid var(--frame);
}

.digital__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding-block: clamp(11px, 1.5vw, 18px);
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.05vw, 27px);
  line-height: 1.25;
  color: var(--ink);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.digital__toggle:hover { color: var(--frame); }

.digital__arrow {
  flex: 0 0 auto;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.1em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);            /* closed: points right */
  transition: transform 0.35s var(--ease);
}

.digital__toggle[aria-expanded="true"] .digital__arrow { transform: rotate(45deg); } /* open: points down */

/* smooth reveal — 0fr -> 1fr needs no fixed height */
.digital__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.digital__toggle[aria-expanded="true"] + .digital__panel { grid-template-rows: 1fr; }

.digital__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.digital__panel-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(11px, 1.05vw, 12px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--frame);
  margin: 0 0 0.55em;
}

.digital__panel-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 clamp(14px, 1.8vw, 20px);
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: clamp(240px, 32vw, 430px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  padding-block: var(--section-y);
  padding-right: var(--gut);
  max-width: 1560px;
  margin-inline: auto;
}

.about__media img {
  width: 100%;
  aspect-ratio: 0.71;
  object-fit: cover;
  /* only the top-right is rounded (design: rx=74.9 ry=105.3 -> 22.86% both axes) */
  border-radius: 0 22.86% 0 0;
  box-shadow: 0 24px 54px rgba(38, 29, 23, 0.16);
}

.about__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--green);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.about__title-small {
  display: block;
  font-size: clamp(22px, 3.9vw, 48px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about__title-big {
  display: block;
  font-size: clamp(56px, 8.2vw, 108px);
  text-transform: uppercase;
}

.about__bio {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.66vw, 20px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 60ch;
}

.about__bio + .about__bio { margin-top: 1.1em; }

.about .badge { margin-top: clamp(22px, 3vw, 40px); }

/* --------------------------------------------------------------------------
   10. CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--sand);
}

.cta__media { position: absolute; inset: 0; z-index: -2; }

.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 30, 28, 0.92) 0%, rgba(4, 30, 28, 0.72) 55%, rgba(4, 30, 28, 0.6) 100%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(30px, 5vw, 70px);
  padding-block: clamp(56px, 7vw, 104px);
}

.cta__text .eyebrow { margin-bottom: clamp(14px, 1.8vw, 24px); }

.cta__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 6.25vw, 76px);
  line-height: 1.06;
  color: var(--sand);
}

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
  background: var(--green);
  color: var(--offwhite);
  padding: clamp(64px, 8vw, 118px) 0 clamp(80px, 11vw, 160px);
}

.testimonials__title {
  font-family: var(--font-quote);
  font-weight: 400;
  font-size: clamp(20px, 2.05vw, 28px);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 5vw, 70px);
  text-align: center;
}

.testimonial { display: flex; flex-direction: column; align-items: center; }

.testimonial__quote {
  font-family: var(--font-quote);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.3;
  max-width: 16ch;
}

.testimonial__rule {
  display: block;
  width: clamp(60px, 9vw, 110px);
  height: 2px;
  background: var(--gold);
  margin: clamp(14px, 1.6vw, 22px) 0;
}

.testimonial__body {
  font-family: var(--font-small);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.75;
  color: rgba(244, 241, 232, 0.85);
  max-width: 34ch;
}

.testimonial__cite {
  margin-top: clamp(16px, 2vw, 26px);
  font-family: var(--font-small);
  font-style: normal;
  font-size: clamp(9px, 0.72vw, 11px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--offwhite);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--green);
  color: var(--offwhite);
  border-top: 1px solid rgba(244, 241, 232, 0.14);
  padding-block: clamp(24px, 3vw, 40px);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-small);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.08em;
  color: rgba(244, 241, 232, 0.7);
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--offwhite);
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .header__inner { grid-template-columns: 1fr auto 1fr; gap: 0.5rem; }

  .brand { position: relative; z-index: 45; }

  .nav { justify-self: start; }

  .nav__toggle { display: flex; }

  .nav__list {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: clamp(80px, 22vw, 120px) var(--gut) 2rem;
    background: rgba(4, 30, 28, 0.97);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.4s;
    z-index: 40;
  }

  .nav__list.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list a {
    display: block;
    font-size: 1.5rem;
    padding-block: 0.6em;
    border-bottom: 1px solid rgba(249, 226, 190, 0.15);
  }

  .nav__list a::after { display: none; }

  .header__cta { display: none; }

  .content__grid { grid-template-columns: 1fr 1fr; }
  .content-card:last-child { grid-column: 1 / -1; max-width: 60%; margin-inline: auto; }

  .digital__inner { grid-template-columns: 1fr; }
  .digital__media { max-width: 420px; }

  .about { grid-template-columns: 1fr; padding-right: 0; }
  .about__media { max-width: 380px; }
  .about__media img { border-radius: 0 22.86% 0 0; }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .testimonials__grid { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 56px); }
}

@media (max-width: 620px) {
  .content__grid { grid-template-columns: 1fr; }
  .content-card:last-child { max-width: none; }

  .hero__card--b { display: none; }
  .hero__card--a { width: clamp(120px, 34vw, 190px); top: -5%; }

  .site-footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
