/* ===================================
   Responsive Styles (Mobile First)
   eProseed Government Revenue Solutions
   =================================== */

/* === Mobile Base (< 576px) === */

/* Mobile Navigation - CSS Only Hamburger Menu */
.nav__toggle {
  display: flex;
  position: relative;
  z-index: calc(var(--z-modal) + 10);
}

.nav__list {
  display: flex;
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--color-lighter-gray);
  flex-direction: column;
  padding: var(--space-4xl) var(--space-xl);
  box-shadow: var(--shadow-xl);
  transition: right var(--transition-base);
  z-index: var(--z-modal);
  gap: var(--space-lg);
  align-items: flex-start;
}

.nav__item {
  align-items: flex-start;
  text-align: left;
}

.nav__number {
  font-size: var(--font-size-xs);
  margin-bottom: 2px;
}

.nav__link {
  font-size: var(--font-size-2xl);
}

.nav__link::after {
  left: 0;
  transform: none;
}

.nav__link--active::after,
.nav__link:hover::after,
.nav__link:focus::after {
  width: 40px;
}

.nav__checkbox:checked ~ .nav__list {
  right: 0;
}

.nav__checkbox:checked ~ .nav__toggle span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav__checkbox:checked ~ .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav__checkbox:checked ~ .nav__toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile overlay */
.nav__checkbox:checked ~ .nav__overlay {
  display: block;
}

.nav__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-backdrop);
}

/* Mobile Header */
.header__inner {
  padding: var(--space-md);
}

.header__logo img {
  height: 42px;
}

/* Mobile Hero */
.hero {
  padding: var(--space-3xl) 0;
}

.hero__title {
  font-size: var(--font-size-3xl);
}

.hero__subtitle {
  font-size: var(--font-size-base);
}

.hero__actions {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-md);
}

.hero__actions .btn {
  width: 100%;
  justify-content: center;
}

/* Mobile Typography */
h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

/* Mobile Section */
.section {
  padding: var(--space-2xl) 0;
}

