﻿/**
 * GEGMA Theme - Core Styles
 * Premium, calm, modern design system
 * Collapsible sidebar with logo
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
============================================= */
:root {
  /* Brand Colors */
  --persian-red: #cc3f2f;
  --breaker-bay: #b97867;
  --aths-special: #ece7d4;
  --tarawera: #0f445a;
  --petite-orchid: #e8c4b7;
  --chestnut-rose: #b95e52;
  --oracle: #9a544a;
  --lotus: #7d433f;

  /* Semantic Colors */
  --color-primary: var(--persian-red);
  --color-primary-light: var(--chestnut-rose);
  --color-accent: var(--lotus);
  --color-accent-light: var(--petite-orchid);
  --color-secondary: var(--oracle);
  --color-warm: var(--aths-special);
  --color-background: #f7f2e3;
  --color-surface: #fffdfa;
  --color-surface-alt: #f0e8d4;
  --color-text: #133d51;
  --color-text-muted: rgba(19, 61, 81, 0.72);
  --color-border: rgba(125, 67, 63, 0.16);
  --color-border-strong: rgba(125, 67, 63, 0.30);
  --color-highlight: #f2d7b0;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(63, 37, 30, 0.06);
  --shadow-md: 0 4px 12px rgba(63, 37, 30, 0.10);
  --shadow-lg: 0 8px 30px rgba(63, 37, 30, 0.14);
  --shadow-xl: 0 20px 50px rgba(63, 37, 30, 0.18);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --header-height: 64px;
  --sidebar-width: 280px;
  --sidebar-collapsed: 80px;
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* ============================================
   RESET & BASE
============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  background-image:
    radial-gradient(circle at 92% 8%, rgba(201, 118, 103, 0.16), transparent 32%),
    radial-gradient(circle at 8% 18%, rgba(204, 63, 47, 0.10), transparent 34%),
    var(--gg-bg-images, none);
  background-repeat:
    no-repeat,
    no-repeat,
    var(--gg-bg-repeat, no-repeat);
  background-position:
    92% 8%,
    8% 18%,
    var(--gg-bg-position, 50% 50%);
  background-size:
    auto,
    auto,
    var(--gg-bg-size, auto);
  min-height: 100vh;
  min-height: 100dvh;
}

.gegma-body {
  position: relative;
  overflow-x: hidden;
}

.gg-svg-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  min-height: 100%;
}

/* Decorative SVG should sit above section backgrounds but below readable content. */
.gg-main :where(
  .gg-container,
  .assist-container,
  .assist-hero__container,
  .gg-archive__heroInner,
  .gg-archive__quickCatsInner,
  .gg-archive__resultsInner,
  .gg-archive__categoryCtaInner,
  .gg-categories__heroInner,
  .gg-categories__gridInner,
  .gg-categories__ctaInner,
  .gg-catHero__inner,
  .gg-catSubs__inner,
  .gg-catFeatured__inner,
  .gg-catServices__inner,
  .gg-catBack__inner,
  .gg-service__headerInner,
  .gg-service__layout,
  .gg-service__relatedInner,
  .gg-service__guestNotesInner,
  .gg-dashShell,
  .gg-auth__shell,
  .gg-auth__wrap
),
.gg-footer__inner {
  position: relative;
  z-index: 2;
}

.gg-svg-bg-item {
  position: absolute;
  left: var(--gg-bg-x, 50%);
  top: var(--gg-bg-y, 50%);
  width: var(--gg-bg-size, 260px);
  height: var(--gg-bg-size, 260px);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: var(--gg-bg-opacity, 0.07);
  transform: translate(-50%, -50%) rotate(var(--gg-bg-rotate, 0deg));
  filter: saturate(0.8) contrast(0.95);
  will-change: transform;
}

@media (max-width: 767px) {
  .gg-svg-bg-item {
    width: calc(var(--gg-bg-size, 260px) / 3);
    height: calc(var(--gg-bg-size, 260px) / 3);
  }
}

/* Screen reader only */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   CONTAINER
============================================= */
.gg-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .gg-container {
    padding: 0 var(--space-4);
  }
}

