/* ═══════════════════════════════════════
   MIDWESTERN OIL & GAS - SHARED STYLES
   UI Style Guide & Component Library
═══════════════════════════════════════ */

/* Material Icons styling */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════
   CSS VARIABLES - DESIGN SYSTEM
═══════════════════════════════════════ */
:root {
  --navy:       #2b1e84;
  --navy-mid:   #4336a0;
  --teal:       #2b1e84;
  --teal-light: #6a5dc1;
  --gold:       #b48b45;
  --gold-light: #d7b677;
  --blue:       #2b1e84;
  --blue-light: #5e52bd;
  --red:        #2b1e84;  /* Updated to blue for brand consistency */
  --red-light:  #5e52bd;  /* Updated to light blue for brand consistency */
  --cream:      #F8F9FA;
  --white:      #FFFFFF;
  --gray-light: #F1F3F5;
  --gray:       #6C757D;
  --text:       #2C3E50;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --display:    'Bebas Neue', sans-serif;
}

/* ═══════════════════════════════════════
   GLOBAL RESET & BASE STYLES
═══════════════════════════════════════ */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ═══════════════════════════════════════
   ACCESSIBILITY ENHANCEMENTS
═══════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #2b1e84;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
}
.skip-link:focus {
  top: 6px;
}

*:focus {
  outline: 2px solid #2b1e84;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════
   NAVIGATION COMPONENT
═══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43,30,132,0.12);
  transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.99);
  box-shadow: 0 4px 40px rgba(0,0,0,0.1);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  padding: 8px;
}
.nav-logo-mark {
  width: clamp(100px, 12vw, 140px);
  height: clamp(100px, 12vw, 140px);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-logo-m {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}
.nav-links li { position: relative; }
.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  border-radius: 4px;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-dropdown > .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown-caret {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  list-style: none;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(43,30,132,0.12);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(18,13,63,0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-dropdown-menu li {
  margin: 0;
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}
.nav-dropdown-menu a::after {
  content: '↗';
  font-size: 12px;
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(43,30,132,0.08);
  color: var(--red);
}
.nav-dropdown-menu a:hover::after,
.nav-dropdown-menu a.active::after {
  opacity: 0.8;
  transform: translateX(0);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret,
.nav-dropdown > .nav-dropdown-toggle.active .nav-dropdown-caret {
  transform: rotate(180deg);
}
.nav-dropdown > .nav-dropdown-toggle.active {
  color: var(--red);
  font-weight: 600;
}
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { 
  background: var(--red-light) !important; 
  transform: translateY(-1px); 
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ═══════════════════════════════════════
   PAGE HEADER COMPONENT
═══════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-light) 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180,139,69,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,139,69,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.page-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.page-breadcrumb a:hover { color: var(--gold-light); }
.page-breadcrumb span { color: var(--gold-light); }
.page-title {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.page-title em { font-style: italic; color: var(--gold-light); }
.page-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   SECTION COMPONENTS
═══════════════════════════════════════ */
.section { padding: 100px 0; }
.section-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-tag-line {
  width: 32px;
  height: 2px;
  background: var(--red);
}
.section-tag-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-lead {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--gray);
  max-width: 620px;
}

/* ═══════════════════════════════════════
   BUTTON COMPONENTS
═══════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 4px;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(43,30,132,0.32);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 32px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.2s;
}
.btn-link:hover { gap: 14px; }

/* ═══════════════════════════════════════
   CARD COMPONENTS
═══════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.13);
}
.card-header {
  padding: 24px;
  border-bottom: 1px solid var(--gray-light);
}
.card-body {
  padding: 24px;
}
.card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.card-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   RESPONSIVE DESIGN
═══════════════════════════════════════ */
@media (max-width: 1200px) {
  .section-inner { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .page-header-inner { padding: 0 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-inner { padding: 0 20px; height: 70px; }
  .nav-logo-mark { 
    width: clamp(70px, 12vw, 90px);
    height: clamp(70px, 12vw, 90px);
  }
  
  .page-header { padding: 100px 0 60px; }
  .page-header-inner { padding: 0 20px; }
  .page-title { font-size: clamp(32px, 8vw, 48px); }
  
  .section { padding: 60px 0; }
  .section-inner { padding: 0 20px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; height: 64px; }
  .page-header-inner { padding: 0 16px; }
  .section-inner { padding: 0 16px; }
}

/* ═══════════════════════════════════════
   FOOTER STYLES
═══════════════════════════════════════ */
.footer {
  background: #FFFFFF;
  padding-top: 80px;
  border-top: 1px solid rgba(43,30,132,0.12);
}
.footer-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 56px;
  display: grid;
  grid-template-columns: minmax(250px, 1.3fr) repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: 48px;
  row-gap: 36px;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand-header {
  margin-bottom: 24px;
}
.footer-logo-integrated {
  display: block;
  margin: 0;
  padding: 0;
  width: auto;
}
.footer-logo-mark {
  width: clamp(172px, 17vw, 210px);
  height: auto;
  background: transparent;
  display: block;
}
.footer-logo-m {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.footer-about {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 310px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  background: rgba(43,30,132,0.08);
  border: 1px solid rgba(43,30,132,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.footer-col {}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(43,30,132,0.12);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::before {
  content: '';
  width: 4px;
  height: 1px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.2s, width 0.2s;
  flex-shrink: 0;
}
.footer-links a:hover { color: var(--navy); }
.footer-links a:hover::before { opacity: 1; width: 8px; }
.footer-contact-info {
  margin-top: 28px;
  padding-top: 4px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}
.footer-contact-icon {
  color: var(--red);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(43,30,132,0.12);
  padding: 24px 32px;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copyright {
  font-size: 12.5px;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 12px;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--navy); }

@media (max-width: 1180px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 420px;
  }
  .footer-col:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-main { 
    grid-template-columns: 1fr; 
    gap: 32px;
    padding: 0 20px 40px;
  }
  .footer-brand { 
    max-width: none;
  }
  .footer-logo-integrated { 
    margin: 0 0 4px;
  }
  .footer-logo-mark { 
    width: 185px;
  }
  .footer-about { 
    max-width: none;
    margin: 0 0 24px;
  }
  .footer-social { justify-content: flex-start; }
  .footer-col { text-align: left; }
  .footer-links { align-items: flex-start; }
  .footer-contact-info { text-align: left; }
  .footer-bottom { 
    flex-direction: column; 
    align-items: flex-start;
    text-align: left;
    gap: 16px; 
    padding: 20px;
  }
  .footer-legal {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (max-width: 480px) {
  .footer { padding-top: 60px; }
  .footer-main { padding: 0 16px 40px; }
  .footer-logo-integrated { 
    margin: 0 0 4px;
  }
  .footer-logo-mark { 
    width: 164px;
  }
  .footer-bottom { padding: 20px 16px; }
}
