:root {
  --bg: #F8F9FA;
  --text: #1F2933;
  --accent: #3F8EBC;
  --max-width: 1200px;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* HEADER FIX: Pushes items to the edges without breaking layout */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%; /* Ensures header spans the full viewport */
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
}

.brand {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--text);
  text-decoration: none;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 3.0rem;
  margin-right: 0;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.lang-toggle {
  display: flex;
  font-size: 1.0rem;
  font-weight: 600;
}

.lang-toggle button {
  border: none;
  background: none;
  cursor: pointer;
  color: #ccc;
}

.lang-toggle button.active { color: #000; }

/* HERO SECTION */
.hero-section {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 300;
}

/* CONTENT LAYOUT */
.services-main {
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 2rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin: 4rem 0;
}

.service-label h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.service-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}

.site-footer {
  text-align: center;
  padding: 3rem;
  font-size: 0.8rem;
  color: #999;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .service-row { grid-template-columns: 1fr; gap: 1rem; }
  .nav-right-group { gap: 1rem; }
  .main-nav { display: none; } /* Consider a mobile menu later */
}
/* SURGICAL HEADER FIX */
.nav-inner {
  max-width: var(--max-width); /* Uses your original 960px or 1200px variable */
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Brand Left, Group Right */
  align-items: center;
  padding: 1rem 2rem;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-right-group nav {
  display: flex;
  gap: 2rem;
}

.nav-right-group nav a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-right-group nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
/* =========================================
   ALICE-STYLE LAYOUT RESTORATION
   ========================================= */

/* Fix the Header Alignment */
.nav-inner {
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.nav-right-group {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
}

/* Fix the Split-Row Layout (Restoring your two columns) */
.split-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important; /* Forces items to align to the top */
  margin-bottom: 5rem !important;
  gap: 4rem !important;
}

.split-left {
  flex: 0 0 250px !important; /* Keeps the titles on the left narrow */
  padding-top: 0.5rem;
}

.split-right {
  flex: 1 !important; /* Allows the text on the right to fill the space */
  max-width: 650px !important;
}

.section-title {
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--accent) !important;
  margin-top: 0; /* Remove default margins that might cause misalignment */
  line-height: 1.2;
}

/* SERVICE HERO: 60% Height with Custom Image */
.service-hero {
  height: 60vh; 
  min-height: 500px; /* Ensures it doesn't get too squashed on smaller screens */
  
  /* Replace 'service-hero-image.jpg' with your actual filename */
  background: 
    linear-gradient(rgba(31, 41, 51, 0.7), rgba(31, 41, 51, 0.7)), 
    url('service-hero-image.jpg') no-repeat center center;
  
  background-size: cover;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

/* Maintain legibility on the high-contrast tagline */
.tagline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Adds a slight lift from the background */
}

.subhead {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  color: #F8F9FA;
}

.lead-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #CBD5E0;
}

/* SERVICE BLOCKS */
.services-container {
  max-width: var(--max-width);
  margin: 5rem auto;
  padding: 0 2rem;
}

.service-block {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important; /* Forces items to align to the top */
  margin-bottom: 5rem !important;
  gap: 4rem !important;
}

.block-left {
  flex: 0 0 250px;
  padding-top: 0.5rem;
}

.service-num {
  font-family: monospace;
  color: var(--accent);
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.service-title {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  margin-top: 0;
  line-height: 1.4;
}

.block-right {
  flex: 1;
}

.pillar-subtitle {
  font-size: 2.0rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  margin-top: 0 !important;
  line-height: 1.2;
}

.focus-section h4 {
  margin-top: 2rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--accent);
}
/* Tall Hero Image Logic */
.hero-section-tall {
  position: relative;
  width: 100%;
  height: 70vh; /* Using your preferred height */
  overflow: hidden;
}

.about-hero-img-tall {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text Overlay Positioning */
.hero-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 1000px;
  /* Use a lighter gradient so the wireframe details remain sharp */
  background: rgba(255, 255, 255, 0.1); 
  padding: 2rem;
  border-radius: 8px;
}

.hero-tagline {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); /* responsive size */
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #1F2933; /* Darker text for better contrast on a lighter image */
  text-shadow: none; /* Remove shadow to keep it minimalist */
}

/* keep accent together */
.hero-tagline .accent-text {
  white-space: nowrap;
}

/* fallback: allow wrap on very small screens */
@media (max-width: 420px) {
  .hero-tagline {
    white-space: normal;
    font-size: 1.25rem;
  }
}

.hero-subhead {
  letter-spacing: 0.1em; /* More "air" in the subtitle */
  text-transform: uppercase;
  font-size: 1.4rem;
  #color: #ffffff;
  font-weight: 600;
margin-top: 0.15rem;
}

/* Intro Paragraph Styling (Below the Image) */
.lead-intro-container {
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.lead-text-box {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 1250px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
  padding: 0 1rem;
}

/* 2. Style the "Our Services" Transition Header */
.services-list-header {
  max-width: var(--max-width);
  margin: 2rem auto 4rem auto; /* Vertical spacing to separate intro from pillars */
  padding: 0 2rem;
  text-align: left; /* Aligning with the start of your service blocks */
}

.pre-service-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 3px solid var(--accent); /* Uses your brand blue */
  display: inline-block;
  padding-bottom: 0.2rem;
  margin-bottom: 1rem;          /* reduces the gap below */
  letter-spacing: 0.02em;       /* optional: makes it feel more modern */
}

/* 3. Increase Service Description Font Size */
.split-right p {
  font-size: 1.3rem !important; /* Bumping up from standard 1rem */
  line-height: 1.7;
  color: var(--text);
  margin-top: 1rem !important;
  }