/* ============================================
   BUTTONS
============================================= */
.gg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .gg-btn {
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }
}

.gg-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.gg-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 215, 176, 0.95), 0 0 0 6px rgba(125, 67, 63, 0.35);
}

.gg-btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(204, 63, 47, 0.24);
}

.gg-btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(204, 63, 47, 0.28);
  transform: translateY(-1px);
}

.gg-btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
}

.gg-btn--ghost:hover {
  background: rgba(87, 60, 52, 0.04);
  border-color: var(--color-text);
  color: var(--color-text);
}

.gg-btn--secondary {
  background: rgba(237, 233, 213, 0.9);
  color: var(--color-text);
  border: 1.5px solid rgba(125, 67, 63, 0.24);
}

.gg-btn--secondary:hover {
  background: rgba(201, 118, 103, 0.16);
  border-color: rgba(125, 67, 63, 0.42);
  color: var(--color-text);
}

.gg-btn--outline {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid rgba(154, 84, 74, 0.52);
}

.gg-btn--outline:hover {
  background: rgba(154, 84, 74, 0.1);
  border-color: rgba(154, 84, 74, 0.82);
  color: #7f3f37;
}

.gg-btn--danger {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
  border: 1.5px solid rgba(185, 28, 28, 0.35);
}

.gg-btn--danger:hover {
  background: rgba(185, 28, 28, 0.14);
  border-color: rgba(185, 28, 28, 0.48);
  color: #7f1d1d;
}

.gg-btn[disabled],
.gg-btn:disabled,
.gg-btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.gg-btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
}

.gg-btn--lg svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   LAYOUT - Header on top, Sidebar below
============================================= */
.gg-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  margin-left: 0;
}

/* Sidebar expands OVER the content, not pushing it */
.gegma-body.sidebar-expanded .gg-layout {
  margin-left: 0;
}

@media (min-width: 1025px) {
  .gg-layout {
    width: calc(100% - var(--sidebar-collapsed));
    margin-left: var(--sidebar-collapsed);
  }

  .gegma-body.sidebar-expanded .gg-layout {
    width: calc(100% - var(--sidebar-collapsed));
    margin-left: var(--sidebar-collapsed);
  }
}

.gg-main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.gg-page {
  width: 100%;
  min-width: 0;
}

/* ============================================
   SIDEBAR - Full Height with Logo
============================================= */
.gg-sidebarOverlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(87, 60, 52, 0.40);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.gg-sidebarOverlay.is-active {
  opacity: 1;
  visibility: visible;
}

.gg-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  z-index: 200;
  width: var(--sidebar-collapsed);
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-slow);
  overflow: visible;
}

.gg-sidebar.is-expanded {
  width: var(--sidebar-width);
}

.gegma-body .gg-sidebar:not(#ggSidebar) {
  display: none !important;
}

/* WordPress admin bar support */
.admin-bar .gg-header {
  top: 32px;
}

.admin-bar .gg-sidebar {
  top: calc(var(--header-height) + 32px);
  height: calc(100vh - var(--header-height) - 32px);
  height: calc(100dvh - var(--header-height) - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .gg-header {
    top: 46px;
  }

  .admin-bar .gg-sidebar {
    top: calc(var(--header-height) + 46px);
    height: calc(100vh - var(--header-height) - 46px);
    height: calc(100dvh - var(--header-height) - 46px);
  }
}

@media (max-width: 1024px) {
  .gg-sidebar {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }

  .gg-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-bar .gg-sidebar {
    top: calc(var(--header-height) + 32px);
    height: calc(100vh - var(--header-height) - 32px);
    height: calc(100dvh - var(--header-height) - 32px);
  }

  @media screen and (max-width: 782px) {
    .admin-bar .gg-sidebar {
      top: calc(var(--header-height) + 46px);
      height: calc(100vh - var(--header-height) - 46px);
      height: calc(100dvh - var(--header-height) - 46px);
    }
  }
}


/* Side Navigation */
.gg-sideNav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

body.gg-mega-open .gg-sidebar .gg-sideNav,
.gg-sidebar.has-open-submenu .gg-sideNav {
  overflow-y: visible;
}

/* Sidebar inner wrapper to contain overflow while allowing toggle to be visible */
.gg-sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

body.gg-mega-open .gg-sidebar .gg-sidebar__inner,
.gg-sidebar.has-open-submenu .gg-sidebar__inner {
  overflow: visible;
}

.gg-sideNav__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
  color: var(--color-text-muted);
}

