/* ===========================
   SIGREV® — Modern Theme
   =========================== */

:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;

  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08), 0 12px 48px rgba(0,0,0,0.04);
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.highlight {
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ===========================
   Header
   =========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-600);
  background: var(--green-50);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===========================
   Hero
   =========================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.88) 0%, rgba(6, 95, 70, 0.82) 30%, rgba(4, 120, 87, 0.78) 60%, rgba(15, 118, 110, 0.82) 100%);
  z-index: 0;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero .highlight {
  background: linear-gradient(135deg, var(--green-200), var(--green-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===========================
   Section Styles
   =========================== */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header p {
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 1.1rem;
}

/* ===========================
   Features
   =========================== */

.features {
  padding: 100px 0;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--green-500);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===========================
   Solution Overview
   =========================== */

.solution-overview {
  padding: 100px 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.solution-text h2 {
  margin-bottom: 20px;
}

.solution-text > p {
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.7;
}

.solution-list {
  list-style: none;
  margin-bottom: 36px;
}

.solution-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.solution-list li:last-child { border-bottom: none; }

.solution-list strong {
  color: var(--gray-900);
  font-weight: 600;
}

.solution-list span {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Solution Visual (image) */
.solution-visual {
  position: relative;
}

.solution-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===========================
   Use Cases
   =========================== */

.use-cases {
  padding: 100px 0;
  background: var(--gray-50);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition);
}

.case-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-img-wrapper {
  height: 220px;
  overflow: hidden;
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-img {
  transform: scale(1.05);
}

.case-content {
  padding: 28px 24px;
  text-align: center;
}

.case-card h3 {
  margin-bottom: 12px;
}

.case-card p {
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===========================
   CTA
   =========================== */

.cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: var(--white);
}

.cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ===========================
   Page Content
   =========================== */

.page {
  padding-top: 96px;
  padding-bottom: 80px;
}

.page-hero {
  text-align: center;
  padding: 40px 0 60px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero .hero-subtitle {
  color: var(--gray-500);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   Page Hero with Image
   =========================== */

.page-hero-img {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0 80px;
  margin: -20px 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-hero-img h1 {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.page-hero-img .hero-subtitle {
  position: relative;
  z-index: 1;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.85), rgba(4, 120, 87, 0.75));
}

.highlight-light {
  color: var(--green-200);
}

/* ===========================
   Solution Showcase (alternating image/text)
   =========================== */

.solution-showcase {
  padding: 20px 0 60px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.showcase-item.reverse {
  direction: rtl;
}

.showcase-item.reverse > * {
  direction: ltr;
}

.showcase-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.showcase-text h2 {
  margin-bottom: 16px;
  color: var(--green-700);
}

.showcase-text p {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ===========================
   Solution Detail (inner page)
   =========================== */

.solution-detail {
  padding: 20px 0 60px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.detail-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.detail-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow);
}

.detail-card h3 {
  margin-bottom: 12px;
  color: var(--green-700);
}

.detail-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===========================
   Contact Section
   =========================== */

.contact-section {
  padding: 20px 0 60px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 40px 28px;
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  color: var(--green-500);
}

.contact-card h3 {
  margin-bottom: 4px;
}

.contact-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card .btn {
  margin-top: 8px;
}

.contact-phone {
  color: var(--green-600);
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: color var(--transition);
}

.contact-phone:hover {
  color: var(--green-700);
}

.contact-card small {
  color: var(--gray-400);
  font-size: 0.8rem;
}

.contact-address-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  color: var(--gray-500);
}

.contact-address-bar svg {
  flex-shrink: 0;
  color: var(--green-500);
}

.contact-address-bar p {
  font-size: 0.95rem;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-800);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-brand .logo-sig { color: var(--white); }

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.site-footer a {
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--green-400);
}

.footer-contact p,
.footer-address p {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-bottom {
  padding: 20px 0;
  font-size: 0.8rem;
  text-align: center;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 80vh;
    padding: 100px 0 60px;
  }

  .solution-grid,
  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .features-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .case-card {
    padding: 28px 20px;
  }
}
