/* VMG Strategic Technology - Main Stylesheet */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  /* Core Brand Colors */
  --color-primary: #003067;
  /* VMG Navy */
  --color-secondary: #6D6E71;
  /* VMG Grey */

  /* Accent Colors */
  --color-accent: #00B7EB;
  /* Electric Teal */
  --color-accent-hover: #009AC5;
  /* Darker Teal for hover */

  /* Neutrals */
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F4F6F8;
  /* Off-White */
  --color-text-body: #333333;
  /* Softer black */
  --color-text-light: #666666;

  /* Typography */
  --font-main: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-body);
  line-height: 1.6;
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

.bg-light {
  background-color: var(--color-bg-light);
}

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

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

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

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

/* News Categories */
:root {
  --color-news-case-study: #0056b3;
  /* Darker Blue */
  --color-news-industry: #28a745;
  /* Green */
  --color-news-best-practice: #fd7e14;
  /* Orange */
}

.news-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card .content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card .category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: white;
}

.news-card.case-study .category-tag {
  background-color: var(--color-news-case-study);
}

.news-card.industry .category-tag {
  background-color: var(--color-news-industry);
}

.news-card.best-practice .category-tag {
  background-color: var(--color-news-best-practice);
}

.news-card.case-study {
  border-top: 4px solid var(--color-news-case-study);
}

.news-card.industry {
  border-top: 4px solid var(--color-news-industry);
}

.news-card.best-practice {
  border-top: 4px solid var(--color-news-best-practice);
}

/* Best Practice Card Specifics */
.best-practice-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.best-practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-news-best-practice);
}

.best-practice-card .content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.best-practice-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-weight: 700;
}

.bp-teaser {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  border-left: 3px solid var(--color-news-best-practice);
  padding-left: 1rem;
}

.bp-description {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.bp-benefit {
  background-color: #fff8f3;
  /* Very light orange tint */
  padding: 1.5rem;
  border-top: 1px solid rgba(253, 126, 20, 0.2);
  margin-top: auto;
}

.bp-benefit h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-news-best-practice);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.bp-benefit p {
  font-size: 0.95rem;
  color: var(--color-text-body);
  margin-bottom: 0;
  font-weight: 500;
}

/* Hero Background */
.hero-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Darker overlay for better text contrast if needed, but keeping it light for now as the text is dark */
/* If we want a dark hero, we need to change text colors. Let's try a light overlay first to keep existing text colors working, or switch to dark theme hero. */
/* The user said "make it pop". A dark hero with white text usually pops more. */

.hero-dark {
  background-image: linear-gradient(rgba(0, 48, 103, 0.85), rgba(0, 48, 103, 0.7)), url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-dark h1 {
  color: white;
}

.hero-dark p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.feature-img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-img:hover {
  transform: scale(1.02);
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 80px;
  /* Increased from 50px */
  transition: transform 0.2s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-body);
  transition: color 0.2s ease;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a.active {
  font-weight: 600;
  color: var(--color-primary);
}

/* Mobile Navigation adjustments could go here */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* Industry News Card Specifics */
.industry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-news-industry);
}

.industry-card .content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.industry-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-weight: 700;
}

.industry-teaser {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  border-left: 3px solid var(--color-news-industry);
  padding-left: 1rem;
}

.industry-description {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.industry-benefit {
  background-color: #f0fff4;
  /* Very light green tint */
  padding: 1.5rem;
  border-top: 1px solid rgba(40, 167, 69, 0.2);
}

.industry-benefit h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-news-industry);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.industry-benefit p {
  font-size: 0.95rem;
  color: var(--color-text-body);
  margin-bottom: 0;
  font-weight: 500;
}

.industry-vmg-help {
  background-color: #f0f7ff;
  /* Very light blue tint */
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 48, 103, 0.1);
  margin-top: auto;
  /* Push to bottom if needed, though benefit is usually last or this is */
}

.industry-vmg-help h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.industry-vmg-help p {
  font-size: 0.95rem;
  color: var(--color-text-body);
  margin-bottom: 0;
  font-weight: 500;
}

/* Feature Rows (Mobile Responsive) */
.feature-row {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .feature-row {
    flex-direction: column-reverse !important; /* Text on top, Image on bottom usually means column-reverse if image is second in HTML */
    gap: 2rem;
    text-align: center;
  }

  .feature-row.reverse {
    flex-direction: column-reverse !important;
  }
  
  /* If the image is the second child, column-reverse puts it on top. 
     Wait, usually "Text on top, Image on bottom" means:
     HTML: [Text] [Image] -> Column: [Text] [Image] (normal column)
     
     Let's check the HTML structure.
     Index: [Text Col] [Image Col]
     About 1: [Text Col] [Image Col]
     About 2: [Text Col] [Image Col] (row-reverse on desktop) -> HTML is [Text Col] [Image Col] but styled with row-reverse? 
     
     Let's re-read about.html.
     About 2 (IT Operations): 
     <div class="row" style="display: flex; gap: 4rem; align-items: center; flex-direction: row-reverse;">
        <div class="col" style="flex: 1;">...Text...</div>
        <div class="col" style="flex: 1;">...Image...</div>
     </div>
     
     If I want Text on Top, Image on Bottom on Mobile:
     HTML is [Text] [Image].
     Normal flow (block) would be Text then Image.
     So flex-direction: column would be Text then Image.
     
     So for .feature-row (default): flex-direction: column.
     For .feature-row.reverse (desktop row-reverse): 
       Desktop: Image | Text (visual) -> HTML: Text | Image (source) with row-reverse?
       Wait, if HTML is [Text] [Image] and I apply row-reverse, it becomes [Image] [Text].
       
       Let's check About 2 again.
       HTML: [Text Div] [Image Div]
       Style: row-reverse.
       Visual Desktop: [Image Div] [Text Div].
       
       Mobile Goal: Text on Top, Image on Bottom.
       Visual Mobile: [Text Div]
                      [Image Div]
       
       This corresponds to `flex-direction: column` (normal flow).
       
       So both should be `flex-direction: column` on mobile.
  */
  
  .feature-row, 
  .feature-row.reverse {
    flex-direction: column !important;
  }
}