/* ==========================================
   COLOR PALETTE & THEME VARIABLES
   ========================================== */

:root {
  /* Light mode colors */
  --color-navy: #142e3d;
  --color-orange: #d95d1e;
  --color-pale-blue: #f2f5f0;
  --color-grey: #b3bab8;
  
  /* Light mode theme */
  --bg-primary: var(--color-pale-blue);
  --bg-secondary: #ffffff;
  --text-primary: var(--color-navy);
  --text-secondary: #5a5a5a;
  --accent: var(--color-orange);
  --border: var(--color-grey);
  --nav-bg: rgba(242, 245, 240, 0.9);
}

[data-theme="dark"] {
  /* Dark mode theme */
  --bg-primary: var(--color-navy);
  --bg-secondary: #0d1f2a;
  --text-primary: var(--color-pale-blue);
  --text-secondary: var(--color-grey);
  --accent: var(--color-orange);
  --border: #2a4a5a;
  --nav-bg: rgba(20, 46, 61, 0.9);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  width: 100%;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-decoration-style: wavy;
}

strong {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--accent);
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

main {
  min-height: calc(100vh - 200px);
  padding: 4rem 0;
  width: 100%;
  overflow-x: hidden;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.site-header {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo a {
  display: block;
  line-height: 0;
}

.site-logo img {
  height: 100px;
  width: auto;
  max-width: 350px;
  transition: opacity 0.3s ease;
}

/* Show/hide logos based on theme */
/* Dark mode: show DARK logo (it's light colored) */
[data-theme="dark"] .site-logo .logo-light {
  display: none;
}

[data-theme="dark"] .site-logo .logo-dark {
  display: block;
}

/* Light mode: show LIGHT logo (it's dark colored) */
[data-theme="light"] .site-logo .logo-light {
  display: block;
}

[data-theme="light"] .site-logo .logo-dark {
  display: none;
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: wavy;
}

.site-nav a.active {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: wavy;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
  position: relative;
}

.theme-toggle i {
  transition: opacity 0.2s ease;
  position: absolute;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Light mode: show moon icon in dark blue */
[data-theme="light"] .theme-toggle .fa-moon {
  display: block;
  opacity: 1;
  color: var(--color-navy);
}

[data-theme="light"] .theme-toggle .fa-sun {
  display: none;
  opacity: 0;
}

/* Dark mode: show sun icon in pale blue */
[data-theme="dark"] .theme-toggle .fa-sun {
  display: block;
  opacity: 1;
  color: var(--color-pale-blue);
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
  opacity: 0;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 6rem;
  transition: background-color 0.3s ease;
}

.footer-copyright {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================
   PAGE CONTENT
   ========================================== */

.page-content {
  max-width: 800px;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}

.page-header h1 {
  margin-bottom: 0;
}

.page-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ==========================================
   HOME PAGE SPECIFIC
   ========================================== */

.hero-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 3rem;
  overflow: hidden;
  max-height: 400px;
}

.hero-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 5rem auto;
  padding: 3rem 0;
}

.hero-section h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.subheadline {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Open Sans', sans-serif;
}

.cta-button:hover {
  background-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

/* Content Sections */
.content-section {
  max-width: 1150px;
  margin: 0 auto 2rem auto;
}

.content-section h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: left;
}

.content-section h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.content-section p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1.25rem;
  text-align: left;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.centered-text {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* Two Column Layout */
.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.text-column h2 {
  margin-top: 0;
}

/* Split Layout (Side by Side) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-content h2 {
  margin-top: 0;
}

/* Highlight Boxes */
.highlight-box {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight-box h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

/* Alternate Background Section */
.alternate-bg {
  background: var(--bg-secondary);
  padding: 4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
}

/* Capabilities Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.capability-column h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.capability-column ul {
  margin-top: 1rem;
}

.capability-column li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Services Grid */
.services-section {
  max-width: 1150px;
  margin: 0 auto 5rem auto;
}

.services-section h2 {
  font-size: 2.25rem;
  text-align: left;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;  /* Add this */
  word-wrap: break-word;  /* Add this */
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text-secondary);
}

/* Clients Section */
.clients-section {
  max-width: 1150px;
  margin: 0 auto 2rem auto;
  padding: 0rem 0rem;
  text-align: left;
}

.clients-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: left;
}

.client-logos {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.client-logo {
  height: 180px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.10);
}

/* Custom bullet points with orange tilde */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
}

ul li::before {
  content: '~';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item strong {
  font-family: 'Open Sans', sans-serif;
  color: var(--accent);
  min-width: 100px;
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .header-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 0;
  }
  
  .site-logo {
    flex: 1 1 auto;
  }
  
  .site-logo img {
    height: 60px;
    max-width: 220px;
  }
  
  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero-banner {
    margin-bottom: 2rem;
    max-height: 250px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .subheadline {
    font-size: 1.1rem;
  }
  
  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .content-section h2 {
    font-size: 1.75rem;
  }
  
  .two-column-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .alternate-bg {
    padding: 2rem 1.5rem;
  }
  
  .highlight-box {
    padding: 1.5rem;
  }
  
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .client-logos {
    gap: 2rem;
  }
  
  .client-logo {
    height: 50px;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }
}