@import url('./resources.css');
@import url('./gocxm_colours.css');

/* === ROOT SYSTEM === */
/* (Change your colours and fonts under this section) */
:root {
  --background: var(--greyscale-color-gray-100); /* Primarily the main background */
  --foreground: var(--greyscale-color-gray-900); /* Main Body Text Colour */
  --card-background: var(--greyscale-color-gray-50); /* Primarily the alternative background */
  --card-foreground: var(--greyscale-color-gray-600); /* Alternative Body Text Colour */
  --primary-foreground: var(--greyscale-color-gray-50); /* Main Body Inverted Text colour */
  --primary: var(--brand-color-blue-800); /* Main Brand Text Colour */
  --secondary: var(--brand-color-blue-300); /* Secondary Brand Text Colour */
  --accent: var(--brand-color-blue-50); /* Accent Colour */
  --accent-foreground: var(--brand-color-blue-900); /* Accent Text Colour */

  --border: var(--greyscale-color-gray-300);


  --font-title: 'Inter', sans-serif;
  --font-subtitle: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --border-radius: 8px;
  --bold: 900;
  --regular: 300;
}


.skip-link {
  background: #ca7c3c;
  color: white;
  font-weight: 700;
  left: 50%;
  padding: 5px 10px;
  position: absolute;
  transform: translateY(-500%);
  transition: transform 0.3s;
  z-index: 999;
}
a.skip-link:focus {
  transform: translateY(00%);
}

/* --- Shared Main Navigation Styles --- */
.site-header {
  position: fixed;
  top: 0;
  z-index: 90;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: var(--card-background);
  backdrop-filter: blur(8px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  color: var(--primary);
  font-weight: var(--bold);
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-weight: var(--regular);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s, color 0.2s;
  color: var(--foreground);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.dropdown-container {
  position: relative;
}

.dropdown-container::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 12rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 85;
}

.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  border-radius: calc(var(--border-radius) - 2px);
  cursor: pointer;
  color: var(--foreground);
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.chevron {
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
  transition: transform 0.2s;
  opacity: 0.5;
}

.dropdown-container:hover .chevron {
  transform: rotate(180deg);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  color: var(--foreground);
}

.mobile-toggle:hover {
  background-color: var(--accent);
}

.mobile-nav-wrapper {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-wrapper {
    display: block;
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  }

  .mobile-nav-wrapper.open {
    transform: scaleY(1);
    opacity: 1;
  }

  .mobile-nav-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-nav-link {
    color: var(--foreground);
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: var(--regular);
    border-radius: var(--border-radius);
    background-color: transparent;
    transition: background-color 0.2s;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    background-color: var(--accent);
  }

  .mobile-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: var(--foreground);
    cursor: pointer;
  }

  .mobile-dropdown-content {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid var(--border);
    margin-left: 0.5rem;
  }

  .mobile-dropdown-content.open {
    display: flex;
  }
}

.clear-both {
    clear: both;
}
.hide { 
	display: none!important;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

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

body {
    padding-top: 80px; /* Account for fixed navbar height */
}

* {
	box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Adjust for mobile if needed */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* May need adjustment for mobile header height */
    }
}

/* === GENERAL SETTINGS === */
body {background: var(--background);}

/* === FONT SETTINGS === */
body, html, p, a, b, i, u, em{font-family: var(--font-body) !important; line-height: 1.3;}
h1, h2, h3, h4, h5, h6 .element-btn {font-family: var(--font-title) !important; font-weight: 900; margin: 0; line-height: 1.3; color: var(--primary);}
*, html, body {font-size: 16px; margin: 0; font-weight: var(--regular);}
strong, b {font-weight: 900;}
h1 {font-size: 3rem;}
h2 {font-size: 2rem;}
h3 {font-size: 1.25rem;}
h4 {font-size: 1.13rem;}
p {color: var(--foreground);}
p.p-lg {font-size: 1.25rem;}
p.p-sm {font-size: 0.88rem;}
p.sub {font-size: 1.25rem;color: var(--card-foreground);}
a:hover {opacity: 0.8;}
ul {
	list-style-type: none;
}
a {
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s ease;
}

@media screen and (max-width: 460px) {
  h1 {font-size: 2rem; padding: 0;}
  h2 {font-size: 1.3rem;}
  h3 {font-size: 1.3rem;}
}

/* === GLOBAL SECTIONS SETTINGS === */

/* Padding settings */
.hero {padding: 0 !important;}
.main-container {
  width: 100%;
  max-width:1200px;
  padding: 64px 0px;
  margin:0 auto;
}
.first-section {padding: 32px 0 0;}
.main-content {
  scroll-margin-top: 100px;}

