/* =====================================================
   ENSRV HR Platform - Landing Page Styles
   Matching exact design from reference screenshot
   ===================================================== */

/* ======================= CSS VARIABLES ======================= */
:root {
    /* Primary Colors */
    --color-primary-blue: #1e40af;
    --color-primary-dark: #1e3a8a;
    --color-green: #22c55e;
    --color-green-dark: #16a34a;
    --color-orange: #f97316;
    --color-yellow: #eab308;
    --color-purple: #7c3aed;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
}

/* ======================= RESET & BASE ======================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ======================= HERO SECTION ======================= */
.hero {
    padding: 40px;
    background-color: var(--color-white);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Hero Left Column */
.hero__left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero__headline {
    margin-bottom: 8px;
}

.hero__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin: 0;
    line-height: 1.2;
}

.hero__title-bold {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

.hero__logo {
    margin: 16px 0;
}

.hero__logo-img {
    max-width: 160px;
    height: auto;
    border-radius: 6px;
}

.hero__tagline {
    margin-bottom: 8px;
}

.hero__tagline-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-green-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.hero__tagline-sub {
    font-size: 13px;
    color: var(--color-gray-500);
    line-height: 1.5;
}

.hero__cta {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Go Green Message */
.hero__go-green {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-top: 2px;
}

.go-green__text {
    color: var(--color-gray-600);
}

.go-green__highlight {
    color: var(--color-green);
    font-weight: 600;
}

.go-green__icon {
    width: 18px;
    height: 18px;
    margin-left: 4px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
    transition: var(--transition-base);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* Hero Right Column */
.hero__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero__group-logo {
    text-align: center;
    transform: translateX(30px);
}

.hero__group-logo-img {
    max-width: 200px;
    height: auto;
}

.hero__building {
    position: relative;
    max-width: 380px;
    width: 100%;
}

.hero__building-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0.95;
}

/* ======================= OUR PROJECTS SECTION ======================= */
.op {
    padding: 48px 0;
    background-color: var(--color-gray-50);
}

.op-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.op-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-align: center;
    margin: 0 0 24px 0;
}

/* Segmented Tabs */
.op-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 24px auto;
    background-color: var(--color-gray-200);
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.op-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray-500);
    background-color: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.op-tab:hover {
    color: var(--color-gray-700);
}

.op-tab--active {
    background-color: var(--color-white);
    color: var(--color-primary-blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.op-content {
    width: 100%;
}

.op-panel {
    display: none;
    animation: opFadeIn 0.2s ease;
}

.op-panel--active {
    display: block;
}

.op-panel[hidden] {
    display: none;
}

@keyframes opFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Grid Layout */
.op-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
}

.op-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Module Item */
.op-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-700);
    transition: color 0.15s ease;
}

.op-item:hover {
    color: var(--color-primary-blue);
}

/* Check Icon */
.op-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Responsive */
@media (max-width: 768px) {
    .op-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .op-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .op-tab {
        width: 100%;
        text-align: center;
    }
}

/* ======================= FOOTER ======================= */
.footer {
    background-color: var(--color-white);
    padding: 30px 40px;
    border-top: 1px solid var(--color-gray-200);
}

.footer-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-label {
    font-size: 11px;
    color: var(--color-gray-500);
    font-weight: 500;
}

.footer-label--orange {
    color: var(--color-orange);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloudflare-svg {
    width: 28px;
    height: 28px;
}

.google-svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
}

/* ======================= RESPONSIVE DESIGN ======================= */
@media (max-width: 1024px) {
    .hero {
        padding: 24px;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero__right {
        order: -1;
    }
    
    .hero__left {
        align-items: center;
        text-align: center;
    }
    
    .hero__headline {
        text-align: center;
    }
    
    .hero__cta {
        align-items: center;
    }
    
    .hero__logo {
        display: flex;
        justify-content: center;
    }
    
    .hero__tagline {
        text-align: center;
    }
    
    .hero__group-logo {
        transform: translateX(0);
    }
    
    .hero__building {
        max-width: 300px;
    }
    
    .tabs {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
    
    .tabs__btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .projects-container {
        padding: 0 20px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 20px 16px;
    }
    
    .hero__title {
        font-size: 16px;
    }
    
    .hero__title-bold {
        font-size: 28px;
    }
    
    .hero__building {
        max-width: 240px;
    }
    
    .hero__group-logo-img {
        max-width: 120px;
    }
    
    .projects {
        padding: 32px 16px;
    }
    
    .projects__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .tabs__btn {
        width: 100%;
        text-align: center;
    }
    
    .projects-container {
        padding: 0 16px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .footer-item {
        align-items: center;
    }
}

/* ======================= ACCESSIBILITY ======================= */
*:focus-visible {
    outline: 2px solid var(--color-primary-blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ======================= OUR PROJECTS (Enterprise Rebuild) ======================= */

.projects-section {
  padding: 56px 0;
}

.projects-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.projects-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 20px;
  color: #123a8a;
  letter-spacing: -0.2px;
}

/* Tabs (segmented control) */
.projects-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  background: #eef1f6;
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  margin: 0 auto 26px;
  width: fit-content;
  max-width: 100%;
}

.projects-tab {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.projects-tab.is-active {
  background: #ffffff;
  color: #1f3f8f;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
  border: 1px solid #e6eaf2;
}

/* Panels */
.projects-panels {
  width: 100%;
}

.projects-panel {
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  justify-content: center;
}

/* Lists */
.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projects-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

/* Check icon */
.projects-check {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  position: relative;
}

.projects-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #22c55e;
  border-bottom: 2px solid #22c55e;
  transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 980px) {
  .projects-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .projects-title {
    font-size: 24px;
  }
}

/* ===== FORCE TRUE VISUAL CENTERING (Our Projects) ===== */

.projects-section{
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.projects-section .projects-container{
  width: min(960px, 100%) !important;
  margin: 0 !important;
  padding: 0 24px !important;
}

.projects-section .projects-title{
  text-align: center !important;
}
.projects-section .projects-tabs{
  margin-left: auto !important;
  margin-right: auto !important;
}

.projects-section .projects-grid{
  gap: 32px !important;
}

/* =========================================================
   GLOBAL CONTAINER ALIGNMENT
   ========================================================= */

:root{
  --page-max-width: 1200px;
  --page-padding: 24px;
}

body{
  margin: 0;
  padding: 0;
}

.hero__container,
.projects-container{
  max-width: var(--page-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--page-padding) !important;
  padding-right: var(--page-padding) !important;
}

.projects-section{
  width: 100%;
}

.projects-grid{
  gap: 28px !important;
}

.projects-panels{
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.projects-grid{
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  justify-items: center;
}

/* Force tabs to center on page */
.projects-container{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-tabs{
  display: inline-flex !important;
  margin: 0 auto 26px auto !important;
}

/* Clean vertical list layout */
.projects-list{
  display: flex;
  flex-direction: column;
  gap: 0;
}

.projects-item{
  padding: 7px 0;
}