/* 4. Ensure Vertical Alignment for Split Rows */
.split-row {
  display: flex !important;
  align-items: flex-start !important; /* Aligns left title and right text at the top */
  gap: 4rem;
  margin-bottom: 5rem;
}

.split-left {
  flex: 0 0 250px !important;
  padding-top: 0.5rem; /* Precise nudge to align baseline with the right-hand H3 */
}
.focus-list ul {
  list-style: none;
  padding: 0;
}

.focus-section ul li {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.focus-list li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.outcome {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #F1F7FA;
  border-left: 4px solid var(--accent);
  font-style: italic;
}

.divider {
  border: 0;
  border-top: 1px solid #E4E7EB;
  margin-bottom: 5rem;
}

@media (max-width: 768px) {
  .service-block { flex-direction: column; gap: 1.5rem; }
  .tagline { font-size: 2.5rem; }
  .service-hero { height: auto; padding: 4rem 2rem; }
}

/* Targeted fix for the right-hand description text */
.split-row .split-right p {
    font-size: 1.35rem !important; /* Noticeable increase */
    line-height: 1.8 !important;
    color: #1F2933 !important; /* Ensures it stays dark and readable */
    margin-top: 1rem !important;
}

/* Also bump the subtitle size (e.g., "Aligning Innovation with Reality") */
.split-right .subtitle {
    font-size: 2rem !important;
    margin-bottom: 1.2rem !important;
}

.geo-edge {
  max-width: 650;
  margin: 6rem auto;
  padding: 0 2rem;
  text-align: left;
}

.geo-edge h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);px
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.geo-edge p {
  font-size: 1.3rem;
  line-height: 1.75;
  max-width: var(--max-width);
  margin-bottom: 2.5rem;
}

.consult-button {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.consult-button:hover {
  background: #2f6f94;
}

.block-right p {
  font-size: 1.3rem;
  line-height: 1.75;
}

/* Expert Toggle Styling */
.expert-toggle {
    margin: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.toggle-trigger {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent); /* Brand blue */
    cursor: pointer;
    list-style: none; /* Removes the default arrow in some browsers */
    display: flex;
    align-items: center;
}

.toggle-trigger::before {
    content: "+";
    margin-right: 10px;
    font-family: monospace;
}

.expert-toggle[open] .toggle-trigger::before {
    content: "−";
}

.toggle-content {
    padding: 1rem 0;
    animation: fadeIn 0.4s ease;
}

.toggle-content p {
    font-size: 1.15rem !important; /* Slightly smaller than the main lead text */
    line-height: 1.7 !important;
    color: #4A5568 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specific styles for the Home Page only */
.home-page .hero-text-overlay {
    background: none !important; /* Removes the haze box */
    padding: 0 !important;
    box-shadow: none !important;
}

.home-page .hero-tagline {
    color: #FFFFFF !important; /* Sets home tagline to white */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Adds shadow for legibility */
}

.home-page .hero-subhead {
    color: #FFFFFF !important; /* Sets home subhead to white */
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* Contact Details (Left Pillar) */
.contact-details-box {
  margin-top: 2rem;
}

.contact-details-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent); /* Brand blue */
  margin-bottom: 0.5rem;
}

.contact-details-box p, .direct-email {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
  text-decoration: none;
}

.direct-email:hover {
    text-decoration: underline;
}

/* Minimalist Form (Right Pillar - Inspired by Image 4) */
.minimal-contact-form {
  margin-top: 3rem;
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #718096; /* Muted grey for minimalist labels */
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid #E2E8F0; /* Clean light line */
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent); /* Highlights blue on focus */
}

/* Matching the Send Message Button (From Image 4) */
.submit-button {
  margin-top: 2rem;
  background-color: #000000; /* Solid black as requested */
  color: #FFFFFF;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-button:hover {
  background-color: #333333;
}

/* Styling for the left-hand technical focus */
.technical-focus {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #718096; /* Subtle gray */
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.portfolio-desc {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #2D3748;
}

/* Make the Flagship link stand out */
.story-link {
  color: #1a365d; /* Your brand dark blue */
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #1a365d;
}

.story-link:hover {
  color: #2b6cb0;
  border-bottom-color: #2b6cb0;
}

/* Simple Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 3rem;
  width: 60%;
  max-width: 800px;
  border-radius: 4px;
}

/* Overview Section Styling */
.overview-section {
  padding: 60px 0 40px;
  background-color: #fcfcfc;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.container-thin {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.overview-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #2d3748;
  margin-bottom: 20px;
}

.overview-sub {
  font-style: italic;
  color: #718096;
}

/* Portfolio Content Styling */
.tagline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #1a365d;
}

.keywords {
  font-size: 0.85rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.summary {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Story Link Styling */
.story-link {
  color: #2b6cb0;
  font-weight: 600;
  text-decoration: none;
  margin-left: 5px;
}

.story-link:hover {
  text-decoration: underline;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px;
  width: 90%;
  max-width: 700px;
  border-radius: 4px;
  position: relative;
}

.close-btn {
  position: absolute;
  right: 20px; top: 10px;
  font-size: 28px; font-weight: bold; cursor: pointer;
}

/* Styling for the Keywords list under the subtitle */
.keyword-tagline {
  font-size: 0.85rem;
  color: #718096; /* Subtle grey to not distract from the summary */
  margin-bottom: 1.5rem;
  line-height: 1.4;
  border-left: 2px solid #e2e8f0;
  padding-left: 15px;
}

/* Styling for the "Read the story" links */
.story-link {
  color: #1a365d; /* Dark blue from your brand */
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.story-link:hover {
  border-bottom: 1px solid #1a365d;
  color: #2b6cb0; /* Slight color shift on hover */
}