/* ================================================
   OBHSS — O'Brien Height Safety Solutions
   Main Stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* === CSS Variables === */
:root {
  --blue:        #3953a4;
  --blue-dark:    #2c3e8f;
  --blue-light:  #3953a4;
  --orange:       #f26522;
  --orange-hover: #d9551a;
  --orange-pale:  #fef0e8;
  --off-white:   #F4F3EE;
  --white:       #FFFFFF;
  --text:        #1A1A1A;
  --text-mid:    #4A5568;
  --text-light:  #8896A8;
  --border:      #E2E1DC;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 2px 16px rgba(57,83,164,0.10);
  --shadow-lg:   0 8px 40px rgba(57,83,164,0.18);
  --transition:  all 0.22s ease;
  --max-width:   1200px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === Typography === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.18;
  font-weight: 700;
  color: var(--blue);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--blue); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-off { background: var(--off-white); }
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f26522;
  margin-bottom: 12px;
}
.section-dark .section-label { color: var(--orange); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: #2c3e8f; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-dark:hover { background: #f26522; color: var(--white); border-color: #f26522; }
.btn-lg { padding: 17px 36px; font-size: 1rem; }

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f26522;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}
.nav-logo-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.nav-logo-img { display:flex; align-items:center; }
.nav-logo-img img { height:52px; display:block; }
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.02em;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(0,0,0,0.15); }
.nav-cta { flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  background: #f26522;
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  display: block;
}
.mobile-menu .btn-primary { margin-top: 16px; text-align: center; }

/* === Hero === */
.hero {
  position: relative;
  background-color: var(--blue);
  background-image: linear-gradient(rgba(30,45,107,0.78), rgba(30,45,107,0.78)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 70% 50%, rgba(242,101,34,0.07) 0%, transparent 60%),
    linear-gradient(135deg, rgba(10,22,40,1) 0%, rgba(18,32,64,0.95) 100%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(242,101,34,0.15);
  border: 1px solid rgba(242,101,34,0.3);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-trust-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}
.hero-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 4px;
}

/* === Trust / Stats Bar === */
.trust-bar {
  background: #f26522;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 32px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.trust-stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
}
.trust-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* === Cards === */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #f26522; }
.card-icon {
  width: 52px;
  height: 52px;
  background: #f26522;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}
.card-dark {
  background: var(--blue-dark);
  border-color: rgba(255,255,255,0.08);
}
.card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.65); }
.card-dark:hover { border-color: var(--orange); box-shadow: 0 8px 40px rgba(57,83,164,0.4); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f26522;
  margin-top: 16px;
  transition: var(--transition);
}
.card-link:hover { gap: 10px; }

/* === Image Placeholder === */
.img-placeholder {
  background: linear-gradient(135deg, #CBD5E1 0%, #94A3B8 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.04em;
}

/* === Section Header === */
.section-header { max-width: 640px; margin-bottom: 52px; }
.section-header-center { margin: 0 auto 52px; text-align: center; max-width: 640px; }
.section-header h2, .section-header-center h2 { margin-bottom: 16px; }
.section-header p, .section-header-center p { color: var(--text-mid); font-size: 1.05rem; }
.section-dark .section-header p,
.section-dark .section-header-center p { color: rgba(255,255,255,0.65); }

/* === School Sector Feature === */
.sector-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sector-feature.reverse { direction: rtl; }
.sector-feature.reverse > * { direction: ltr; }
.sector-feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.sector-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.tag {
  background: var(--orange-pale);
  color: var(--orange-hover);
  border: 1px solid rgba(242,101,34,0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 40px;
  letter-spacing: 0.04em;
}
.tag-navy {
  background: rgba(57,83,164,0.07);
  color: var(--blue);
  border-color: rgba(57,83,164,0.15);
}

/* === Compliance Standards === */
.standard-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.standard-item:last-child { border-bottom: none; }
.standard-badge {
  font-family: var(--font-display);
  font-size: 1.15rem;
  background: var(--blue);
  color: var(--orange);
  padding: 8px 16px;
  border-radius: var(--radius);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { color: #f26522; }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--blue);
}
.faq-item.open .faq-icon { background: var(--orange); border-color: var(--orange); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 24px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 720px;
}
.faq-item.open .faq-answer { display: block; }

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,101,34,0.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === Projects === */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.project-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-body { padding: 24px; }
.project-sector {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f26522;
  margin-bottom: 8px;
}
.project-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-body p { font-size: 0.9rem; color: var(--text-mid); }

/* === Page Hero (inner pages) === */
.page-hero {
  background: #f26522;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(242,101,34,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.45); }
.page-hero .breadcrumb a:hover { color: var(--orange); }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.68); font-size: 1.1rem; max-width: 580px; }

/* === CTA Section === */
.cta-section {
  background: #f26522;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.08) 0%, transparent 60%);
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.92); font-size: 1.05rem; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-section .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === Footer === */
footer {
  background: var(--blue);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--orange); }

/* === Utilities === */
.text-amber { color: var(--orange); }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* === Responsive === */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sector-feature { gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .sector-feature { grid-template-columns: 1fr; gap: 32px; }
  .sector-feature.reverse { direction: ltr; }
  .trust-bar-inner { gap: 16px; }
  .trust-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 75vh; }
  .hero-trust { gap: 20px; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-section .cta-actions { flex-direction: column; align-items: center; }
}

/* === CTA Section Button Overrides === */
.cta-section .btn-primary {
  background: var(--blue);
  color: var(--white);
}
.cta-section .btn-primary:hover {
  background: #2c3e8f;
}
.cta-section h2 { color: var(--white); }

/* === Page Hero Overrides === */
.page-hero .breadcrumb { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.92); }
.page-hero .section-label { color: rgba(255,255,255,0.85); letter-spacing: 0.2em; }

/* === Standard badge on orange page hero === */
.page-hero .standard-badge { background: var(--blue); color: var(--white); }

/* === Tag adjustments === */
.tag { background: rgba(242,101,34,0.1); color: #c94e12; border-color: rgba(242,101,34,0.3); }
.tag-navy { background: rgba(57,83,164,0.08); color: var(--blue); border-color: rgba(57,83,164,0.2); }

/* === Hero grid overlay === */
.hero-grid {
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* === Section dark - keep blue for contrast === */
.section-dark { background: var(--blue); }

/* === Card icon on dark sections === */
.card-dark .card-icon { background: rgba(242,101,34,0.15); color: #f26522; }

/* === Footer bottom link hover === */
.footer-bottom a:hover { color: #f26522; }
.footer-col ul a:hover { color: #f26522; }

/* === FAQ open icon === */
.faq-item.open .faq-icon { background: #f26522; border-color: #f26522; color: var(--white); }

/* === Standard badge === */
.standard-badge { background: var(--blue); color: #f26522; }

/* === Contact icon === */
.contact-icon { background: rgba(242,101,34,0.1); color: #f26522; }

/* === Hero eyebrow === */
.hero-eyebrow { background: rgba(242,101,34,0.15); border-color: rgba(242,101,34,0.4); color: #f26522; }

/* === Hero badge strip on dark hero === */
.hero-badge { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }
