/* 
 * Operational Assurance Group - Main Stylesheet
 * Pure CSS - No frameworks
 */

/* ===========================
   CSS Variables
   =========================== */
:root {
  /* Color Palette */
  --primary-blue: #1A6FBF;
  --deep-navy: #0D3B6E;
  --steel-grey: #6B7C93;
  --light-silver: #F4F6F9;
  --charcoal: #2C2C2C;
  --white: #FFFFFF;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 80px;
  --container-max-width: 1200px;
  
  /* Transitions */
  --transition-smooth: all 0.3s ease;
}

/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(13, 59, 110, 0.95), rgba(13, 59, 110, 0));
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  box-shadow: none;
}

.navbar.scrolled {
  padding: 10px 0;
  background: var(--deep-navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-logo img {
  height: 40px;
  width: auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.navbar-menu a {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

.navbar-menu a:hover {
  color: var(--primary-blue);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7em;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  border-radius: 4px;
  margin-top: 20px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--light-silver);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--light-silver);
  color: var(--primary-blue);
}

/* CTA Button in Nav */
.nav-cta {
  background: var(--primary-blue);
  color: var(--white);
  padding: clamp(6px, 0.9vw, 10px) clamp(12px, 1.8vw, 24px);
  border-radius: 4px;
  font-weight: 600;
  font-size: clamp(0.75rem, 1vw, 1rem);
  white-space: nowrap;
  line-height: 1.2;
}

.nav-cta:hover {
  background: var(--deep-navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 111, 191, 0.3);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   Hero Section (YouTube Video Background)
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 110%;
  min-height: 110%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: -2;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 20px;
  color: var(--white);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 111, 191, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* ===========================
   Stats/Value Props Strip
   =========================== */
.stats-strip {
  background: var(--light-silver);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue);
  border-radius: 50%;
  color: var(--white);
  font-size: 28px;
}

.stat-item h3 {
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--steel-grey);
  margin: 0;
}

/* ===========================
   Section Headings
   =========================== */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  color: var(--deep-navy);
  margin-bottom: 15px;
}

.section-heading p {
  color: var(--steel-grey);
  max-width: 700px;
  margin: 0 auto;
}

/* ===========================
   Cards
   =========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: var(--deep-navy);
}

.card-content p {
  color: var(--steel-grey);
  margin-bottom: 15px;
}

.card-link {
  color: var(--primary-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-link:hover {
  gap: 10px;
}

.card-link::after {
  content: '→';
}

/* ===========================
   Industry Tiles
   =========================== */
.industry-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.industry-tile {
  position: relative;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.industry-tile:hover {
  transform: scale(1.02);
}

.industry-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 59, 110, 0.9), rgba(13, 59, 110, 0.3));
  display: flex;
  align-items: flex-end;
  padding: 30px;
  transition: var(--transition-smooth);
}

.industry-tile:hover .industry-tile-overlay {
  background: linear-gradient(to top, rgba(26, 111, 191, 0.9), rgba(26, 111, 191, 0.3));
}

.industry-tile h3 {
  color: var(--white);
  margin: 0;
}

/* ===========================
   Why Choose Us Section
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-silver);
  border-radius: 50%;
  color: var(--primary-blue);
  font-size: 32px;
}

.feature-item h3 {
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--steel-grey);
}

/* ===========================
   Testimonials
   =========================== */
.testimonials {
  background: var(--light-silver);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-blue);
}

.testimonial-text {
  font-style: italic;
  color: var(--steel-grey);
  margin-bottom: 15px;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--deep-navy);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--steel-grey);
}

/* ===========================
   CTA Sections
   =========================== */
.cta-section {
  background: var(--deep-navy);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* ===========================
   Page Hero (non-video)
   =========================== */
.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 59, 110, 0.75);
  z-index: -1;
}

.page-hero h1 {
  color: var(--white);
}

/* ===========================
   Content Sections
   =========================== */
.content-section {
  background: var(--white);
}

.content-section.grey {
  background: var(--light-silver);
}

.content-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}

.sidebar {
  background: var(--light-silver);
  padding: 30px;
  border-radius: 8px;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  margin-bottom: 15px;
}

/* ===========================
   Lists
   =========================== */
.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  border-bottom: 1px solid rgba(107, 124, 147, 0.2);
}

.styled-list li:last-child {
  border-bottom: none;
}

.styled-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* ===========================
   Case Study Elements
   =========================== */
.case-study-tag {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.case-study-section {
  margin-bottom: 40px;
}

.case-study-section h2 {
  color: var(--deep-navy);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* ===========================
   Resources/Articles
   =========================== */
.article-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.article-tag {
  display: inline-block;
  background: var(--light-silver);
  color: var(--primary-blue);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.article-card p {
  color: var(--steel-grey);
  flex-grow: 1;
}

/* ===========================
   Forms
   =========================== */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--deep-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-silver);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 191, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-note {
  font-size: 0.9rem;
  color: var(--steel-grey);
  margin-top: 15px;
  text-align: center;
}

/* ===========================
   Footer
   =========================== */
footer {
  background: var(--deep-navy);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--primary-blue);
}

.accreditation-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.accreditation-logo {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===========================
   Contact Cards
   =========================== */
.contact-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px solid var(--light-silver);
  border-radius: 8px;
  padding: 32px 40px;
  min-width: 260px;
  flex: 1;
  max-width: 340px;
  color: var(--charcoal);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 6px 24px rgba(26, 111, 191, 0.12);
  transform: translateY(-4px);
  color: var(--primary-blue);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  transition: var(--transition-smooth);
}

.contact-card:hover .contact-card-icon {
  background: var(--primary-blue);
  color: var(--white);
}

.contact-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-grey);
}

.contact-card-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--deep-navy);
  text-align: center;
  word-break: break-all;
}

.contact-card:hover .contact-card-value {
  color: var(--primary-blue);
}

/* ===========================
   Methodology Steps
   =========================== */
.methodology-steps {
  max-width: 800px;
  margin: 0 auto;
}

.methodology-step {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.methodology-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content h3 {
  color: var(--deep-navy);
  margin-bottom: 10px;
}

.step-content p {
  color: var(--steel-grey);
  margin: 0;
}

/* ===========================
   Two Column Grid
   =========================== */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.two-column-grid .column h3 {
  color: var(--deep-navy);
  margin-bottom: 15px;
  margin-top: 30px;
}

.two-column-grid .column h3:first-child {
  margin-top: 0;
}

.two-column-grid .column p {
  color: var(--steel-grey);
}

@media (max-width: 768px) {
  .two-column-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .methodology-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===========================
   Animations
   =========================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
  /* Navigation */
  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--deep-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    transition: var(--transition-smooth);
  }
  
  .navbar-menu.active {
    right: 0;
  }
  
  .navbar-menu a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
  }
  
  /* Hero */
  .hero-buttons {
    flex-direction: column;
  }
  
  /* Content Columns */
  .content-columns {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  /* Industry Tiles */
  .industry-tiles {
    grid-template-columns: 1fr;
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .accreditation-logos {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Section Padding */
  :root {
    --section-padding: 50px;
  }
  
  .page-hero {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 80vh;
  }
  
  :root {
    --section-padding: 40px;
  }
}
