/*
Theme Name: GÜLDER Astra
Theme URI: http://localhost/gulder
Description: Gülbaharhatun Uluslararası Öğrenci Derneği — Astra child theme
Author: GÜLDER
Template: astra
Version: 1.1.0
Text Domain: gulder-astra
*/

:root {
  --gulder-red: #a82810;
  --gulder-red-deep: #7a1c0c;
  --gulder-gold: #c07020;
  --gulder-gold-soft: #d4a05a;
  --gulder-cream: #f7f2ea;
  --gulder-cream-dark: #ebe3d6;
  --gulder-ink: #1c1511;
  --gulder-muted: #5f564c;
  --gulder-white: #fffcf7;
  --gulder-font-display: "Cormorant Garamond", "Times New Roman", serif;
  --gulder-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --gulder-header-h: 78px;
}

html {
  scroll-behavior: smooth;
}

/* Force vertical page flow — prevents footer-as-sidebar bug */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--gulder-font-body) !important;
  color: var(--gulder-ink);
  background: var(--gulder-cream);
  margin: 0;
}

#page,
.site,
.hfeed.site {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

#content.site-content,
.ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both;
}

h1, h2, h3, h4, .gulder-display {
  font-family: var(--gulder-font-display) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.gulder-wrap {
  width: min(1140px, calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
}

/* ========== HEADER / MENU ========== */
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-main-header-wrap {
  background: rgba(247, 242, 234, 0.97) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 40, 16, 0.1) !important;
  box-shadow: none !important;
}

.ast-primary-header-bar {
  min-height: var(--gulder-header-h) !important;
}

/* Keep logo + menu in a centered content rail (not viewport edges) */
@media (min-width: 922px) {
  .ast-primary-header-bar .site-primary-header-wrap.ast-container,
  #masthead .ast-primary-header-bar .site-primary-header-wrap {
    max-width: 1140px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .ast-primary-header-bar .ast-builder-grid-row-has-sides {
    justify-content: space-between !important;
    gap: 1.5rem !important;
  }

  .ast-primary-header-bar .site-header-primary-section-left,
  .ast-primary-header-bar .site-header-primary-section-right {
    flex: 0 1 auto !important;
    max-width: none !important;
  }

  .ast-primary-header-bar .site-header-primary-section-right {
    margin-left: auto !important;
  }
}

.site-primary-header-wrap.ast-builder-grid-row-container,
.ast-builder-grid-row {
  align-items: center !important;
}

.custom-logo-link {
  display: inline-flex !important;
  align-items: center;
}

.custom-logo {
  max-height: 52px !important;
  width: auto !important;
  height: auto !important;
}

.site-header .site-title,
.ast-site-title-wrap {
  display: none !important;
}

.site-branding.ast-site-identity,
.ast-site-identity {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-wrap: nowrap;
}

.gulder-header-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  text-decoration: none !important;
  line-height: 1.15;
  max-width: 18rem;
}

.gulder-header-brand__name {
  font-family: var(--gulder-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gulder-red);
  letter-spacing: 0.04em;
}

.gulder-header-brand__sub {
  font-family: var(--gulder-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gulder-muted);
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .gulder-header-brand {
    max-width: 12.5rem;
  }

  .gulder-header-brand__sub {
    font-size: 0.62rem;
  }
}

@media (max-width: 921px) {
  .gulder-header-brand__sub {
    display: none;
  }

  .gulder-header-brand__name {
    font-size: 1.15rem;
  }
}

.main-header-menu,
.ast-builder-menu .main-header-menu {
  gap: 0.2rem;
  align-items: center !important;
}

.main-header-menu .menu-link,
.ast-builder-menu .menu-link,
.ast-header-break-point .main-header-menu .menu-link {
  color: var(--gulder-ink) !important;
  font-family: var(--gulder-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  font-size: 0.76rem !important;
  padding: 0.6rem 0.95rem !important;
  line-height: 1.2 !important;
  height: auto !important;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
  line-height: normal !important;
}

.main-header-menu .menu-link:hover {
  color: var(--gulder-red) !important;
  background: rgba(168, 40, 16, 0.07);
}

.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link {
  color: var(--gulder-white) !important;
  background: var(--gulder-red) !important;
  box-shadow: 0 6px 16px rgba(168, 40, 16, 0.22);
}

/* Mobile menu polish */
.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-header-break-point .main-header-bar {
  background: var(--gulder-cream) !important;
}

.ast-button-wrap .menu-toggle,
.ast-mobile-menu-trigger-minimal {
  color: var(--gulder-red) !important;
  border-color: var(--gulder-red) !important;
}

.ast-header-break-point .main-header-bar-navigation {
  background: var(--gulder-white);
  border-top: 1px solid rgba(168, 40, 16, 0.08);
}

.ast-header-break-point .main-header-menu .menu-link {
  padding: 0.9rem 1.1rem !important;
  border-bottom: 1px solid rgba(28, 21, 17, 0.06);
}

/* Sticky header */
.ast-primary-header-bar,
.main-header-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Hide Astra default footer chrome */
.site-below-footer-wrap,
.site-above-footer-wrap,
.site-primary-footer-wrap,
.ast-footer-overlay,
footer.site-footer:not(.gulder-footer) {
  display: none !important;
}

/* ========== BUTTONS ========== */
.gulder-btn,
.wp-block-button__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  height: 48px;
  padding: 0 1.45rem;
  margin: 0;
  background: var(--gulder-red);
  color: var(--gulder-white) !important;
  text-decoration: none !important;
  border: 1.5px solid var(--gulder-red);
  border-radius: 999px;
  font-family: var(--gulder-font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  line-height: 1;
  vertical-align: middle;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gulder-btn:hover,
.wp-block-button__link:hover {
  background: var(--gulder-red-deep);
  border-color: var(--gulder-red-deep);
  transform: translateY(-1px);
  color: var(--gulder-white) !important;
  box-shadow: 0 8px 20px rgba(122, 28, 12, 0.28);
}

.gulder-btn--ghost {
  background: rgba(255, 252, 247, 0.08);
  color: var(--gulder-white) !important;
  border-color: rgba(255, 252, 247, 0.85);
}

.gulder-btn--ghost:hover {
  background: var(--gulder-white);
  color: var(--gulder-red) !important;
  border-color: var(--gulder-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.gulder-btn--gold {
  background: var(--gulder-gold);
  border-color: var(--gulder-gold);
}

.gulder-btn--gold:hover {
  background: #a85e18;
  border-color: #a85e18;
}

/* ========== HOME LAYOUT ========== */
.gulder-front #content,
.gulder-front .site-content,
.gulder-front .ast-container {
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  width: 100% !important;
}

.gulder-front .ast-separate-container .ast-article-single,
.gulder-front article.page,
.gulder-front .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  max-width: none !important;
}

.gulder-front .entry-header {
  display: none !important;
}

.gulder-home {
  display: block;
  width: 100%;
}

/* ========== HERO SLIDER ========== */
.gulder-hero-slider {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--gulder-header-h));
  min-height: calc(100dvh - var(--gulder-header-h));
  overflow: hidden;
  background: #1c1511;
}

.gulder-hero-slider__track {
  position: absolute;
  inset: 0;
}

.gulder-slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  display: flex;
  align-items: flex-end;
}

.gulder-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.gulder-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 12, 8, 0.78) 0%, rgba(20, 12, 8, 0.28) 55%, rgba(20, 12, 8, 0.55) 100%),
    linear-gradient(to top, rgba(20, 12, 8, 0.8) 0%, transparent 48%);
  z-index: 1;
}

.gulder-slide__inner {
  position: relative;
  z-index: 2;
  color: var(--gulder-white);
  padding: 4.5rem 0 5.5rem;
  max-width: min(1140px, calc(100% - 2.5rem));
}

.gulder-slide__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.gulder-slide__brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.gulder-slide__brand strong {
  display: block;
  font-family: var(--gulder-font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.gulder-slide__brand span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.88;
}

.gulder-slide h1 {
  margin: 0 0 0.85rem;
  color: var(--gulder-white);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.12;
  max-width: 16ch;
}

.gulder-slide p {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 252, 247, 0.9);
}

.gulder-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.gulder-hero__actions .gulder-btn {
  flex: 0 0 auto;
}

.gulder-hero-slider__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.35rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.gulder-hero-slider__ui > * {
  pointer-events: auto;
}

.gulder-hero-slider__count {
  color: rgba(255, 252, 247, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  line-height: 1;
}

.gulder-hero-slider__count em {
  font-style: normal;
  color: var(--gulder-gold-soft);
}

.gulder-hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.gulder-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(255, 252, 247, 0.35);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.gulder-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--gulder-gold-soft);
}

.gulder-dot:hover {
  background: var(--gulder-gold-soft);
}

