/* MEVKOM 2026 — Mevlânâ Ekonomi Kongresi */

:root {
  --teal: #0d7377;
  --teal-mid: #14919b;
  --teal-light: #1aa6b1;
  --teal-soft: #d4eef0;
  --sky: #a8d4dc;
  --sky-faint: #e8f4f6;
  --charcoal: #1f2933;
  --charcoal-mid: #2d3436;
  --ink: #243038;
  --muted: #5a6a72;
  --white: #ffffff;
  --off-white: #f7fbfc;
  --border: rgba(13, 115, 119, 0.14);
  --shadow: 0 12px 40px rgba(31, 41, 51, 0.1);
  --radius: 4px;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --max: 1120px;
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-mid);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

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

.section--teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
  color: var(--white);
}

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

.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.section--teal .section__eyebrow,
.section--charcoal .section__eyebrow {
  color: var(--sky);
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--charcoal);
}

.section--teal .section__title,
.section--charcoal .section__title {
  color: var(--white);
}

.section__lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.section--teal .section__lead,
.section--charcoal .section__lead {
  color: rgba(255, 255, 255, 0.88);
}

/* Pattern overlay utility */
.pattern-bg {
  background-color: var(--off-white);
  background-image: url("../assets/pattern-star.svg");
  background-size: 140px 140px;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 251, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--charcoal);
  min-width: 0;
}

.nav__brand img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nav__brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav__toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--charcoal);
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav__links a:hover {
  color: var(--teal);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.55rem 1rem !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  text-decoration: none !important;
}

.nav__cta:hover {
  background: var(--teal-mid) !important;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__cta {
    margin-top: 0.5rem;
    justify-content: center;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  overflow: hidden;
  background: var(--white);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("../assets/pattern-star.svg");
  background-size: 160px 160px;
  opacity: 0.45;
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  pointer-events: none;
}

.hero__dome {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 20%;
  clip-path: polygon(0 0, 78% 0, 42% 100%, 0 100%);
  opacity: 0.92;
}

.hero__poster-wash {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.15), rgba(13, 115, 119, 0.18)),
    url("../assets/poster.jpg") center / cover no-repeat;
  clip-path: polygon(55% 0, 100% 0, 100% 55%, 78% 100%, 30% 100%);
  opacity: 0.35;
}

.hero__diagonal {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.hero__charcoal {
  background: var(--charcoal);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.hero__teal {
  background: linear-gradient(145deg, var(--teal-mid), var(--teal));
  clip-path: polygon(0 0, 100% 22%, 100% 100%, 0 100%);
  margin-left: -12%;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 0 3.5rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: min(92vh, 780px);
}

.hero__top {
  margin-bottom: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.hero__iste {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 0.25rem;
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.25);
  animation: rise 0.8s ease both;
}

.hero__badge {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  animation: rise 0.8s ease 0.1s both;
}

.hero__main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.hero__title {
  margin: 0 0 1.25rem;
  color: var(--white);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  animation: rise 0.85s ease 0.15s both;
}

.hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.95);
  animation: rise 0.85s ease 0.25s both;
}

.hero__meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.hero__meta svg {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  opacity: 0.9;
}

.hero__aside {
  color: var(--white);
  padding-bottom: 0.5rem;
  animation: rise 0.85s ease 0.3s both;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.hero__kongre {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.hero__url {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.92;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.85s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--white);
  color: var(--teal);
}

.btn--primary:hover {
  background: var(--sky-faint);
  color: var(--teal);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--solid {
  background: var(--teal);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--teal-mid);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn--outline:hover {
  background: var(--teal-soft);
  color: var(--teal);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
  }

  .hero__media {
    grid-template-columns: 1fr;
    opacity: 0.5;
  }

  .hero__dome {
    clip-path: none;
    height: 42%;
  }

  .hero__poster-wash {
    display: none;
  }

  .hero__diagonal {
    height: auto;
    inset: 0;
    grid-template-columns: 1fr;
  }

  .hero__charcoal {
    clip-path: none;
    min-height: 100%;
  }

  .hero__teal {
    display: none;
  }

  .hero__content {
    min-height: auto;
    padding: 1.25rem 0 2.5rem;
  }

  .hero__main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__aside {
    order: 0;
    padding: 0;
  }

  .hero__main > div {
    order: -1;
  }

  .hero__kongre {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
}

/* ——— Cards / grids ——— */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.theme-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  padding: 1.15rem 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-mid);
}

.theme-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--charcoal);
}

@media (max-width: 640px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }
}

.principles {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.principle {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.principle:first-child {
  border-top: 1px solid var(--border);
}

.principle dt {
  font-weight: 700;
  color: var(--teal);
  font-size: 0.95rem;
}

.principle dd {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 640px) {
  .principle {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* Info band */
.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.info-item {
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-item h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
}

.info-item p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.4;
}

.info-item .note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  font-weight: 400;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .info-band {
    grid-template-columns: 1fr;
  }
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--teal-soft);
}

.timeline li {
  position: relative;
  padding: 1.15rem 0 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 1.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.timeline time {
  display: block;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.timeline strong {
  display: block;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tips / rules box */
.callout {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: var(--sky-faint);
  border-left: 3px solid var(--teal);
}

.callout h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.callout ul {
  margin: 0;
  padding-left: 1.15rem;
}

.callout li {
  margin-bottom: 0.4rem;
}

.callout li:last-child {
  margin-bottom: 0;
}

/* Program tabs */
.program-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.program-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.program-tab[aria-selected="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.program-panel[hidden] {
  display: none;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schedule th,
.schedule td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.schedule th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.schedule td:first-child {
  white-space: nowrap;
  font-weight: 650;
  color: var(--teal);
  width: 8.5rem;
}

.schedule .note {
  color: var(--muted);
  font-size: 0.88rem;
}

.program-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Committees */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.committee {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.35rem 1.4rem;
}

.committee h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--charcoal);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--teal-soft);
}

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

.committee li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(13, 115, 119, 0.08);
  font-size: 0.95rem;
}

.committee li:last-child {
  border-bottom: none;
}

.committee .role {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.committee--wide {
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .committee-grid {
    grid-template-columns: 1fr;
  }
}

/* Partners */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  width: 100%;
  max-width: 180px;
  padding: 1rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  min-height: 150px;
  justify-content: center;
}

.partner img {
  max-height: 88px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.partner--text {
  gap: 0.45rem;
}

.partner--text strong {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--charcoal);
  line-height: 1.3;
}

.partner span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.contact-card a.mail {
  font-weight: 650;
  font-size: 1.05rem;
  word-break: break-all;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--sky);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Two-col about */
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.about-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--teal);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 92%);
  opacity: 0.95;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 115, 119, 0.35));
  pointer-events: none;
}

@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}