@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500&display=swap');

:root {
  --bone:      #F0E6D0;
  --parchment: #E8D5B0;
  --earth:     #2A1206;
  --terra:     #C4622D;
  --ochre:     #D4943A;
  --ash:       #9E8E7A;
  --smoke:     #1A1A1A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bone);
  color: var(--earth);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Card icons */
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  display: block;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  transition: background 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(42, 18, 6, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 5%;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  text-shadow: 0 0 20px rgba(212, 148, 58, 0.3);
  transition: text-shadow 0.3s;
}

.nav-logo:hover {
  text-shadow: 0 0 24px rgba(212, 148, 58, 0.5);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link.active { border-bottom: 1px solid var(--ochre); padding-bottom: 2px; }

.nav-dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--earth);
  border-top: 2px solid var(--terra);
  padding: 16px 0;
  min-width: 180px;
  z-index: 200;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, padding-left 0.2s;
}

.dropdown-menu a:hover {
  opacity: 1;
  padding-left: 32px;
  color: var(--ochre);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--bone);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 200;
    position: relative;
  }

  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--earth);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 150;
  }

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

  .nav-toggle.active span {
    background: var(--ochre);
    width: 26px;
    height: 2px;
  }

  .nav-link {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    padding: 8px 0;
    text-align: center;
  }

  .dropdown-menu a {
    font-size: 1rem;
    padding: 12px 0;
  }

  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--terra);
  padding: 14px 32px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
}

.btn-primary:hover {
  background: #A8501F;
  box-shadow: 0 4px 20px rgba(196, 98, 45, 0.3);
}

.btn-ghost {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 148, 58, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.25s;
}

.btn-ghost:hover { border-color: var(--ochre); }

.btn-outline {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  background: transparent;
  border: 1px solid rgba(212, 148, 58, 0.4);
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.btn-outline:hover {
  border-color: var(--ochre);
  background: rgba(212, 148, 58, 0.08);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background-image:
    linear-gradient(
      to right,
      rgba(26, 10, 2, 0.90) 0%,
      rgba(26, 10, 2, 0.70) 40%,
      rgba(26, 10, 2, 0.20) 100%
    ),
    url('../images/dario-walking-camp.jpg');
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 120px 6% 100px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--bone);
  clip-path: ellipse(60% 100% at 45% 100%);
}

.hero-content { max-width: 560px; }

.hero-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ochre);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bone);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(240, 230, 208, 0.75);
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero { padding: 140px 24px 60px; }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  background: var(--bone);
  padding: 80px 6% 100px;
  position: relative;
}

.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.intro::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--earth);
  clip-path: ellipse(60% 100% at 55% 100%);
}

.intro-photo-wrap {
  display: flex;
  justify-content: center;
}

.intro-photo-frame {
  width: 280px;
  height: 340px;
  border-radius: 140px 140px 24px 24px;
  border: 1px solid rgba(212, 148, 58, 0.3);
  box-shadow: 0 12px 40px rgba(42, 18, 6, 0.1);
  overflow: hidden;
}

.intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 20px;
}

.intro-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--terra);
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 2px solid rgba(196, 98, 45, 0.3);
}

.intro-body p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 16px;
  color: var(--earth);
}

.intro-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--terra);
  font-weight: 400;
  font-size: 1rem;
  border-bottom: 1px solid rgba(196, 98, 45, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.25s;
}

.intro-link:hover { border-color: var(--terra); }

@media (max-width: 768px) {
  .intro {
    padding: 60px 24px;
  }
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .intro-photo-frame { width: 200px; height: 260px; }
}

/* ============================================================
   THE WORK
   ============================================================ */
.work {
  background: var(--earth);
  padding: 100px 6% 100px;
  position: relative;
}

.work::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--bone);
  clip-path: ellipse(60% 100% at 45% 100%);
}

.work-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.work-header {
  text-align: center;
  margin-bottom: 64px;
}

.work-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--bone);
  margin-bottom: 16px;
}

