/*
Theme Name:   GCA (Astra child)
Theme URI:    https://gcakw.org
Description:  Presentation layer for the Gujarati Cultural Association of Golden Triangle. Keeps GCA styling separate from Astra so the parent theme can be updated safely.
Author:       GCA
Template:     astra
Version:      1.0.0
Text Domain:  astra-gca
*/

/* ==========================================================================
   1. Design tokens
   Palette taken from Navratri itself — night-sky indigo, marigold, bandhani
   pink, peacock teal — rather than a generic cream-and-terracotta scheme.
   ========================================================================== */
:root {
  --gca-night:      #141036;
  --gca-night-2:    #1E1852;
  --gca-night-3:    #0E0B26;
  --gca-saffron:    #F5890B;
  --gca-saffron-lt: #FFA92E;
  --gca-magenta:    #D9155F;
  --gca-teal:       #0F9C8C;
  --gca-cream:      #FFF6E9;
  --gca-cream-2:    #FDEBD2;
  --gca-ink:        #191534;
  --gca-ink-soft:   #5A5478;
  --gca-ink-faint:  #8B85A6;
  --gca-rule:       #EFE0C9;

  --gca-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gca-r-lg: 26px;
  --gca-r-md: 18px;
  --gca-shadow: 0 2px 4px rgba(20,16,54,.06), 0 18px 40px -18px rgba(20,16,54,.35);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
body { background: var(--gca-cream); color: var(--gca-ink); }

h1, h2, h3, h4,
.uagb-heading-text,
.ues-title,
.gca-tier-heading {
  font-family: var(--gca-display);
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* ==========================================================================
   3. Header — logo sits on the page, menu sits in a floating white pill
   ========================================================================== */
.site-header { background: transparent; }

/* Logo on a light disc so its navy lettering stays legible over the dark hero */
.site-branding.ast-site-identity { display: flex; align-items: center; gap: 15px; padding: 0; }

.site-logo-img .custom-logo-link {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--gca-cream) 78%, var(--gca-cream-2) 100%);
  box-shadow: 0 6px 22px -6px rgba(0,0,0,.55), 0 0 0 5px rgba(255,255,255,.14);
}
.site-logo-img .custom-logo-link img.custom-logo {
  width: 78px; height: 78px; max-width: 78px; object-fit: contain; display: block;
}

/* Dark by default so it reads on the cream pages. Pages that opt into a dark
   hero add .gca-dark-header to <body> and get the light treatment instead. */
.gca-wordmark {
  font-family: var(--gca-display); font-weight: 800; color: var(--gca-ink);
  font-size: 1.14rem; line-height: 1.14; letter-spacing: -.015em;
}
.gca-wordmark em {
  display: block; font-style: normal; font-weight: 600;
  font-size: .94rem; color: var(--gca-saffron); letter-spacing: 0;
}
.gca-dark-header .gca-wordmark { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.gca-dark-header .gca-wordmark em { color: #FFD9A3; }

/* The menu itself becomes the white pill */
.ast-builder-menu-1 .main-header-bar-navigation > .main-header-menu,
.ast-builder-menu-1 ul.main-header-menu {
  background: rgba(255,255,255,.97);
  border-radius: 999px;
  box-shadow: var(--gca-shadow);
  padding: 7px 10px;
  backdrop-filter: saturate(1.4) blur(6px);
}
/* Astra sets link colour via `.ast-builder-menu-1 .main-header-menu > .menu-item
   > .menu-link` (four classes), so these overrides use its own class names and
   add one more class to win cleanly rather than resorting to !important. */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  border-radius: 999px; padding: 9px 14px;
  font-size: .87rem; font-weight: 550; color: #443E66; line-height: 1.2;
}
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover {
  background: var(--gca-cream-2); color: var(--gca-ink);
}
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current_page_item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
  background: var(--gca-ink); color: #fff;
}

/* Sub-menus keep their own card, not the pill */
.ast-builder-menu-1 ul.main-header-menu .sub-menu {
  border-radius: var(--gca-r-md); box-shadow: var(--gca-shadow);
  padding: 6px; border: none; overflow: hidden;
}
.ast-builder-menu-1 ul.main-header-menu .sub-menu a { border-radius: 12px; font-size: .86rem; }