.gulder-hero-slider__arrows {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gulder-arrow {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1.5px solid rgba(255, 252, 247, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--gulder-white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.gulder-arrow:hover {
  background: var(--gulder-red);
  border-color: var(--gulder-red);
  transform: translateY(-1px);
}

/* ========== SECTIONS ========== */
.gulder-section {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
  width: 100%;
}

.gulder-tag {
  display: inline-block;
  color: var(--gulder-gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.7rem;
}

.gulder-lead {
  color: var(--gulder-muted);
  font-size: 1.08rem;
  max-width: 44ch;
  margin: 0 0 2.25rem;
  line-height: 1.6;
}

.gulder-story {
  background: var(--gulder-white);
}

.gulder-story__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.gulder-story h2,
.gulder-activities h2,
.gulder-gallery h2,
.gulder-cta-band h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  color: var(--gulder-red);
  margin: 0 0 0.85rem;
  line-height: 1.15;
}

.gulder-story p {
  color: var(--gulder-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 0.95rem;
}

.gulder-story__media {
  position: relative;
}

.gulder-story__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.gulder-story__media::after {
  content: "";
  position: absolute;
  inset: auto -12px -12px auto;
  width: 42%;
  height: 42%;
  border: 2px solid var(--gulder-gold);
  z-index: -1;
}

.gulder-quote {
  font-family: var(--gulder-font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  color: var(--gulder-red-deep);
  line-height: 1.35;
  border-left: 3px solid var(--gulder-gold);
  padding-left: 1rem;
  margin: 1.35rem 0 0;
  font-style: italic;
}

.gulder-activities {
  background:
    radial-gradient(ellipse at top right, rgba(192, 112, 32, 0.1), transparent 55%),
    var(--gulder-cream);
}

.gulder-activity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 1.5rem;
  background: var(--gulder-white);
  overflow: hidden;
}

.gulder-activity:nth-child(even) .gulder-activity__media {
  order: 2;
}

.gulder-activity__media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.gulder-activity__body {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gulder-activity__body h3 {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  color: var(--gulder-ink);
  margin: 0 0 0.75rem;
}

.gulder-activity__body p {
  color: var(--gulder-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 1.02rem;
}

.gulder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.gulder-chip {
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(168, 40, 16, 0.22);
  color: var(--gulder-red-deep);
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 252, 247, 0.55);
}

.gulder-gallery {
  background: var(--gulder-white);
}

.gulder-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.gulder-gallery__grid figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gulder-gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.gulder-gallery__grid figure:hover img {
  transform: scale(1.05);
}

.gulder-cta-band {
  color: var(--gulder-white);
  text-align: center;
  background-size: cover;
  background-position: center;
}

.gulder-cta-band h2 {
  color: var(--gulder-white);
}

.gulder-cta-band p {
  color: rgba(255, 252, 247, 0.9);
  max-width: 40ch;
  margin: 0.7rem auto 1.5rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.gulder-cta-band .gulder-tag {
  color: var(--gulder-gold-soft);
}

/* ========== FOOTER (BOTTOM, FULL WIDTH) ========== */
.gulder-footer {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  background: #17110e;
  color: rgba(255, 252, 247, 0.78);
  padding: 3.25rem 0 1.35rem;
}

.gulder-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.gulder-footer__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.gulder-footer__brand img {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.gulder-footer h3 {
  color: var(--gulder-white);
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}

.gulder-footer h4 {
  color: var(--gulder-gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  font-family: var(--gulder-font-body) !important;
  font-weight: 700;
}

.gulder-footer p,
.gulder-footer li {
  font-size: 0.95rem;
  line-height: 1.65;
}

.gulder-footer ul,
.gulder-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gulder-footer-menu li {
  margin: 0;
}

.gulder-footer a {
  color: rgba(255, 252, 247, 0.82);
  text-decoration: none;
}

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

.gulder-footer__bottom {
  border-top: 1px solid rgba(255, 252, 247, 0.1);
  padding-top: 1.15rem;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Inner pages */
.gulder-page-hero {
  padding: 3.75rem 0 2.25rem;
  background: linear-gradient(180deg, var(--gulder-cream-dark), var(--gulder-cream));
  border-bottom: 1px solid rgba(168, 40, 16, 0.08);
}

.gulder-page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  color: var(--gulder-red);
  margin: 0 0 0.6rem;
}

.gulder-page-hero p {
  color: var(--gulder-muted);
  font-size: 1.1rem;
  max-width: 48ch;
  margin: 0;
  line-height: 1.6;
}

.entry-content,
.gulder-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gulder-muted);
}

.entry-content h2,
.gulder-prose h2 {
  color: var(--gulder-red);
  margin-top: 1.75rem;
}

.site-content {
  background: var(--gulder-cream);
}

/* Reveal */
.gulder-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .gulder-story__grid,
  .gulder-activity,
  .gulder-footer__grid {
    grid-template-columns: 1fr;
  }

  .gulder-activity:nth-child(even) .gulder-activity__media {
    order: 0;
  }

  .gulder-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gulder-slide__inner {
    padding: 3.5rem 0 5rem;
  }
}

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

  .gulder-hero-slider {
    min-height: 78vh;
  }

  .gulder-slide__brand img {
    width: 52px;
    height: 52px;
  }

  .gulder-hero-slider__ui {
    bottom: 0.85rem;
  }

  .gulder-arrow {
    width: 40px;
    height: 40px;
  }

  .gulder-btn,
  .wp-block-button__link {
    min-height: 46px;
    height: 46px;
    padding: 0 1.2rem;
  }
}