@media screen and (max-width: 1024px) {
  .main-container {padding: 32px 16px;}
}
@media screen and (max-width: 768px) {
  .main-container {padding: 16px;}
}
@media screen and (max-width: 400px) {
  .main-container {padding: 8px 16px !important;}
}

.grid {display: grid; gap: 16px;}
.col-1 {grid-template-columns: repeat(1, 1fr);}
.col-2 {grid-template-columns: repeat(2, 1fr);}
.col-3 {grid-template-columns: repeat(3, 1fr);}
.col-4 {grid-template-columns: repeat(4, 1fr);}

@media screen and (max-width: 640px) {
  .grid {gap:8px;}
  .col-4 {grid-template-columns: repeat(2, 1fr);}
  .col-3 {grid-template-columns: repeat(2, 1fr);}
  .col-2 {grid-template-columns: repeat(1, 1fr);}
}
/* === GLOBAL BUTTONS === */
.btn {
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: var(--regular);
  border-radius: var(--border-radius);
  text-decoration: none;
  text-align: center;
  font-family: var(--font-body);
  display: inline-block;
  border:none;
}
.primary-btn {
  background: var(--primary);
  color: var(--primary-foreground);
}
.secondary-btn {
  border: 1px solid var(--primary);
  background: rgba(2555,255,255,0.3);
  color: var(--primary);
}
.tertiary-btn {
  font-weight: normal;
  font-family: var(--font-body);
  color: var(--primary);
  padding: 0 0 2px 0;
  background: transparent;
  border-bottom: 1px solid var(--primary);
  border-radius: 0;
}
.primary-btn:hover {
  color: var(--primary-foreground) !important;
  box-shadow: 0 0 2px var(--primary);
}
.secondary-btn:hover {
  text-decoration: none;
  color: var(--foreground);
  box-shadow: 0 0 10px var(--primary);
}
.tertiary-btn:hover {opacity: 0.8;
  color: var(--primary);}

/* When a button is disabled, add this class to the button */
.disabled-btn {
  background: var(--greyscale-color-gray-400) !important;
  color: var(--greyscale-color-gray-600) !important;
}
/* AODA: NOTICEABLE OUTLINE FOR KEYBOARD FOCUS */
a:focus,a:active,button:focus,button:active,.btn.active.focus, .btn.active:focus,.btn.focus,.btn:active.focus, .btn:active:focus,.btn:focus { outline: 1px solid #000000; box-shadow: none;}

@media screen and (max-width: 830px) {
  .btn {width: 100%;}
}

/* ==== UPDATED NAVIGATION STYLES - APR 21, 2026 ==== */
/* ========================================== */
/* ========== TABBED BRAND SECTION ========== */
/* ========================================== */

.brand-navigation {
    position: sticky;
    top: 80px; /* Aligned with fixed header height */
  z-index: 70;
    background: var(--background);
    padding: 8px 0;
    width: 100%;
}

/* --- Desktop Tabs --- */
.desktop-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Allows tabs to wrap to a new line on smaller desktop screens */
    justify-content: center; /* Change to 'flex-start' if you want them left-aligned but touching */
    gap: 8px;
    padding: 8px 0;
}

.tab-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents text from wrapping inside the button */
    flex: 0 1 auto; /* Ensures buttons only take up as much space as their text */
}

.tab-btn:hover {
    border-color: var(--border);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--border);
}

/* --- Custom Dropdown (Glassmorphism + Roots) --- */
.custom-dropdown {
    display: none;
    position: relative;
    width: 100%;
}