/* Mobile Footer */
.footer__inner {
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.footer__bottom {
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

/* Mobile Two Column */
.two-col {
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.two-col--reverse {
  direction: ltr;
}

/* Mobile Page Header */
.page-header {
  padding: var(--space-2xl) 0;
}

.page-header__title {
  font-size: var(--font-size-3xl);
}

.page-header__text {
  font-size: var(--font-size-base);
}

/* Mobile Cards */
.card-grid {
  grid-template-columns: 1fr;
}

/* Mobile Section Tabs */
.section-tabs {
  flex-wrap: wrap;
}

.section-tabs__tab {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-xs);
}

/* Mobile Stats */
.stats {
  grid-template-columns: repeat(2, 1fr);
}

.stat__number {
  font-size: var(--font-size-3xl);
}

/* Mobile Award Highlight */
.award-highlight {
  flex-direction: column;
  text-align: center;
  gap: var(--space-md);
}

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

.award-highlight__image {
  width: 100px;
}

/* Mobile Awards Carousel */
.awards-carousel {
  padding: var(--space-md);
}

.awards-carousel__header {
  flex-direction: column;
  gap: var(--space-sm);
}

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

.awards-carousel__trophy {
  width: 60px;
}

.awards-carousel__number {
  font-size: var(--font-size-3xl);
}

.awards-carousel__viewport {
  margin: 0 var(--space-xl);
}

.awards-carousel__nav {
  width: 32px;
  height: 32px;
}

.awards-carousel__nav svg {
  width: 16px;
  height: 16px;
}

.award-slide__list li {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

/* Mobile Service Cards */
.service-card {
  flex-direction: column;
}

/* Mobile CTA */
.cta {
  padding: var(--space-2xl) 0;
}

.cta__title {
  font-size: var(--font-size-2xl);
}

/* Mobile Solutions Navigation */
.solutions-nav {
  position: relative;
  top: 0;
  padding: var(--space-sm) 0;
}

.solutions-nav__list {
  gap: 4px;
}

.solutions-nav__link {
  font-size: 10px;
  padding: 4px 8px;
}

/* Mobile Map */
.map-container {
  height: 300px;
}

/* Mobile Offices */
.offices {
  grid-template-columns: 1fr;
}

/* Mobile Team */
.team-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Mobile Values */
.values-grid {
  grid-template-columns: 1fr;
}

/* Mobile Stats */
.stats-grid {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.stat-item {
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Mobile Values Circle - Hide on small screens */
.values-circle {
  display: none;
}

/* Mobile Page Hero - Full image with overlay */
.page-hero {
  height: 70vh;
  min-height: 350px;
  max-height: 490px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero--careers {
  background-image: url('../images/life-at-eproseed-hero.jpg');
}

.page-hero--solutions {
  background-image: url('../images/visual-artificialintelligencebigdatablockchain-1148438339.jpg');
}

.page-hero--contact {
  background-image: url('../images/visual-middlewaremanagement-1169517546.jpg');
}

.page-hero--whyeproseed {
  background-image: url('../images/visual-whyeproseed-244553308-resized.jpg');
}

.page-hero::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  clip-path: none;
}

.page-hero__content {
  max-width: 100%;
  padding: var(--space-xl) var(--container-padding);
  text-align: center;
}

.page-hero__statement {
  font-size: var(--font-size-3xl);
  color: var(--color-navy);
}

.page-hero__cta {
  font-size: var(--font-size-sm);
}

/* Mobile Team Grid */
.team-staggered-grid {
  gap: var(--space-lg) var(--space-md);
}

.team-member--staggered .team-member__photo {
  width: 120px;
  height: 120px;
}

/* Mobile Values Detail Grid */
.values-detail-grid {
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.values-detail {
  padding: var(--space-md);
}

.values-detail__icon {
  width: 48px;
  height: 48px;
}

.values-detail__icon svg {
  width: 24px;
  height: 24px;
}


/* === Small Devices (>= 576px) === */
@media (min-width: 576px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .hero__title {
    font-size: var(--font-size-4xl);
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
  }

  .hero__actions .btn {
    width: auto;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Values Detail Grid - 2 columns */
  .values-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}


/* === Medium Devices - Tablets (>= 768px) === */
@media (min-width: 768px) {
  /* Typography */
  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  /* Section */
  .section {
    padding: var(--space-3xl) 0;
  }

  /* Hero */
  .hero {
    padding: var(--space-4xl) 0;
  }

  .hero__title {
    font-size: var(--font-size-5xl);
  }

  .hero__subtitle {
    font-size: var(--font-size-lg);
  }

  /* Page Header */
  .page-header {
    padding: var(--space-3xl) 0;
  }

  .page-header__title {
    font-size: var(--font-size-4xl);
  }

  .page-header__text {
    font-size: var(--font-size-lg);
  }

  /* Navigation - Show desktop nav */
  .nav__toggle {
    display: none;
  }

  .nav__list {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    gap: var(--space-xl);
    align-items: flex-end;
  }

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

  .nav__number {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
  }

  .nav__link {
    font-size: var(--font-size-lg);
  }

  .nav__link::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .nav__link--active::after,
  .nav__link:hover::after,
  .nav__link:focus::after {
    width: 60%;
  }

  .nav__overlay {
    display: none;
  }

  .header__logo img {
    height: 52px;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Values Circle - Show on tablet+ */
  .values-circle {
    display: flex;
  }

  .values-circle__outer {
    max-width: 320px;
  }

  .values-circle__center {
    width: 100px;
    height: 100px;
    font-size: var(--font-size-base);
  }

  .values-circle__label {
    font-size: var(--font-size-xs);
  }

  /* Values Detail - Reset padding */
  .values-detail {
    padding: var(--space-lg);
  }

  .values-detail__icon {
    width: 56px;
    height: 56px;
  }

  .values-detail__icon svg {
    width: 28px;
    height: 28px;
  }

  /* Two Column */
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .two-col--reverse {
    direction: rtl;
  }

  .two-col--reverse > * {
    direction: ltr;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    text-align: left;
  }

  /* Map */
  .map-container {
    height: 400px;
  }

  /* Offices */
  .offices {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Service Cards */
  .service-card {
    flex-direction: row;
  }

  /* CTA */
  .cta {
    padding: var(--space-3xl) 0;
  }

  .cta__title {
    font-size: var(--font-size-3xl);
  }

  /* Solutions Navigation - sticky on tablet+ */
  .solutions-nav {
    position: sticky;
    top: 130px;
    padding: var(--space-md) 0;
  }

  .solutions-nav__list {
    gap: var(--space-xs);
  }

  .solutions-nav__link {
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-md);
  }

  /* Tablet Page Hero - Side by side */
  .page-hero {
    height: 70vh;
    min-height: 350px;
    max-height: 560px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: none;
  }

  .page-hero::before {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 55%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .page-hero--careers::before {
    background-image: url('../images/life-at-eproseed-hero.jpg');
  }

  .page-hero--solutions::before {
    background-image: url('../images/visual-artificialintelligencebigdatablockchain-1148438339.jpg');
  }

  .page-hero--contact::before {
    background-image: url('../images/visual-middlewaremanagement-1169517546.jpg');
  }

  .page-hero--whyeproseed::before {
    background-image: url('../images/visual-whyeproseed-244553308-resized.jpg');
  }

  .page-hero__content {
    max-width: 45%;
    padding: var(--space-2xl);
    padding-left: 5%;
    text-align: left;
  }

  .page-hero__statement {
    font-size: var(--font-size-4xl);
    color: var(--color-navy);
  }

  /* Tablet Team Grid */
  .team-staggered-grid {
    gap: var(--space-xl) var(--space-xl);
  }

  .team-member--staggered .team-member__photo {
    width: 140px;
    height: 140px;
  }
}


/* === Large Devices - Desktops (>= 992px) === */
@media (min-width: 992px) {
  /* Container */
  .container {
    padding: 0 var(--space-xl);
  }

  /* Header */
  .header__inner {
    padding: var(--space-xl) var(--space-xl);
  }

  .header__logo img {
    height: 65px;
  }

  /* Navigation */
  .nav__list {
    gap: var(--space-2xl);
  }

  .nav__link {
    font-size: var(--font-size-xl);
  }

  /* Cards */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }

  .footer__brand {
    grid-column: 1;
  }

  /* Hero */
  .hero {
    padding: var(--space-5xl) 0;
  }

  /* Two Column Gap */
  .two-col {
    gap: var(--space-3xl);
  }

  /* Offices */
  .offices {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Values Circle - Full size */
  .values-circle__outer {
    max-width: 400px;
  }

  .values-circle__center {
    width: 120px;
    height: 120px;
    font-size: var(--font-size-lg);
  }

  .values-circle__label {
    font-size: var(--font-size-sm);
  }

  /* Desktop Page Hero */
  .page-hero {
    height: 70vh;
    min-height: 420px;
    max-height: 630px;
  }

  .page-hero::before {
    width: 60%;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .page-hero__content {
    max-width: 42%;
    padding: var(--space-3xl);
    padding-left: 5%;
  }

  .page-hero__statement {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
  }

  .page-hero__subtitle {
    font-size: var(--font-size-lg);
  }

  /* Desktop Team Grid */
  .team-staggered-grid {
    gap: var(--space-xl) var(--space-2xl);
  }

  .team-member--staggered .team-member__photo {
    width: 160px;
    height: 160px;
  }

  /* Values Detail Grid - 3 columns on large screens */
  .values-detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* === Extra Large Devices (>= 1200px) === */
@media (min-width: 1200px) {
  /* Typography */
  h1 {
    font-size: var(--font-size-5xl);
  }

  /* Hero */
  .hero__title {
    font-size: var(--font-size-6xl);
  }

  .hero__subtitle {
    font-size: var(--font-size-xl);
  }

  /* Cards */
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Offices - show all in a row */
  .offices {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* === Print Styles === */
@media print {
  .header,
  .footer,
  .nav,
  .btn,
  .map-container {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .section {
    padding: 1cm 0;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}


/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* === High Contrast Mode === */
@media (prefers-contrast: more) {
  .btn {
    border-width: 3px;
  }

  .form__input,
  .form__textarea {
    border-width: 2px;
  }
}
