/* ==============================================
   ITC CUSTOM STYLES
   Non-Tailwind project-specific styles
   ============================================== */

/* CSS VARIABLES */
:root {
  --color-black: #000000;
  --color-red: #AF291E;
  --color-dark-red: #7A1F17;
}

/* Brand Colors */
.bg-black { background-color: var(--color-black); }
.bg-black-modal { background-color: rgba(0, 0, 0, 0.7); }
.bg-black-transparent { background-color: rgba(0, 0, 0, 0.5); }
.bg-black-overlay { background-color: rgba(0, 0, 0, 0.45); }
.bg-red-overlay { background-color: rgba(255, 0, 0, 0.45); }
.bg-red { background-color: var(--color-red); }
.bg-dark-red { background-color: var(--color-dark-red); }
.bg-dark-red .text-highlight { color: white !important; }
.bg-white{
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    transition: border-color 0.2s ease;
  }
}
/* Hover states for brand colors */
.hover\:bg-dark-red:hover { background-color: var(--color-dark-red); }
.hover\:bg-black:hover { background-color: var(--color-black); }
.hover\:text-white:hover { color: white !important; }

/* Max Width Utilities */
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[1200px\] { max-width: 1200px !important; }

/* Custom Width Utilities */
.w-\[80px\] { width: 80px !important; }
.h-\[80px\] { height: 80px !important; }
.max-w-\[800px\] { max-width: 800px !important; }
.max-w-\[1200px\] { max-width: 1200px !important; }
.mb-\[60px\] { margin-bottom: 60px !important; }
.h-92 { height: 23rem; } /* 368px - not in Tailwind default scale */

.text-black { color: var(--color-black) !important; }
.text-red { color: var(--color-red) !important; }
.text-dark-red { color: var(--color-dark-red) !important; }

.text-highlight { 
  color: var(--color-red) !important;
}

h1,h2,h3,h4,h5,h6 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: light !important;
}

/* Text Size Utilities (rem-based) */
.text-xs { font-size: 0.75rem; }     /* 12px */
.text-sm { font-size: 0.875rem; }    /* 14px */
.text-base { font-size: 1rem; }      /* 16px */
.text-lg { font-size: 1.125rem; }    /* 18px */
.text-xl { font-size: 1.25rem; }     /* 20px */
.text-2xl { font-size: 1.5rem; }     /* 24px */
.text-3xl { font-size: 1.875rem; }   /* 30px */
.text-4xl { font-size: 2.25rem; }    /* 36px */
.text-5xl { font-size: 3rem; }       /* 48px */
.text-6xl { font-size: 3.75rem; }    /* 60px */
.text-7xl { font-size: 4.5rem; }     /* 72px */
.text-8xl { font-size: 6rem; }       /* 96px */
.text-9xl { font-size: 8rem; }       /* 128px */

/* 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 var(--color-red);
  padding-left: 40px;
}

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

.fixed.bg-dark-blue > .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: white;
  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;
  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;
}
.absolute {
  position: absolute;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }

/* Spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-red);
  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 */
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}


/* 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: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;
}

.nav-logo-mobile {
  width: 56px !important;
  height: 56px !important;
}

.homepage-hero-inner {
  max-width: 34rem;
}

.homepage-brand-title {
  font-size: 2.5rem !important;
  line-height: 0.95 !important;
  margin-bottom: 1.75rem !important;
}

.homepage-hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.homepage-hero-title {
  font-size: 3rem !important;
  line-height: 0.95 !important;
  margin-bottom: 2rem !important;
}

.homepage-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
  padding-top: 0.25rem;
}

.homepage-cta-button {
  width: 100%;
  min-height: 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.homepage-hero-actions > a {
  display: flex;
  margin: 0;
}

.z-50 { z-index: 50; }

.menu-section a, .menu-section div { border-radius: 0 !important; }
/* Side-by-side menu sections */
.hamburger-dropdown.nav-sections-row { display: flex; flex-direction: column; border-radius: 8px 8px 0 0 !important; overflow: hidden; }
.menu-section { display: flex; flex-direction: column; }
.menu-section + .menu-section { border-top: 1px solid #e5e7eb; }
@media (min-width: 640px) {
  .hamburger-dropdown.nav-sections-row { flex-direction: row; align-items: stretch; }
  .menu-section { min-width: 180px; }
  .menu-section + .menu-section { border-top: none; border-left: 1px solid #e5e7eb; }
}

/* External link icon */
.external-link-item::after { content: ' \2197'; font-size: 0.75rem; color: #9ca3af; vertical-align: super; }

/* Member card link size */
.member-card-link { font-size: 0.65rem !important; }

/* Member count circle */
.member-count-circle { width: 10rem; height: 10rem; border-radius: 50%; border: 4px solid var(--color-red); display: flex; align-items: center; justify-content: center; }

/* Benefit cards */
.benefit-card { border: 1px solid #e5e7eb; border-radius: 0.5rem; transition: box-shadow 0.2s; }
.benefit-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.benefit-card-icon { width: 2rem; height: 2rem; background-color: var(--color-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 0.1rem; }
.benefit-icon-check { color: #fff; font-size: 0.9rem; font-style: normal; line-height: 1; }

/* Testimonial */
.testimonial-open-quote { display: block; font-size: 6rem; line-height: 1; color: var(--color-red); font-family: Georgia, serif; margin-bottom: -1.5rem; opacity: 0.9; }
.testimonial-divider { width: 3rem; height: 3px; background-color: var(--color-red); }

/* Timeline */
.timeline-container { border-left: 4px solid var(--color-red); margin-left: 1rem; }
.timeline-item { padding-left: 1.5rem; padding-bottom: 2rem; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -0.5rem; top: 0.35rem; width: 0.75rem; height: 0.75rem; background-color: var(--color-red); border-radius: 50%; }

/* Grid column spans */
@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
}

/* Policy / Prose content — list styles */
.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}
.prose ul li {
  padding-left: 0.25rem;
  margin-bottom: 0.4rem;
  line-height: 1.65;
  color: #374151;
}
.prose ul li::marker {
  color: var(--color-dark-red);
}
.prose ul li strong {
  color: #111827;
}

/* Partner logos strip — classes missing from compiled Tailwind */
.w-max { width: max-content; }
.flex-shrink-0 { flex-shrink: 0; }
@media (min-width: 1024px) {
  .lg\:w-full { width: 100%; }
  .lg\:justify-center { justify-content: center; }
}

@media (min-width: 640px) {
  .nav-logo-mobile {
    width: 80px !important;
    height: 80px !important;
  }

  .homepage-hero-inner {
    max-width: 72rem;
  }

  .homepage-brand-title,
  .homepage-hero-title {
    font-size: 4rem !important;
    line-height: 1 !important;
  }

  .homepage-brand-title {
    margin-bottom: 3.75rem !important;
  }

  .homepage-hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .homepage-hero-title {
    margin-bottom: 3.75rem !important;
  }

  .homepage-hero-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    max-width: none;
    width: auto;
    padding-top: 0;
  }

  .homepage-cta-button {
    width: auto;
    min-width: 11rem;
    font-size: 0.875rem;
  }
}