.gg-sideNav__empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-3);
  opacity: 0.4;
}

.gg-sideNav__empty p {
  font-size: 0.8125rem;
  font-weight: 500;
}

.gg-sideNav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.gg-sideNav__item {
  position: relative;
}

.gg-sideNav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

.gg-sidebar.is-expanded .gg-sideNav__link {
  justify-content: flex-start;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  pointer-events: auto;
}

.gg-sideNav__link:hover {
  color: var(--color-text);
}

.gg-sidebar.is-expanded .gg-sideNav__link:hover {
  background: rgba(87, 60, 52, 0.04);
}

.gg-sidebar.is-expanded .gg-sideNav__item.is-active > .gg-sideNav__link,
.gg-sidebar.is-expanded .gg-sideNav__item.is-expanded > .gg-sideNav__link {
  background: rgba(87, 60, 52, 0.06);
}

.gg-sideNav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.gg-sideNav__item:hover .gg-sideNav__icon,
.gg-sideNav__item.is-hovering .gg-sideNav__icon {
  border-color: var(--color-secondary);
  background: rgba(201, 118, 103, 0.08);
}

.gg-sideNav__item.is-active > .gg-sideNav__link .gg-sideNav__icon {
  border-color: var(--color-primary);
  background: rgba(87, 60, 52, 0.06);
}

.gg-sideNav__icon .gg-termIcon {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.gg-sideNav__text {
  display: none;
  flex: 1;
  min-width: 0;
}

.gg-sidebar.is-expanded .gg-sideNav__text {
  display: block;
}

.gg-sideNav__label {
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-sideNav__count {
  display: none;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: rgba(87, 60, 52, 0.06);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.gg-sidebar.is-expanded .gg-sideNav__count {
  display: block;
}

.gg-sideNav__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.gg-sidebar.is-expanded .gg-sideNav__arrow {
  display: flex;
}

.gg-sideNav__arrow svg {
  width: 16px;
  height: 16px;
}

.gg-sideNav__item.is-expanded > .gg-sideNav__link .gg-sideNav__arrow {
  transform: rotate(90deg);
}

/* Inline Submenu (Mobile Accordion) */
.gg-inlineSub {
  padding: var(--space-2) 0 var(--space-2) 56px;
}

.gg-inlineSub[hidden] {
  display: none;
}

.gg-inlineSub__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.gg-inlineSub__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.gg-inlineSub__item:hover {
  background: rgba(87, 60, 52, 0.04);
  color: var(--color-text);
}

.gg-inlineSub__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(87, 60, 52, 0.04);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.gg-inlineSub__icon .gg-termIcon {
  width: 16px;
  height: 16px;
}

/* ============================================
   MEGA PANEL - Hover Popover for both mini and expanded sidebar
============================================= */

.gg-sideNav__item.is-hovering {
  z-index: 9999;
}

.gg-megaPanel {
  display: none;
  position: fixed;
  width: 320px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -12px rgba(87, 60, 52, 0.2);
  z-index: 99999;
  max-height: none;
  overflow: visible;
}

/* Show on hover for BOTH mini + expanded (desktop only) */
.gg-sidebar.is-expanded.is-expanded-ready .gg-sideNav__item.is-hovering > .gg-megaPanel{
  display: block;
  animation: megaPanelIn 0.15s ease-out;
}


@keyframes megaPanelIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1024px) {
  .gg-megaPanel {
    display: none !important;
  }
}

.gg-megaPanel__header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(
    135deg,
    rgba(201, 118, 103, 0.06) 0%,
    rgba(87, 60, 52, 0.03) 100%
  );
}
.gg-megaPanel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: white;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.gg-megaPanel__icon .gg-termIcon {
  width: 22px;
  height: 22px;
  color: var(--color-secondary);
}

.gg-megaPanel__info {
  flex: 1;
  min-width: 0;
  padding-right: var(--space-2);
}


.gg-megaPanel__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1px;

  /* keep title on one line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}



.gg-megaPanel__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.gg-megaPanel__viewAll {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.gg-megaPanel__viewAll:hover {
  background: var(--color-primary);
  color: white;
}

.gg-megaPanel__viewAll svg {
  width: 12px;
  height: 12px;
}

.gg-megaPanel__grid {
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: none;
  overflow: visible;
}

/* Custom scrollbar for mega panel */
.gg-megaPanel__grid::-webkit-scrollbar {
  width: 6px;
}

.gg-megaPanel__grid::-webkit-scrollbar-track {
  background: transparent;
}

.gg-megaPanel__grid::-webkit-scrollbar-thumb {
  background: rgba(87, 60, 52, 0.15);
  border-radius: 3px;
}

.gg-megaPanel__grid::-webkit-scrollbar-thumb:hover {
  background: rgba(87, 60, 52, 0.25);
}

.gg-megaCard {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.gg-megaCard:hover {
  background: rgba(201, 118, 103, 0.08);
  color: var(--color-text);
}

.gg-megaCard__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(87, 60, 52, 0.04);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.gg-megaCard:hover .gg-megaCard__icon {
  background: rgba(201, 118, 103, 0.15);
}

.gg-megaCard__icon .gg-termIcon {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}

.gg-megaCard__name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.gg-megaBridge{
  position: fixed;
  z-index: 99998; /* under panel (99999), above page */
  background: transparent;
  pointer-events: auto;
}

/* ============================================
   HEADER - Full width with logo, centered search
============================================= */
.gg-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--header-height);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(174, 73, 59, 0.12);
}

