/* Base Variables & Reset */
:root {
  --primary-color: #0f172a; /* Slate 900 */
  --secondary-color: #334155; /* Slate 700 */
  --accent-color: #2563eb; /* Blue 600 */
  --accent-hover: #1d4ed8; /* Blue 700 */
  --bg-color: #f8fafc; /* Slate 50 */
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  padding: 1.5rem 0;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-color);
}
nav ul {
  display: flex;
  gap: 2rem;
}
nav a {
  font-weight: 500;
  color: var(--secondary-color);
  transition: color 0.2s;
}
nav a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { background-color: var(--accent-hover); }

/* Section Titles */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: -0.5px;
}

/* Projects Section */
.projects-section {
  padding: 5rem 0;
}
.projects-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 380px);
  gap: 2.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2rem;
  padding-bottom: 1rem;
}
.project-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-color);
  scroll-snap-align: start;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.project-image {
  height: 240px;
  background-color: #e2e8f0;
  background-size: cover;
  background-position: center;
}
.project-content {
  padding: 1.5rem;
}
.project-client {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background-color: var(--card-bg);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}
.team-card {
  text-align: center;
}
.team-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background-color: #e2e8f0;
  background-size: cover;
  background-position: center;
}
.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.team-role {
  color: var(--accent-color);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.team-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact / Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 0 0 2rem;
}
footer > .container {
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.footer-info p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: inherit;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--secondary-color);
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Anchor-jump offset so the sticky header never overlaps a scrolled-to section (fixes footer/section overlap when using nav links) */
section[id], footer[id] {
  scroll-margin-top: 90px;
}

/* Sliders (Services / Projects) */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.slider-track {
  scrollbar-width: thin;
}
.slider-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--primary-color);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  z-index: 5;
}
.slider-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}
@media (max-width: 640px) {
  .slider-btn { display: none; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  nav ul { display: none; /* simple mobile fallback */ }
}

/* Utilities */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* Expanded Sections CSS */
.section-padding { padding: 6rem 0; }
.bg-light { background-color: #f1f5f9; }
.bg-dark { background-color: var(--primary-color); }
.text-white { color: white; }
.text-center { text-align: center; }

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}
.bg-dark .section-header p { color: #cbd5e1; }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.hero { padding: 8rem 0; position: relative; overflow: hidden; }
.hero-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}
.trust-banner {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
}
.trust-banner p { font-size: 0.875rem; color: #94a3b8; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.logos-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logos-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    animation: logos-scroll 50s linear infinite;
}
.logos-marquee:hover .logos-track {
    animation-play-state: paused;
}
@keyframes logos-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.logo-ph {
    flex-shrink: 0;
    width: 140px;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
}
.logo-ph img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (max-width: 640px) {
    .logo-ph { width: 110px; height: 60px; }
}

.services-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 320px);
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2rem;
    padding-bottom: 1rem;
}
.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    scroll-snap-align: start;
}
.service-image {
    height: 180px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
}
.service-card-body {
    padding: 2rem;
}
.service-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

.benefits-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.benefits-image img { border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.benefits-list { margin-top: 2rem; }
.benefits-list li { margin-bottom: 2rem; }
.benefits-list h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.benefits-list p { color: var(--text-muted); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.step { position: relative; }
.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    margin-bottom: -1rem;
    line-height: 1;
}
.step h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.step p { color: #cbd5e1; font-size: 0.95rem; }

.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h4 {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.125rem;
}
.faq-item summary h4::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-left: 1rem;
}
.faq-item[open] summary h4::after {
    content: '\2212';
}
.faq-item p { color: var(--text-muted); margin-top: 1rem; }

.cta-banner {
    background: var(--accent-color);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cta-banner h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-banner p { font-size: 1.25rem; color: rgba(255,255,255,0.9); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.contact-form select {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    background-color: rgba(255,255,255,0.05);
    color: white;
    font-family: inherit;
}
.contact-form select option { color: var(--primary-color); }
.social-links { margin-top: 2rem; display: flex; gap: 1rem; }
.social-links a { color: #cbd5e1; font-weight: 600; text-decoration: underline; }
.social-links a:hover { color: white; }

.checkbox-group-label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.checkbox-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}
.checkbox-item:hover { background-color: rgba(255,255,255,0.05); }
.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}
.checkbox-group { margin-bottom: 1rem; }

@media (max-width: 768px) {
    .benefits-split { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
}