.work-sub {
  font-size: 1.1rem;
  color: var(--bone);
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  border: 1px solid rgba(196, 98, 45, 0.15);
  padding: 40px 28px 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.work-card:hover {
  border-color: rgba(196, 98, 45, 0.4);
  box-shadow: 0 0 30px rgba(196, 98, 45, 0.08);
}

.work-card-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 14px;
}

.work-card-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--bone);
  opacity: 0.88;
  margin-bottom: 20px;
}

.work-card-link {
  font-size: 0.8rem;
  color: var(--ochre);
  border-bottom: 1px solid rgba(212, 148, 58, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.25s;
}

.work-card-link:hover { border-color: var(--ochre); }

.work-org {
  text-align: center;
  margin-top: 48px;
  color: var(--bone);
  font-size: 1rem;
  opacity: 0.85;
}

.work-org a {
  font-size: 1rem;
  color: var(--ochre);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.work-org a:hover { opacity: 1; }

@media (max-width: 768px) {
  .work { padding: 72px 24px; }
  .work-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   SARAY
   ============================================================ */
.saray {
  background: var(--bone);
  padding: 100px 6% 100px;
  position: relative;
}

.saray::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--earth);
  clip-path: ellipse(60% 100% at 55% 100%);
}

.saray-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 400px) 1fr;
  gap: 72px;
  align-items: center;
}

.saray-cover {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 40px rgba(212, 148, 58, 0.15);
}

.saray-detail {
  width: 120px;
  opacity: 0.6;
  margin-top: 24px;
}

.saray-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 16px;
}

.saray-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--earth);
  line-height: 1;
  margin-bottom: 20px;
}

.saray-sub {
  font-size: 1rem;
  color: var(--earth);
  line-height: 1.8;
  margin-bottom: 16px;
  opacity: 0.7;
}

.saray-body {
  font-size: 1rem;
  color: var(--earth);
  line-height: 1.85;
  margin-bottom: 20px;
}

.saray-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terra);
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 2px solid rgba(196, 98, 45, 0.3);
}

.saray-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .saray { padding: 72px 24px; }
  .saray-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   COMMUNITY
   ============================================================ */
.community {
  background: var(--earth);
  padding: 80px 6%;
  text-align: center;
}

.community-inner {
  max-width: 720px;
  margin: 0 auto;
}

.community-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--bone);
  line-height: 1.5;
  margin-bottom: 24px;
  position: relative;
  padding-top: 40px;
}

.community-quote::before {
  content: '· · ·';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.5em;
  color: var(--ochre);
  opacity: 0.5;
}

.community-text {
  font-size: 1rem;
  color: rgba(240, 230, 208, 0.7);
  line-height: 1.8;
  margin-bottom: 48px;
}

.community-block {
  text-align: center;
  margin-bottom: 40px;
}

.community-role {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 6px;
  opacity: 0.8;
}

.community-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 8px;
}

.community-oneliner {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(240, 230, 208, 0.6);
  line-height: 1.7;
  margin-bottom: 10px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.community-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ochre);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.community-link:hover { opacity: 1; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1E0C04;
  padding: 56px 6% 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--ash);
  font-weight: 300;
  margin-bottom: 6px;
}

.footer-links a {
  display: block;
  color: var(--bone);
  font-size: 0.8rem;
  padding: 5px 0;
  opacity: 0.6;
  transition: opacity 0.25s, color 0.25s;
}

.footer-links a:hover { opacity: 1; color: var(--ochre); }

.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bone);
  font-size: 0.8rem;
  padding: 4px 0;
  opacity: 0.6;
  transition: opacity 0.25s, color 0.25s;
}

.footer-social a:hover { opacity: 1; color: var(--ochre); }

.footer-social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(240, 230, 208, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ash);
}

.footer-bottom a {
  color: var(--ochre);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #E8A84A;
}