.gg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  padding: 0 var(--space-6);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .gg-header__inner {
    padding: 0 var(--space-4);
    gap: var(--space-3);
  }
}

/* Header Left - Logo */
.gg-header__left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gg-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.gg-header__logo:hover {
  color: inherit;
}

.gg-header__logoIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.gg-header__logoIcon .gg-logoImg {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.gg-header__logoIcon .gg-brand__fallback {
  width: 40px;
  height: 40px;
}

.gg-header__logoText {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.gg-header__logoName {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.gg-header__logoTagline {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .gg-header__logoText {
    display: none;
  }
}

/* Header Center - Search */
.gg-header__center {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  justify-content: center;
  max-width: 500px;
}

/* Search */
.gg-search {
  position: relative;
  width: 100%;
  min-width: 0;
}

.gg-search__iconBtn {
  position: absolute;
  left: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gg-search__iconBtn svg {
  width: 18px;
  height: 18px;
}

.gg-search__iconBtn:hover {
  color: var(--color-text);
  background: rgba(87, 60, 52, 0.08);
}

.gg-search__iconBtn:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 1px;
}

.gg-search__input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4) 0 48px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-text);
  background: rgba(87, 60, 52, 0.04);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  outline: none;
  transition: all var(--transition-fast);
}

.gg-search__input::placeholder {
  color: var(--color-text-muted);
}

.gg-search__input:focus {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 3px rgba(87, 60, 52, 0.06);
}

@media (max-width: 640px) {
  .gg-header__center {
    max-width: none;
  }
}

/* Header Right */
.gg-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Header dashboard link */
.gg-header__dashLink {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-3);
  position: relative;
  overflow: visible;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.gg-header__dashLink:hover {
  border-color: var(--color-border-strong);
  background: rgba(87, 60, 52, 0.05);
  color: var(--color-text);
}

.gg-header__dashLink svg {
  width: 18px;
  height: 18px;
}