.selected-display {
  margin-top:8px;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 16px;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-options {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    width: 100%;
    background: rgba(26, 26, 26, 0.95); /* Matches your --surface-invert */
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    list-style: none;
    padding: 8px;
    z-index: 71;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: calc(100vh - 180px);
    max-height: calc(100dvh - 180px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.dropdown-options.show { display: block; }

.option {
    padding: 12px 16px;
    color: var(--primary-foreground);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
}

/* Matching the gold/brand02 highlight from your logic */
.option.active {
    background: var(--brand02); 
}

.option .checkmark { opacity: 0; }
.option.active .checkmark { opacity: 1; }

/* --- Brand Content Toggle --- */
.brand-content { display: none; }
.brand-content.active { display: block; }

/* --- Responsive Switch --- */
@media screen and (max-width: 830px) {
    .desktop-tabs { display: none; }
    .custom-dropdown { display: block; }
    
    .brand-content .brand_assets {
    flex-direction: column;
    }
}

/* --- Mini Nav for brands --- */
.card.mini-nav {
    align-items: center;
    width: fit-content !important;
    margin: 0 auto;
}
@media screen and (max-width: 830px) {
    .card.mini-nav {width: 100% !important;}
    .mini-nav nav a {margin: 4px auto;}
}

/* Skip to Main Content (Do not delete) */
.skip {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.back_arrow {
    text-decoration: none;
    display: block;
    position: absolute;
    top:24px;
    left: 48px;
    color: inherit;
    width: fit-content
  }
  .fa-solid.fa-arrow-left {
    font-family: 'FontAwesome' !important;
    font-style: normal;
    font-weight: normal;
  }
  @media screen and (max-width: 640px) {
    .back_arrow {
      left: 16px;
    }
  }


/* Template Layouts */ 
.intro {display: flex; flex-direction: column; justify-items: center; align-content: center; gap: 16px; text-align: center; padding: 48px 48px 24px;}
@media screen and (max-width: 640px) {
  .intro {padding: 48px 0 24px;}
}
.card {
  padding: 16px;
  background: var(--card-background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.highlight_card {
  background: var(--brand-color-blue-50);
  border: 1px solid var(--primary);
}
.card img {max-width: 100%;}
@media screen and (max-width: 460px){
  .brand_assets {flex-wrap:wrap;}
}
/* ========================================== */
/* ========== END OF GLOBAL STYLES ========== */
/* ========================================== */


/* ========================================== */
/* ========== END OF FAUX FOOTER ========== */
/* ========================================== */
.faux-footer {background: var(--primary);}
.faux-footer {margin-top: auto;}
.faux-footer .main-content {margin: 0 auto; max-width: 1200px; padding: 24px;}
.trello-section {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.faux-footer .p-sm {color: var(--primary-foreground); display: block; margin: 24px auto; text-align: center;}

@media screen and (max-width: 640px) {
  .trello-section {
    flex-direction: column;
    text-align: center;
  }
  .btns {width: 100%; display:flex; flex-direction:column; gap: 8px;}
}
/* ========================================== */
/* ========== END OF FAUX FOOTER ========== */
/* ========================================== */

/* ====================================== */
/* ========== HOME CATEGORY ========== */
/* ====================================== */
.home_categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media screen and (max-width: 640px) {
  .home_categories {grid-template-columns: repeat(2, 1fr);}
}
@media screen and (max-width: 400px) {
  .home_categories {grid-template-columns: repeat(1, 1fr);}
}
/* ========================================== */
/* ========== END OF HOME CATEGORY ========== */
/* ========================================== */


/* ========================================== */
/* ================ PALETTES ================ */
/* ========================================== */

/* GENERAL Things */
.menu-item-title {display: none !important;}
.brand {margin: 24px auto;}
.brand_logo {margin: 0 auto 24px; display: flex; flex-direction: row; gap: 16px; justify-content: center; align-items: center;}
.brand_logo img {max-height: 48px; height: 100%; width: auto; margin-top: 16px;}
.vlogo img {max-height: 120px !important;}
.category-title {display: none !important;}
.brand_assets {display: flex; gap: 8px;}
.brand_content .card {width: 100%; gap: 8px;}
.brand_palettes {margin-top: 8px;}
.palette {display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px;}
.shape { width: 100px; height: 100px; border-radius: var(--border-radius); border: 1px solid var(--border);}
.colour {
  max-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.colour h4 {font-size: 1rem !important; color: var(--foreground) !important;}
.colour hr{border: none; border-bottom: 1px solid var(--border);}
@media screen and (max-width:400px) {
  .brand_logo img {height: auto; max-width: 300px; width: 100%;
        max-height: 100%;}
  .brand_assets {flex-direction: column;}
  .color {max-width: 100%; width: 100%;}
}

/* === AUTHENTICATION STYLES === */
/* Custom styles for the authentication UI */
#auth-loading-indicator {
  font-family: var(--font-body) !important;
}

#auth-loading-indicator h3 {
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 600;
  margin-bottom: 20px;
}

#auth-loading-indicator p {
  color: var(--card-foreground);
  font-family: var(--font-body);
  line-height: 1.5;
}

#google-signin-btn {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--border-radius) !important;
  padding: 16px 24px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  font-family: var(--font-body) !important;
}

#google-signin-btn:hover {
  background: var(--secondary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(51, 103, 214, 0.3) !important;
}

#try-again-btn, #back-to-signin-btn {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: none !important;
  border-radius: var(--border-radius) !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-family: var(--font-body) !important;
}

#try-again-btn:hover, #back-to-signin-btn:hover {
  background: var(--secondary) !important;
  transform: translateY(-1px) !important;
}

/* Ensure the authentication overlay has proper styling */
#auth-loading-indicator {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* === END AUTHENTICATION STYLES === */


/* ========================================== */
/* ================ White Label ================ */
/* ========================================== */
.brand_assets.wl_assets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.brand_assets.wl_assets img {width: 100%;}

@media screen and (max-width: 830px) {
  .brand_assets.wl_assets {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 420px) {
  .brand_assets.wl_assets {
    grid-template-columns: repeat(2, 1fr);
  }
}
