/* ============================================================
   18 GANGSTER MUSEUM — main.css
   Global variables, reset, typography, shared utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  /* Brand Colors */
  --red:           #d41217;
  --red-dark:      #a50d11;
  --red-light:     #e8262b;
  --red-muted:     rgba(212, 18, 23, 0.12);

  --black:         #111111;
  --charcoal:      #1e1e1e;
  --dark-grey:     #2a2a2a;
  --border:        #333333;
  --mid-grey:      #888888;
  --light-grey:    #cccccc;
  --off-white:     #f0f0f0;
  --white:         #ffffff;

  /* Typography */
  --font-heading:  'Oswald', sans-serif;
  --font-body:     'Open Sans', sans-serif;

  /* Spacing */
  --section-pad:   5rem 6vw;
  --section-pad-sm: 3rem 5vw;

  /* Layout */
  --max-width:     1280px;
  --nav-height:    72px;

  /* Transitions */
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--light-grey);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }

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

/* ── SHARED COMPONENTS ── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all 0.22s var(--ease);
  line-height: 1;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,18,23,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
}

/* Section layout */
.section {
  padding: var(--section-pad);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--dark  { background: var(--black); }
.section--grey  { background: var(--charcoal); }

/* Section eyebrow label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* Divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 1.2rem 0 1.8rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── UTILITY CLASSES ── */
.text-red    { color: var(--red); }
.text-white  { color: var(--white); }
.text-grey   { color: var(--mid-grey); }
.text-center { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-4  { margin-bottom: 2rem; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 5vw; }
}

@media (max-width: 600px) {
  :root { --section-pad: 2.5rem 4vw; }
  
  /* Fix mobile typography */
  h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  h3 { font-size: clamp(1.2rem, 4vw, 1.6rem); }
  
  /* Fix mobile buttons */
  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  /* Fix mobile grid layouts */
  .section-inner {
    padding: 0 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Fix contact form grid on mobile */
  .section-inner[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Fix form fields on mobile */
  .form-group[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix contact form container on mobile */
  div[style*="background:var(--charcoal)"][style*="padding:2.5rem"] {
    padding: 1.5rem !important;
    margin: 0 -1rem;
  }
  
  /* Fix Community Impact grid - 4 columns to 2x2 on mobile */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  /* Fix testimonials grid - 3 columns to 1 column on mobile */
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Fix any remaining grid layouts */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Improve Community Impact cards on mobile */
  div[style*="background:var(--charcoal)"][style*="padding:2rem"] {
    padding: 1.2rem !important;
  }
  div[style*="font-size:2rem"] {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  div[style*="font-size:1rem"] {
    font-size: 0.9rem !important;
  }
  div[style*="font-size:0.85rem"] {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  
  /* Improve testimonials on mobile */
  blockquote[style*="padding:1.8rem"] {
    padding: 1.2rem !important;
  }
  blockquote p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  blockquote footer {
    font-size: 0.75rem !important;
  }
  
  /* Ensure no horizontal overflow */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Fix hamburger menu visibility */
  .nav-hamburger {
    display: flex !important;
    width: 26px !important;
    height: 18px !important;
    z-index: 1000 !important;
    position: relative !important;
  }
  
  .nav-hamburger span {
    display: block !important;
    height: 2px !important;
    background: var(--white) !important;
    border-radius: 2px !important;
  }
  
  /* Prevent overflow on all sections */
  section {
    overflow-x: hidden;
  }
}