.gg-header__dashLabel {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.gg-header__dashCount {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: var(--persian-red);
  box-shadow: 0 0 0 2px var(--color-surface);
}

@media (max-width: 680px) {
  .gg-header__dashLabel {
    display: none;
  }

  .gg-header__dashLink {
    width: 40px;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 400px) {
  .gg-header__inner {
    padding: 0 var(--space-3);
    gap: var(--space-2);
  }

  .gg-header__dashLink {
    display: none;
  }

  .gg-header__right {
    gap: var(--space-1);
  }
}

/* User Menu */
.gg-userMenu {
  position: relative;
}

.gg-userMenu__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.gg-userMenu__trigger:hover {
  box-shadow: 0 0 0 2px var(--color-border-strong);
}

.gg-userMenu__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.gg-userMenu__avatarPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(87, 60, 52, 0.08);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.gg-userMenu__avatarPlaceholder svg {
  width: 20px;
  height: 20px;
}

.gg-userMenu__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 280px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(87, 60, 52, 0.18);
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gg-userMenu__dropdown[hidden] {
  display: none;
}

.gg-userMenu__info {
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(201, 118, 103, 0.08) 0%, rgba(87, 60, 52, 0.04) 100%);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.gg-userMenu__infoAvatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.gg-userMenu__infoContent {
  flex: 1;
  min-width: 0;
}

.gg-userMenu__name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-userMenu__email {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-userMenu__nav {
  padding: var(--space-3);
}

.gg-userMenu__divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-1) var(--space-3);
}

.gg-userMenu__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.gg-userMenu__item:hover {
  background: rgba(201, 118, 103, 0.1);
  color: var(--color-text);
}

.gg-userMenu__itemIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(87, 60, 52, 0.06);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.gg-userMenu__item svg {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
}

.gg-userMenu__itemText {
  flex: 1;
}

.gg-userMenu__itemLabel {
  display: block;
  font-weight: 500;
  color: var(--color-text);
}

.gg-userMenu__itemDesc {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.gg-userMenu__item--danger {
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  border-radius: 0;
}

.gg-userMenu__item--danger:hover {
  background: rgba(196, 59, 45, 0.08);
}

.gg-userMenu__item--danger svg {
  color: var(--color-accent);
}

.gg-userMenu__item--danger .gg-userMenu__itemIcon {
  background: rgba(196, 59, 45, 0.1);
}

.gg-userMenu__item--danger .gg-userMenu__itemLabel {
  color: var(--color-accent);
}

.gg-userMenu__item--accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  margin-bottom: var(--space-2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gg-userMenu__item--accent:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.gg-userMenu__item--accent svg {
  color: white;
}

.gg-userMenu__item--accent .gg-userMenu__itemIcon {
  background: rgba(255, 255, 255, 0.2);
}

.gg-userMenu__item--accent .gg-userMenu__itemLabel {
  color: white;
}

.gg-userMenu__item--accent .gg-userMenu__itemDesc {
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Toggle */
.gg-mobileMenuToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gg-mobileMenuToggle:hover {
  background: rgba(87, 60, 52, 0.06);
}

.gg-mobileMenuToggle svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 1025px) {
  .gg-mobileMenuToggle {
    display: none;
  }
}

/* ============================================
   FOOTER
============================================= */
.gg-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(204, 63, 47, 0.08), transparent 22rem),
    radial-gradient(circle at 88% 8%, rgba(15, 68, 90, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(255, 253, 250, 0.96) 0%, #f3ecd8 100%);
  border-top: 1px solid rgba(125, 67, 63, 0.16);
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(1.35rem, 2.5vw, 2rem);
}

.gg-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.75rem);
}

.gg-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1rem);
  align-items: stretch;
  margin-bottom: clamp(1rem, 2vw, 1.4rem);
}

@media (max-width: 1024px) {
  .gg-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

.gg-footer__col {
  min-width: 0;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  border: 1px solid rgba(125, 67, 63, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 250, 0.62);
  box-shadow: 0 14px 36px rgba(63, 37, 30, 0.045);
}

.gg-footer__col--brand {
  max-width: none;
  background:
    linear-gradient(145deg, rgba(255, 250, 244, 0.88), rgba(255, 253, 250, 0.72)),
    rgba(255, 253, 250, 0.72);
}

.gg-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: var(--space-4);
}

