/* 
 * Origin FMS - Custom Stylesheet
 * Modern facility management website
 */

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette - Deep professional with warm accents */
  --primary: #0f4c75;
  --primary-dark: #0a3655;
  --primary-light: #1a6fa8;
  --accent: #f77f00;
  --accent-light: #fcbf49;
  --success: #2d936c;
  --dark: #1b2838;
  --dark-muted: #2c3e50;
  --light: #f8f9fa;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --text: #2c3e50;
  --text-muted: #6c757d;
  
  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--gray {
  background-color: var(--light);
}

.section--dark {
  background-color: var(--dark);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
}

.btn--accent:hover {
  background: #e67300;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
}

.btn--white:hover {
  background: var(--light);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--dark);
  padding: var(--space-xs) 0;
  font-size: 0.85rem;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.topbar__company {
  color: var(--white);
  font-weight: 500;
}

.topbar__contact {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.topbar__link {
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--transition-fast);
}

.topbar__link:hover {
  color: var(--white);
}

.topbar__link i {
  color: var(--accent);
}

@media (max-width: 768px) {
  .topbar__company {
    display: none;
  }
  .topbar__contact {
    gap: var(--space-sm);
    font-size: 0.8rem;
  }
}

/* ===== NAVIGATION ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 48px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  color: var(--text);
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-md);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 6px 0;
  transition: var(--transition-base);
}

@media (max-width: 992px) {
  .nav__toggle {
    display: block;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-slow);
  }
  
  .nav__menu.active {
    right: 0;
  }
  
  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: var(--space-2xl) 0;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero--lg {
  padding: var(--space-2xl) 0 calc(var(--space-2xl) * 1.5);
  min-height: 500px;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero__subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

.hero__actions {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--white);
  font-size: 1.5rem;
}

.card__icon--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.card__icon--success {
  background: linear-gradient(135deg, var(--success) 0%, #3cb371 100%);
}

.card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Service card variant */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary);
  font-size: 1.25rem;
}

.service-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.service-card__list {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-card__list li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--light-gray);
}

.service-card__list li:last-child {
  border-bottom: none;
}

/* ===== CLIENT GRID ===== */
.client-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-base);
  text-align: center;
}

.client-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.client-card__image {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-sm);
}

.client-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

/* ===== STATS SECTION ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

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

.stat__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.stat__icon--primary { color: var(--primary); }
.stat__icon--accent { color: var(--accent); }
.stat__icon--success { color: var(--success); }

.stat__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about__label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.about__title {
  margin-bottom: var(--space-md);
}

.about__text {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.about__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

/* ISO certification badge */
.iso-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--light);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
}

.iso-badge img {
  max-width: 280px;
  height: auto;
}

/* ===== STRENGTHS LIST ===== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .strengths-grid {
    grid-template-columns: 1fr;
  }
}

.strength-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--light);
  border-radius: var(--radius-md);
}

.strength-item__icon {
  color: var(--success);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.strength-item__text {
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  background: var(--light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--primary);
  font-size: 1.25rem;
}

.contact-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.contact-card address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.contact-card__link {
  display: block;
  color: var(--primary);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.contact-card__link:hover {
  color: var(--accent);
}

/* Emergency support banner */
.emergency-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--white);
  text-align: center;
}

.emergency-banner__title {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.emergency-banner__text {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.emergency-banner__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.emergency-banner__stat {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.emergency-banner__stat i {
  color: var(--accent-light);
}

/* ===== CTA SECTION ===== */
.cta {
  background: var(--light);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta__title {
  margin-bottom: var(--space-md);
}

.cta__title span {
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer__about {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 400px;
}

.footer__title {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__contact-list {
  list-style: none;
  font-size: 0.9rem;
}

.footer__contact-list li {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.footer__contact-list i {
  color: var(--accent);
  margin-right: var(--space-xs);
}

.footer__contact-list a {
  color: var(--accent);
}

.footer__contact-list a:hover {
  color: var(--accent-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: 0.85rem;
}

.footer__social a {
  color: rgba(255,255,255,0.7);
  margin-left: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--accent);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-header__label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__text {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== FEATURE HIGHLIGHT ===== */
.feature-highlight {
  position: relative;
  padding: var(--space-2xl) 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.feature-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.9) 0%, rgba(26, 111, 168, 0.85) 100%);
}

.feature-highlight__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.feature-highlight__title {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* ===== HIGHLIGHT BADGES ===== */
.badges {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.badge-item__icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.5rem;
}

.badge-item__text {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 576px) {
  .hero {
    padding: var(--space-xl) 0;
    min-height: 350px;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero__actions {
    flex-direction: column;
  }
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* FAQ Accordion styles */
details.faq-item summary {
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary i {
  transition: transform var(--transition-base);
}

details.faq-item[open] summary i {
  transform: rotate(180deg);
}

/* ===== PRINT STYLES ===== */
@media print {
  .header, .footer, .hero__scroll, .cta {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
}