/* Mobile toggle picks up the same pill treatment */
.ast-button-wrap .ast-mobile-menu-trigger-minimal {
  background: rgba(255,255,255,.97); border-radius: 999px;
  width: 46px; height: 46px; box-shadow: var(--gca-shadow); color: var(--gca-ink);
}

@media (max-width: 921px) {
  .site-logo-img .custom-logo-link { width: 68px; height: 68px; }
  .site-logo-img .custom-logo-link img.custom-logo { width: 55px; height: 55px; max-width: 55px; }
  .gca-wordmark { font-size: .92rem; }
  .gca-wordmark em { font-size: .78rem; }
  /* the pill only makes sense for a horizontal menu */
  .ast-builder-menu-1 ul.main-header-menu { background: none; box-shadow: none; padding: 0; backdrop-filter: none; }
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.gca-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 27px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  border: 2px solid transparent; text-decoration: none;
}
.gca-btn svg { flex: none; }
.gca-btn-primary { background: var(--gca-saffron); color: #fff; box-shadow: 0 10px 26px -10px rgba(245,137,11,.95); }
.gca-btn-primary:hover { background: var(--gca-saffron-lt); color: #fff; }
.gca-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.36); }
.gca-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.gca-btn-dark { background: var(--gca-ink); color: #fff; }
.gca-btn-dark:hover { background: var(--gca-night-2); color: #fff; }

/* ==========================================================================
   5. Event cards  (markup comes from the upcoming-events-slider plugin,
   which ships these classes but no styling of its own)
   ========================================================================== */
.ues-head { margin-bottom: 26px; }
.ues-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.08; margin: 0; }
.ues-viewall {
  font-weight: 700; color: var(--gca-ink); text-decoration: none;
  border-bottom: 2px solid var(--gca-saffron); padding-bottom: 2px;
}

.ues-card {
  background: #fff; border-radius: var(--gca-r-lg); overflow: hidden;
  box-shadow: var(--gca-shadow); display: flex; flex-direction: column; height: 100%;
  transition: transform .18s ease;
}
.ues-card:hover { transform: translateY(-4px); }
.ues-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }

.ues-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gca-cream-2); }
.ues-media .ues-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ues-date-badge {
  position: absolute; left: 16px; top: 16px; background: #fff; border-radius: 14px;
  padding: 9px 13px; text-align: center; box-shadow: 0 6px 16px -6px rgba(20,16,54,.5);
  display: block; line-height: 1;
}
.ues-date-day {
  display: block; font-family: var(--gca-display); font-weight: 800;
  font-size: 1.4rem; line-height: 1; color: var(--gca-ink); font-variant-numeric: tabular-nums;
}
.ues-date-mon {
  display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gca-magenta); font-weight: 700; margin-top: 3px;
}

.ues-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.ues-card-title {
  font-family: var(--gca-display); font-weight: 800; font-size: 1.28rem;
  line-height: 1.18; margin: 0; letter-spacing: -.015em; color: var(--gca-ink); text-decoration: none;
}
.ues-meta { display: flex; flex-direction: column; gap: 6px; color: var(--gca-ink-soft); font-size: .9rem; }
.ues-meta > span { display: flex; align-items: center; gap: 8px; }
.ues-meta svg { flex: none; color: var(--gca-ink-faint); }

/* The carousel must clip its off-screen slides, or the next slide pushes the
   page sideways on phones. */
.ues-section, .upcoming-events-slider { overflow: hidden; max-width: 100%; }
.upcoming-events-slider .swiper-wrapper { box-sizing: content-box; }

/* Swiper chrome */
.upcoming-events-slider .swiper-button-next,
.upcoming-events-slider .swiper-button-prev {
  width: 42px; height: 42px; border-radius: 999px; background: #fff;
  box-shadow: var(--gca-shadow); color: var(--gca-ink);
}
.upcoming-events-slider .swiper-button-next::after,
.upcoming-events-slider .swiper-button-prev::after { font-size: 15px; font-weight: 700; }
.upcoming-events-slider .swiper-pagination-bullet-active { background: var(--gca-saffron); }

/* ==========================================================================
   6. Sponsors
   ========================================================================== */
