/* ===========================
   Istanbul City - Design System
   =========================== */

:root {
  --white: #FFFFFF;
  --gray-light: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-400: #CED4DA;
  --text: #1A1A2E;
  --text-light: #4A4A5A;
  --blue: #1B4965;
  --blue-dark: #132F42;
  --gold: #C9A96E;
  --gold-dark: #A8873F;
  --orange: #E67E22;
  --orange-dark: #CF6D17;
  --turquoise: #45B7AA;
  --max-width: 1200px;
  --content-width: 750px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; }

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

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

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.header__logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 0.2rem;
}

.nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.nav a:hover,
.nav a.active {
  background: var(--gray-light);
  color: var(--blue);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* === Hero (homepage) === */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 700px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.hero__cta:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* === Hero compact (article pages) === */
.hero--compact {
  min-height: 280px;
  padding: 6rem 0 3rem;
}

.hero--compact .hero__title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.breadcrumb a {
  color: var(--white);
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
  color: var(--gold);
}

.breadcrumb .sep {
  opacity: 0.5;
}

/* === Cards Grid === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body {
  padding: 1.5rem;
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--turquoise);
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card__title a {
  color: var(--orange);
}

.card__title a:hover {
  color: var(--orange-dark);
}

.card__excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Discover cards (homepage 3-col) */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.discover-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.discover-card:hover {
  transform: translateY(-4px);
}

.discover-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.discover-card h3 {
  margin-bottom: 0.3rem;
  color: var(--blue);
}

.discover-card .tagline {
  font-size: 0.85rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
}

.discover-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === Practical banner === */
.practical-banner {
  background: var(--blue);
  color: var(--white);
  padding: 3rem 0;
}

.practical-banner h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 2rem;
}

.practical-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.practical-links a {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition);
}

.practical-links a:hover {
  background: var(--gold);
  color: var(--white);
}

/* === Article content === */
.article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article h2 {
  color: var(--blue);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
}

.article h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}

.article p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.article img {
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.article a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.article a:hover {
  color: var(--orange-dark);
}

.article ul, .article ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article ul { list-style: disc; }
.article ol { list-style: decimal; }

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

.article blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gray-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

/* Info boxes (from WP et-box) */
.article .info-box {
  background: var(--gray-light);
  border-left: 4px solid var(--turquoise);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.article .info-box strong:first-child {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--blue);
}

/* Gallery */
.article .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.article .gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0;
}

.article .gallery figcaption,
.article .gallery .wp-caption-text {
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* Thumbnail float */
.article .thumb-float {
  float: left;
  margin: 0 1.5rem 1rem 0;
  border-radius: var(--radius-sm);
  width: 200px;
  height: 200px;
  object-fit: cover;
}

/* === Hub/Listing pages === */
.hub-intro {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  text-align: center;
}

.hub-intro h2 {
  border: none;
  padding: 0;
}

/* === Contact form === */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.contact-form button:hover {
  background: var(--gold-dark);
}

/* === Footer === */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
}

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

.footer a:hover {
  color: var(--white);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__copy {
  opacity: 0.6;
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 50vh;
  }

  .hero--compact {
    min-height: 200px;
    padding: 5rem 0 2rem;
  }

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

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

  .article .thumb-float {
    float: none;
    width: 100%;
    margin: 0 0 1rem 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  body {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header__inner {
    height: 56px;
  }

  .hero__cta {
    padding: 0.75rem 1.8rem;
  }
}