.gg-footer__brandName {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-family: var(--font-display);
  font-weight: 750;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.035em;
}

.gg-footer__brandTagline {
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gg-footer__text {
  max-width: 29rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.gg-footer__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gg-footer__trustItem {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.58rem;
  border: 1px solid rgba(15, 68, 90, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.gg-footer__trustItem svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #2e7d5a;
}

.gg-footer__title {
  position: relative;
  padding-bottom: 0.65rem;
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.gg-footer__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.25rem;
  height: 2px;
  border-radius: var(--radius-full);
  background: rgba(204, 63, 47, 0.62);
}

.gg-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gg-footer__link {
  display: inline-flex;
  max-width: 100%;
  color: rgba(19, 61, 81, 0.76);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.gg-footer__link:hover,
.gg-footer__link:focus-visible {
  color: var(--color-accent);
  transform: translateX(2px);
}

.gg-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid rgba(125, 67, 63, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 250, 0.54);
  color: rgba(19, 61, 81, 0.68);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .gg-footer {
    display: none;
  }
}

.gg-footer__tagline {
  font-style: italic;
}

/* ============================================
   AUTH PAGES
============================================= */
.gg-auth {
  width: min(100%, 740px);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--space-4) var(--space-8);
}

.gg-auth__shell {
  position: relative;
  isolation: isolate;
}

.gg-auth__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.5;
  z-index: -1;
}

.gg-auth__orb--one {
  width: 220px;
  height: 220px;
  top: -42px;
  right: -18px;
  background: radial-gradient(circle at 30% 30%, rgba(201, 118, 103, 0.45), rgba(201, 118, 103, 0));
}

.gg-auth__orb--two {
  width: 240px;
  height: 240px;
  bottom: -36px;
  left: -32px;
  background: radial-gradient(circle at 60% 50%, rgba(196, 59, 45, 0.16), rgba(196, 59, 45, 0));
}

.gg-auth__wrap {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(87, 60, 52, 0.14);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(87, 60, 52, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.gg-auth__title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.gg-auth__subtitle {
  margin: 0 0 var(--space-6);
  color: var(--color-text-muted);
  max-width: 36ch;
}

.gg-auth__form {
  display: grid;
  gap: var(--space-5);
}

.gg-auth__row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gg-auth__label {
  display: block;
  margin: 0 0 var(--space-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text);
}

.gg-auth__input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(87, 60, 52, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 var(--space-4);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.gg-auth__input:focus {
  outline: none;
  background: #fff;
  border-color: rgba(87, 60, 52, 0.42);
  box-shadow: 0 0 0 4px rgba(87, 60, 52, 0.10);
}

.gg-auth__checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.gg-auth__btn {
  width: 100%;
  justify-content: center;
  min-height: 50px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.gg-auth__divider {
  margin: var(--space-6) 0 var(--space-4);
  position: relative;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.gg-auth__divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.gg-auth__divider span {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 0 var(--space-3);
}

.gg-auth__google {
  display: flex;
  justify-content: center;
  min-height: 46px;
}

.gg-auth__socialFallback {
  width: 100%;
  border: 1px dashed rgba(87, 60, 52, 0.28);
  background: rgba(87, 60, 52, 0.03);
  border-radius: 14px;
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

.gg-auth__socialTitle {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
}

.gg-auth__socialHint {
  margin: var(--space-2) 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.gg-auth__switch {
  margin: var(--space-5) 0 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.gg-auth__switch a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.gg-auth__notice {
  margin: 0 0 var(--space-4);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
}

.gg-auth__notice--error {
  border: 1px solid rgba(185, 28, 28, 0.2);
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

@media (max-width: 640px) {
  .gg-auth {
    padding-inline: 0;
  }

  .gg-auth__wrap {
    border-radius: 18px;
    padding: var(--space-5) var(--space-4);
  }

  .gg-auth__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

