/* Master CSS for IIAB Conference & Expo
   Place after Bootstrap and other theme files to override defaults
   File: css/master.css
*/

:root {
  --color-primary: #006756;
  --color-primary-dark: #005244;
  --color-secondary: #cca665;
  --color-on-primary: #ffffff;
  --color-muted: #6b7280;
  --max-width: 1200px;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  --base-font-size: 16px;
  --hero-height: 60vh; /* default hero height */

  /* Responsive clamp scale (shared with existing email_section styles) */
  --clamp12: clamp(10px, 0.625vw, 12px);
  --clamp14: clamp(12px, 0.72916vw, 14px);
  --clamp15: clamp(13px, 0.78125vw, 15px);
  --clamp16: clamp(14px, 0.8333vw, 16px);
  --clamp18: clamp(14px, 0.9375vw, 18px);
  --clamp20: clamp(16px, 1.0416vw, 20px);
  --clamp22: clamp(16px, 1.145vw, 22px);
  --clamp24: clamp(17px, 1.25vw, 24px);
  --clamp26: clamp(20px, 1.3541vw, 26px);
  --clamp28: clamp(16px, 1.4583vw, 28px);
  --clamp30: clamp(20px, 1.5625vw, 30px);
  --clamp32: clamp(20px, 1.666vw, 32px);
  --clamp34: clamp(20px, 1.77vw, 34px);
  --clamp35: clamp(20px, 1.8229vw, 35px);
  --clamp36: clamp(25px, 1.875vw, 36px);
  --clamp46: clamp(25px, 1.875vw, 46px);
  --clamp40: clamp(26px, 2.083vw, 40px);
  --clamp48: clamp(26px, 2.5vw, 48px);
  --clamp60: clamp(30px, 3.125vw, 60px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: var(--base-font-size);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: #111827;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Headings - global size rules requested */
h2 { font-size: 2rem; line-height: 1.2; margin: 0 0 .75rem; color: #071125; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .5rem; color: #071125; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-on-primary);
  background-color: var(--color-primary);
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease,
    box-shadow 0.12s ease;
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.06);
  vertical-align: middle;
}
.btn:hover {
  /* transform: translateY(-3px); */
  background-color: var(--color-primary-dark);
}
.btn:active {
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 3px solid rgba(0, 103, 86, 0.18);
  outline-offset: 3px;
}
.btn--secondary {
  background-color: var(--color-secondary);
  color: #0b0b0b;
}
.hero-btn-primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}
.hero-btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-on-primary);
}

/* Forms */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  font: inherit;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 103, 86, 0.08);
  outline: none;
}

/* Hero slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  min-height: 40vh;
  overflow: hidden;
}
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
  min-height: inherit;
  position: relative;
}
.hero-slider .slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 12s linear;
}
.hero-slider .carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}
.hero-slider .carousel-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  text-align: left;
}
.hero-content-wrapper {
  max-width: 780px;
  color: #fff;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.u-text-center {
  text-align: center;
}
.text-muted {
  color: var(--color-muted);
}
.text-sm {
  font-size: 0.9rem;
}
.m-b-1 {
  margin-bottom: 1rem;
}
.p-1 {
  padding: 0.75rem;
}

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  :root {
    --hero-height: 45vh;
  }
  .hero-slider .carousel-caption {
    align-items: center;
    padding: 1rem 0;
  }
  .hero-content-wrapper {
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
  }
  .slide-title {
    font-size: 1.6rem;
  }
}
@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
}

/* Notes:
 - This file should be loaded last (after theme CSS and component CSS) so its rules take precedence.
 - Avoid changing layout widths on hover (use transforms) to prevent layout shifts. */