.gca-tier-heading {
  font-size: 1.05rem; letter-spacing: .01em; margin: 0 0 18px;
  display: flex; align-items: center; gap: 14px;
}
.gca-tier-heading::after { content: ""; height: 1px; background: var(--gca-rule); flex: 1; }
.gca-logos { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.gca-logo {
  background: #fff; border: 1px solid var(--gca-rule); border-radius: var(--gca-r-md);
  /* height:auto is required — the base rule sets height:240px, and combining
     that with aspect-ratio would force the width to 427px and break mobile */
  height: auto; aspect-ratio: 16 / 9; min-width: 0;
  display: grid; place-items: center; padding: 18px;
}
.gca-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* ==========================================================================
   7. Footer — real icons instead of two words run together
   ========================================================================== */
/* Astra paints each footer row separately, so colouring only .site-footer
   leaves light rows sitting on top of the dark shell. */
.site-footer,
.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap,
.site-footer .site-above-footer-wrap {
  background-color: var(--gca-night-3);
  border-color: rgba(255,255,255,.11);
}
.site-footer { color: #C6BFE8; }
.site-footer a,
.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright a { color: #C6BFE8; }
.site-footer a:hover { color: var(--gca-saffron-lt); }
.site-footer .gca-foot-contact,
.site-footer .gca-foot-contact a { color: #C6BFE8; }

.gca-foot-brand {
  font-family: var(--gca-display); font-weight: 800; color: #fff;
  font-size: 1rem; line-height: 1.2; margin-bottom: 10px;
}
.gca-foot-contact { font-size: .92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
/* the separator had no spacing, so email ran straight into the address */
.gca-foot-contact .gca-dot { margin: 0 .55em; color: var(--gca-ink-faint); }

.gca-foot-col-title {
  font-family: var(--gca-display); font-weight: 800; color: #fff;
  font-size: .83rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 15px;
}

.gca-foot-connect { display: flex; gap: 10px; }
.gca-cbtn {
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  display: inline-grid; place-items: center;
  font-size: 0; color: transparent;              /* hide the text, keep it for screen readers */
  text-indent: -9999px; overflow: hidden; position: relative;
}
.gca-cbtn::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 20px; height: 20px; background: #fff;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.gca-cbtn:hover { background: var(--gca-saffron); border-color: var(--gca-saffron); }

.gca-ig::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c2.7 0 3.06.01 4.12.06 1.06.05 1.79.22 2.42.46.66.26 1.22.6 1.77 1.16.56.55.9 1.11 1.16 1.77.24.63.41 1.36.46 2.42.05 1.06.06 1.4.06 4.13s-.01 3.06-.06 4.12c-.05 1.06-.22 1.79-.46 2.42a4.9 4.9 0 0 1-1.16 1.77c-.55.56-1.11.9-1.77 1.16-.63.24-1.36.41-2.42.46-1.06.05-1.4.06-4.12.06s-3.07-.01-4.13-.06c-1.06-.05-1.79-.22-2.42-.46a4.9 4.9 0 0 1-1.77-1.16 4.9 4.9 0 0 1-1.16-1.77c-.24-.63-.41-1.36-.46-2.42C2.01 15.07 2 14.72 2 12s.01-3.07.06-4.13c.05-1.06.22-1.79.46-2.42.26-.66.6-1.22 1.16-1.77A4.9 4.9 0 0 1 5.45 2.52c.63-.24 1.36-.41 2.42-.46C8.93 2.01 9.28 2 12 2Zm0 1.8c-2.67 0-2.99.01-4.04.06-.98.04-1.5.2-1.86.34-.47.18-.8.4-1.15.75-.35.35-.57.68-.75 1.15-.14.36-.3.88-.34 1.86-.05 1.05-.06 1.37-.06 4.04s.01 2.99.06 4.04c.4.98.2 1.5.34 1.86.18.47.4.8.75 1.15.35.35.68.57 1.15.75.36.14.88.3 1.86.34 1.05.05 1.37.06 4.04.06s2.99-.01 4.04-.06c.98-.04 1.5-.2 1.86-.34.47-.18.8-.4 1.15-.75.35-.35.57-.68.75-1.15.14-.36.3-.88.34-1.86.05-1.05.06-1.37.06-4.04s-.01-2.99-.06-4.04c-.04-.98-.2-1.5-.34-1.86a3.1 3.1 0 0 0-.75-1.15 3.1 3.1 0 0 0-1.15-.75c-.36-.14-.88-.3-1.86-.34-1.05-.05-1.37-.06-4.04-.06Zm0 3.07a5.13 5.13 0 1 1 0 10.26 5.13 5.13 0 0 1 0-10.26Zm0 1.8a3.33 3.33 0 1 0 0 6.66 3.33 3.33 0 0 0 0-6.66Zm5.34-3.2a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c2.7 0 3.06.01 4.12.06 1.06.05 1.79.22 2.42.46.66.26 1.22.6 1.77 1.16.56.55.9 1.11 1.16 1.77.24.63.41 1.36.46 2.42.05 1.06.06 1.4.06 4.13s-.01 3.06-.06 4.12c-.05 1.06-.22 1.79-.46 2.42a4.9 4.9 0 0 1-1.16 1.77c-.55.56-1.11.9-1.77 1.16-.63.24-1.36.41-2.42.46-1.06.05-1.4.06-4.12.06s-3.07-.01-4.13-.06c-1.06-.05-1.79-.22-2.42-.46a4.9 4.9 0 0 1-1.77-1.16 4.9 4.9 0 0 1-1.16-1.77c-.24-.63-.41-1.36-.46-2.42C2.01 15.07 2 14.72 2 12s.01-3.07.06-4.13c.05-1.06.22-1.79.46-2.42.26-.66.6-1.22 1.16-1.77A4.9 4.9 0 0 1 5.45 2.52c.63-.24 1.36-.41 2.42-.46C8.93 2.01 9.28 2 12 2Zm0 1.8c-2.67 0-2.99.01-4.04.06-.98.04-1.5.2-1.86.34-.47.18-.8.4-1.15.75-.35.35-.57.68-.75 1.15-.14.36-.3.88-.34 1.86-.05 1.05-.06 1.37-.06 4.04s.01 2.99.06 4.04c.4.98.2 1.5.34 1.86.18.47.4.8.75 1.15.35.35.68.57 1.15.75.36.14.88.3 1.86.34 1.05.05 1.37.06 4.04.06s2.99-.01 4.04-.06c.98-.04 1.5-.2 1.86-.34.47-.18.8-.4 1.15-.75.35-.35.57-.68.75-1.15.14-.36.3-.88.34-1.86.05-1.05.06-1.37.06-4.04s-.01-2.99-.06-4.04c-.04-.98-.2-1.5-.34-1.86a3.1 3.1 0 0 0-.75-1.15 3.1 3.1 0 0 0-1.15-.75c-.36-.14-.88-.3-1.86-.34-1.05-.05-1.37-.06-4.04-.06Zm0 3.07a5.13 5.13 0 1 1 0 10.26 5.13 5.13 0 0 1 0-10.26Zm0 1.8a3.33 3.33 0 1 0 0 6.66 3.33 3.33 0 0 0 0-6.66Zm5.34-3.2a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4Z'/></svg>");
}
.gca-fb::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22 12a10 10 0 1 0-11.56 9.88v-6.99H7.9V12h2.54V9.8c0-2.5 1.49-3.89 3.77-3.89 1.1 0 2.24.2 2.24.2v2.46h-1.26c-1.24 0-1.63.77-1.63 1.56V12h2.78l-.44 2.89h-2.34v6.99A10 10 0 0 0 22 12Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22 12a10 10 0 1 0-11.56 9.88v-6.99H7.9V12h2.54V9.8c0-2.5 1.49-3.89 3.77-3.89 1.1 0 2.24.2 2.24.2v2.46h-1.26c-1.24 0-1.63.77-1.63 1.56V12h2.78l-.44 2.89h-2.34v6.99A10 10 0 0 0 22 12Z'/></svg>");
}

.ast-footer-copyright { color: #8E86B8; font-size: .84rem; }
.ast-footer-copyright a { color: #8E86B8; }

/* ==========================================================================
   8. Accessibility
   ========================================================================== */
a:focus-visible, button:focus-visible, .gca-btn:focus-visible, .gca-cbtn:focus-visible {
  outline: 3px solid var(--gca-saffron); outline-offset: 3px; border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) {
  .ues-card, .ues-card:hover { transition: none; transform: none; }
}
