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

/* Clear Points Messaging Premium Styling Rules */
:root {
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --pico-font-family-sans-serif: var(--font-body);
  --pico-primary: #841617; /* Sooner Crimson Red */
  --pico-primary-hover: #9e1c1d;
  --pico-primary-focus: rgba(132, 22, 23, 0.25);
  --pico-background-color: #0b0c10; /* Midnight Obsidian */
  --pico-color: #e2e8f0;
}

body {
  background-color: var(--pico-background-color);
  color: var(--pico-color);
  font-family: var(--font-body);
  line-height: 1.7;
}

a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--pico-primary);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--pico-primary-hover);
  text-decoration-color: var(--pico-primary-hover);
  text-decoration: underline;
}

/* Header & Nav */
header.container {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(132, 22, 23, 0.15);
  margin-bottom: 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-link img {
  height: 48px;
  width: auto;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--pico-primary);
}

.cta-button {
  background-color: var(--pico-primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(132, 22, 23, 0.25);
  transition: all 0.2s ease;
}

.cta-button:hover {
  background-color: var(--pico-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(132, 22, 23, 0.4);
  text-decoration: none;
}

/* Typography & Headers */
h1, h2, h3 {
  font-family: var(--font-title);
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.15;
}

h2 {
  font-size: 2.25rem;
  border-bottom: 1px solid rgba(132, 22, 23, 0.15);
  padding-bottom: 0.5rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.75rem;
  color: #ffffff;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text p.subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-image img {
  border-radius: 8px;
  border: 1px solid rgba(132, 22, 23, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}

/* Custom Grid Columns */
.services-grid, .case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Premium Card Design */
article.card {
  background: #20232e; /* Lighter container background to match Sooner Red contrast */
  border: 1px solid rgba(132, 22, 23, 0.25);
  border-radius: 6px;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

article.card:hover {
  transform: translateY(-4px);
  border-color: var(--pico-primary);
  background: #282b3a; /* Subtle shift on hover */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(132, 22, 23, 0.25);
}

article.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

article.card p {
  font-size: 0.95rem;
  color: #cbd5e1; /* Make description text lighter and more readable */
  flex-grow: 1;
}

/* Reading container for pages & blog articles */
.reading-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0;
}

.reading-container p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
}

.reading-container ul, .reading-container ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.reading-container li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Footer rules */
footer {
  margin-top: 6rem;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(132, 22, 23, 0.15);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
  }
}

.footer-grid h5 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 0.5rem;
}

.footer-grid ul li a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-grid ul li a:hover {
  color: var(--pico-primary);
}

.social-links a:hover svg {
  color: var(--pico-primary) !important;
}

.mobile-hamburger-wrapper {
  display: none;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 12, 16, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-content {
  width: 100%;
  text-align: center;
  padding: 2rem;
}

.mobile-menu-links {
  list-style: none !important;
  padding: 2rem 1.5rem !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 0.75rem !important;
  max-width: 400px;
  margin: 0 auto !important;
}

.mobile-menu-links > li {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.mobile-menu-links > li:last-child {
  border-bottom: none;
}

.mobile-menu-links a {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center;
  width: 100%;
  padding: 0.25rem 0 !important;
  transition: all 0.2s ease-in-out;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: #ffffff !important;
  padding-left: 0.5rem !important;
}

/* Mobile Submenu Styling */
.mobile-submenu {
  list-style: none !important;
  margin: 0.5rem 0 0 0.5rem !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 2px solid rgba(132, 22, 23, 0.3);
  padding-left: 1rem !important;
}

.mobile-submenu li a {
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  padding: 0.25rem 0 !important;
}

.mobile-submenu li a:hover {
  color: var(--pico-primary) !important;
  padding-left: 0.25rem !important;
}


/* Lock page scroll when menu is active */
body.menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

@media (max-width: 992px) {
  .desktop-menu {
    display: none !important;
  }

  .mobile-hamburger-wrapper {
    display: flex !important;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .hamburger-btn {
    display: block !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    width: 48px;
    height: 48px;
    position: relative;
    z-index: 1000;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    outline: none !important;
  }

  .hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--pico-primary);
    position: absolute;
    left: 12px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease;
  }

  .hamburger-line:nth-child(1) {
    top: 17px;
  }

  .hamburger-line:nth-child(2) {
    top: 24px;
  }

  .hamburger-line:nth-child(3) {
    top: 31px;
  }

  /* Morphing hamburger lines to 'X' shape */
  .hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #ffffff;
  }

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

  .hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #ffffff;
  }
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Post Featured Image Style */
.post-featured-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(132, 22, 23, 0.15);
}

/* Custom Signup Form Styles */
.signup-card {
  background: #181a24;
  border-left: 4px solid var(--pico-primary);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.signup-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.signup-card ul {
  margin-bottom: 1.5rem;
}

.signup-card li {
  font-size: 1rem;
  color: #cbd5e1;
}

.signup-form {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.signup-input-wrapper {
  flex-grow: 1;
  min-width: 250px;
}

.signup-email {
  margin-bottom: 0 !important;
  background-color: #20232e !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 0.75rem 1rem !important;
  width: 100%;
}

.signup-email:focus {
  border-color: var(--pico-primary) !important;
  box-shadow: 0 0 0 2px var(--pico-primary-focus) !important;
}

.signup-submit-btn {
  background-color: var(--pico-primary);
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.signup-submit-btn:hover {
  background-color: var(--pico-primary-hover);
}

.signup-message {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.signup-message.success {
  color: #4ade80;
}

.signup-message.error {
  color: #f87171;
}

/* Navigation Dropdown styling */
nav details.dropdown {
  margin-bottom: 0;
}
nav details.dropdown summary {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
nav details.dropdown summary:after {
  margin-inline-start: 0.25rem;
  transition: transform 0.2s ease;
}
nav details.dropdown[open] summary:after {
  transform: rotate(180deg);
}
nav details.dropdown summary:hover,
nav details.dropdown[open] summary {
  color: var(--pico-primary);
}
nav details.dropdown ul[role="listbox"] {
  background-color: #1e212b;
  border: 1px solid rgba(132, 22, 23, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  min-width: 290px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  border-radius: 6px;
  padding: 0.5rem 0;
  z-index: 100;
}
nav details.dropdown ul[role="listbox"] li {
  margin: 0;
  padding: 0;
}
nav details.dropdown ul[role="listbox"] li a {
  color: #cbd5e1;
  font-size: 0.9rem;
  display: block;
  width: 100%;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
}
nav details.dropdown ul[role="listbox"] li a:hover {
  color: #ffffff;
  background-color: rgba(132, 22, 23, 0.2);
}


