/* ==============================================
   Three Sixty CUSTOM STYLES
   Non-Tailwind project-specific styles
   ============================================== */

/* CSS VARIABLES */
:root {
  --color-dark-blue: #0041A7;
  --color-dark-blue-bg: #03193c;
  --color-light-blue: #1C2947;
  --color-brand-360-blue: #0041A7;
  --color-brand-audits-green: #24AF3F;
  --color-brand-360-blue-darken: #003380;
  --color-brand-audits-green-darken: #1F8A33;
  
  --color-grey: #929292;
  --color-black: #000000;
  --color-yellow: #ff9600;
  --gold-button: #C6A75E;
  --gold-button-hover: #B79A55;
  --gold-text: #B79A55;
  --gold-button-text: #1B2430;
}

/* Brand Colors */
.bg-dark-blue { background-color: var(--color-dark-blue-bg); }
.bg-light-blue { background-color: var(--color-light-blue); }
.bg-grey { background-color: var(--color-grey); }
.bg-black { background-color: var(--color-black); }
.bg-black-modal { background-color: rgba(0, 0, 0, 0.7); }
.bg-navigation { background-color: rgba(255,255,255, 0.7); }
.bg-yellow { background-color: var(--color-yellow); }
.bg-section { background-color: #EBF2FC; }

/* Max Width Utilities */
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }

.text-dark-blue { color: var(--color-dark-blue) !important; }
.text-light-blue { color: var(--color-light-blue) !important; }
.text-grey { color: var(--color-grey) !important; }
.text-black { color: var(--color-black) !important; }
.text-yellow { color: var(--color-yellow) !important; font-weight: 100 !important; }
.text-brand-360 { color: var(--color-brand-360-blue) !important; }
.text-brand-audits { color: var(--color-brand-audits-green) !important; }
.text-gray-600 { color: #4b5563; }
.text-gray-900 { color: #111827; }
.bg-gradient{
  background: linear-gradient(30deg, var(--color-brand-360-blue) 0%, var(--color-brand-audits-green) 100%);
}
.text-gradient { 
  background: linear-gradient(30deg, var(--color-brand-360-blue) 0%, var(--color-brand-audits-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: bold;
}
.bg-hero-overlay { background: linear-gradient(30deg, rgba(0, 65, 167, 0.75) 0%, rgba(36, 175, 63, 0.75) 100%); }
.min-h-half { min-height: 50vh; }
.min-h-hero { min-height: 65vh; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.bg-primary-button{
  background:
    linear-gradient(var(--color-brand-360-blue), var(--color-brand-360-blue)) padding-box,
    conic-gradient(from var(--button-border-angle), var(--color-brand-360-blue), var(--color-brand-audits-green), var(--color-brand-360-blue)) border-box;
  color: #fff;
  border: 4px solid transparent;
  transition: background 300ms ease-in-out;
  --button-border-angle: 0deg;
}

.bg-primary-button:hover {
  background:
    linear-gradient(var(--color-brand-360-blue-darken), var(--color-brand-360-blue-darken)) padding-box,
    conic-gradient(from var(--button-border-angle), var(--color-brand-360-blue), var(--color-brand-audits-green), var(--color-brand-360-blue)) border-box;
  color: #fff;
  animation: primary-button-border-spin 1.2s linear infinite;
}

@property --button-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes primary-button-border-spin {
  from {
    --button-border-angle: 0deg;
  }
  to {
    --button-border-angle: 360deg;
  }
}
.text-gradient { 
  background: linear-gradient(180deg, var(--color-brand-360-blue) 0%, var(--color-brand-audits-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: bold;
}
h1,h2,h3,h4,h5,h6 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold !important;
}

/* ==============================================
   SHARED COOKIE BANNER STYLES
   ============================================== */

#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: #020617;
  color: #f9fafb;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner-button {
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #4b5563;
  background-color: transparent;
  color: #f9fafb;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.cookie-banner-button:hover {
  background-color: #111827;
  border-color: #6b7280;
}

.cookie-banner-button-primary {
  background-color: #38bdf8;
  border-color: transparent;
  color: #020617;
}

.cookie-banner-button-primary:hover {
  background-color: #facc15;
  color: #020617;
}

.cookie-banner-link {
  text-decoration: underline;
  color: #38bdf8;
}

.cookie-banner-link:hover {
  color: #facc15;
}

/* ==============================================
   SHARED BLOG CARD STYLES
   ============================================== */

.blog-empty-icon,
.blog-inline-link,
.blog-card-category-link,
.blog-card-read-more {
  color: var(--color-light-blue);
}

.blog-empty-title,
.blog-card-title-link {
  color: var(--color-dark-blue);
}
.blog-card-title-link:hover{
  color: var(--color-brand-audits-green);
}

.blog-inline-link,
.blog-card-title-link,
.blog-card-read-more,
.blog-posts-cta {
  transition: color 0.2s ease, background-color 0.2s ease;
}

.blog-inline-link:hover,
.blog-card-read-more:hover {
  color: var(--color-brand-audits-green);
}
.blog-posts-cta {
  background-color: var(--color-brand-audits-green);
}

.blog-posts-cta:hover {
  background-color: var(--color-dark-blue);
}

/* Brand Text Styling */
.text-brand {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.125rem;
  .text-golden {font-weight:normal;}
}

.text-brand-360 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 100;
  font-size: 1.1rem;
  line-height: 0.5rem;
}

.text-brand-audits {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
}

@media (min-width: 640px) {
  .text-brand {
    font-size: 1.5rem;
    line-height: 1.625rem;
  }
  
  .text-brand-360 {
    font-size: 1.95rem;
    line-height: 1.625rem;
  }
}

.bg-gradient .text-gray-900 { color: #fff !important; }

/* Ensure h1 line-height override */
h1.text-4xl.md\:text-5xl.lg\:text-6xl.font-bold.text-gray-900.tracking-tight.font-normal.mb-16.leading-tight {
  line-height: 1.25 !important;
}

/* Blockquote styling */
blockquote {
  display: block;
  margin-block-start: 3em;
  margin-block-end: 3em;
  margin-inline-start: 40px;
  border-left: 5px solid #ccc;
  padding-left: 40px;
}

/* Navigation Specific Styles */
nav, .fixed.bg-gradient, .fixed.bg-white {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

.fixed.bg-gradient > .grid,
.fixed.bg-white > .grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Hamburger Menu */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  cursor: pointer;
  padding: 4px;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-dark-blue);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu:hover span {
  background-color: #c5a677;
}

.hamburger-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 13rem;
  background-color: #ffffff;
  color: #1f2937;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  overflow: hidden;
}

.hamburger-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

.hamburger-dropdown a {
  display: block;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.hamburger-dropdown a:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
}

.hamburger-dropdown a:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.hamburger-dropdown a:last-child {
  border-bottom: none;
  border-radius: 0 0 0.5rem 0.5rem;
}

.hamburger-dropdown hr {
  margin: 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.relative {
  position: relative;
}

/* Spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Code blocks */
.code-block {
  background-color: #1e293b;
  color: #cbd5e1;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

code {
  background-color: #e5e7eb;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background-color: #f9fafb;
  font-weight: 600;
}

/* Transitions & Animations */
.animate-fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Button focus states */
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Form elements */
input, textarea, select {
  color: #1e293b;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 0;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  nav {
    display: none;
  }
  
  .no-print {
    display: none;
  }
}

.text-mobile-hero {
  font-size: 3rem !important;
  line-height: 3rem !important;
}

/* ==============================================
   BLOG CARD SCROLL
   ============================================== */
.blog-card-scroll {
  height: 12rem;
  overflow: hidden;
}

/* ==============================================
   BLOG POST BODY PROSE STYLES
   Scoped to #blogpost-content to avoid conflicts
   ============================================== */
#blogpost-content article,
#blogpost-content .blog-body {
  color: #1e293b;
  font-size: 1.125rem;
  line-height: 1.75;
}

#blogpost-content h1 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#blogpost-content h2 {
  font-size: 1.5rem;
  line-height: 1.33;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #EBF2FC;
}

#blogpost-content h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#blogpost-content h4,
#blogpost-content h5,
#blogpost-content h6 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

#blogpost-content p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #334155;
}

#blogpost-content ul,
#blogpost-content ol {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

#blogpost-content ul {
  list-style-type: disc;
}

#blogpost-content ol {
  list-style-type: decimal;
}

#blogpost-content li {
  margin-bottom: 0.4rem;
  color: #334155;
  display: list-item;
}

#blogpost-content strong {
  font-weight: 700;
  color: #0f172a;
}

#blogpost-content em {
  font-style: italic;
}

#blogpost-content a {
  color: var(--color-brand-360-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#blogpost-content a:hover {
  color: var(--color-brand-audits-green);
}

#blogpost-content blockquote {
  border-left: 4px solid var(--color-brand-360-blue);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: #475569;
  font-style: italic;
  background: #EBF2FC;
  border-radius: 0 0.25rem 0.25rem 0;
}

#blogpost-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
  background-color: white;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem;
  transition: border-color 0.2s ease;
}