@media (max-width: 768px) {
  .footer { padding: 48px 24px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   MOBILE ACCESSIBILITY & UX
   ============================================================ */
@media (max-width: 768px) {

  /* --- Buttons: bigger text and touch targets --- */
  .btn-primary {
    font-size: 1rem;
    padding: 16px 32px;
    min-height: 48px;
  }
  .btn-outline {
    font-size: 1rem;
    padding: 14px 28px;
    min-height: 48px;
  }
  .btn-ghost {
    font-size: 1.05rem;
    padding: 10px 0;
  }

  /* --- Labels and small text: ensure readability --- */
  .hero-label,
  .section-label,
  .work-card-label,
  .saray-label {
    font-size: 1.1rem;
  }

  .hero-label {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    font-weight: 400;
    color: var(--ochre);
  }

  .hero-sub {
    font-size: 1.2rem;
    color: rgba(240, 230, 208, 0.9);
    line-height: 1.85;
  }

  /* --- Headings bump on mobile --- */
  .hero-headline {
    font-size: clamp(2.8rem, 9vw, 3.8rem);
  }
  .work-title {
    font-size: clamp(2.4rem, 7vw, 3rem);
  }
  .saray-title {
    font-size: clamp(3.2rem, 10vw, 4.5rem);
  }
  .intro-quote {
    font-size: clamp(1.8rem, 5.5vw, 2.2rem);
  }
  .community-quote {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  /* --- Body text: bump for readability --- */
  .intro-body p,
  .work-card-text,
  .saray-body,
  .community-text {
    font-size: 1.2rem;
    line-height: 1.85;
  }

  .intro-link {
    font-size: 1.15rem;
    padding: 10px 0;
  }

  /* --- Work section cards --- */
  .work-card {
    padding: 28px 20px 24px;
  }
  .work-card-text {
    opacity: 1;
  }
  .work-card-link {
    font-size: 1.1rem;
    padding: 10px 0;
    display: inline-block;
  }
  .work-header {
    margin-bottom: 40px;
  }
  .work-sub {
    font-size: 1.2rem;
    opacity: 1;
  }
  .work-org {
    font-size: 1.15rem;
    opacity: 1;
  }
  .work-org a {
    font-size: 1.15rem;
    opacity: 1;
  }

  /* --- SARAY section on homepage --- */
  .saray-sub {
    font-size: 1.15rem;
    opacity: 0.9;
  }
  .saray-body {
    font-size: 1.2rem;
  }
  .saray-quote {
    font-size: 1.2rem;
  }

  /* --- Community section --- */
  .community {
    padding: 60px 24px;
  }
  .community-text {
    font-size: 1.2rem;
    color: rgba(240, 230, 208, 0.9);
  }
  .community-role {
    font-size: 1.1rem;
    opacity: 1;
  }
  .community-name {
    font-size: 1.5rem;
  }
  .community-oneliner {
    font-size: 1.15rem;
    color: rgba(240, 230, 208, 0.8);
    max-width: 100%;
  }
  .community-link {
    font-size: 1.1rem;
    opacity: 1;
    padding: 10px 0;
    display: inline-block;
  }

  /* --- Footer: high contrast and readable --- */
  .footer {
    background: #0E0503;
    border-top: 1px solid rgba(212, 148, 58, 0.15);
  }
  .footer-brand {
    font-size: 1rem;
    color: var(--bone);
  }
  .footer-tagline {
    font-size: 1.05rem;
    color: rgba(240, 230, 208, 0.8);
  }
  .footer-links a {
    font-size: 1.05rem;
    padding: 10px 0;
    opacity: 0.85;
  }
  .footer-social a {
    font-size: 1.05rem;
    padding: 10px 0;
    opacity: 0.85;
  }
  .footer-social svg {
    width: 22px;
    height: 22px;
  }
  .footer-bottom {
    font-size: 0.9rem;
    color: rgba(240, 230, 208, 0.7);
  }
  .footer-bottom a {
    color: var(--ochre);
    font-weight: 500;
  }

  /* --- Mobile nav menu: visible close button --- */
  .nav-toggle {
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    z-index: 200;
    position: relative;
  }
  .nav-toggle.active span {
    background: var(--ochre);
    width: 26px;
    height: 2px;
  }
  .nav-link {
    font-size: 1.3rem;
  }
  .dropdown-menu a {
    font-size: 1.1rem;
    padding: 12px 0;
  }

  /* --- Hero CTA gap --- */
  .hero-ctas {
    gap: 16px;
  }
}
