/*
Theme Name: Crocodic V3
Theme URI: https://crocodic.com
Author: Wildan Rozaqi
Author URI: https://crocodic.com
Description: Enterprise Custom Software Development theme for Crocodic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crocodic
*/

/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --gradient-color: linear-gradient(288deg, #0C7DFA -1.61%, #9BCAFD 62.97%, #F0A8A8 86%, #DEE357 112.28%);
  --linier-blue: linear-gradient(196deg, #F5FAFF 49.6%, #B2D9FF 182.05%);
  --color-primary: #1080FB;
  --color-primary-dark: #0C7DFA;
  --color-navy: #192363;
  --color-black: #070707;
  --color-dark: #212121;
  --color-gray: #706F72;
  --color-charcoal: #434343;
  --color-dark-text: #050505;
  --color-border: #D1EBFA;
  --color-bg-light: #F6FAFC;
  --color-bg-blue: #F6FBFE;
  --color-bg-white: #fff;
  --font-geist: 'Geist', -apple-system, Roboto, Helvetica, sans-serif;
  --font-inter: 'Inter', -apple-system, Roboto, Helvetica, sans-serif;
  --font-onest: 'Onest', -apple-system, Roboto, Helvetica, sans-serif;
  /* spacing scale */
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 72px;
  /* section padding */
  --section-x: clamp(20px, 4.2vw, 60px);
  --section-y: clamp(48px, 5vw, 72px);
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.home {
  font-family: var(--font-inter);
  color: var(--color-black);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scope resets to homepage sections to avoid breaking the header/footer */
.hero-section *, 
.stats-section *, 
.problems-section *, 
.solutions-section *, 
.portfolio-section *, 
.cta-section *, 
.faq-section * { 
  margin: 0; 
  padding: 0; 
}

.hero-section img,
.stats-section img,
.problems-section img,
.solutions-section img,
.portfolio-section img,
.cta-section img,
.faq-section img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-section a,
.stats-section a,
.problems-section a,
.solutions-section a,
.portfolio-section a,
.cta-section a,
.faq-section a {
  text-decoration: none;
  color: inherit;
}

.hero-section button,
.stats-section button,
.problems-section button,
.solutions-section button,
.portfolio-section button,
.cta-section button,
.faq-section button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ===========================
   LAYOUT HELPERS
   =========================== */
.homepage-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--section-x);
}

/* ===========================
   TYPOGRAPHY UTILITIES
=========================== */
.heading-xl {
  font-family: var(--font-geist);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 120%;
}
.heading-lg {
  font-family: var(--font-geist);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 130%;
}
.heading-md {
  font-family: var(--font-geist);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 125%;
}
.body-lg {
  font-family: var(--font-inter);
  font-size: clamp(15px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 130%;
  color: var(--color-gray);
}

/* ===========================
   BADGES & LABELS
=========================== */
.badge-pill {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}
.section-label {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.ai-badge {
  display: inline-flex;
  padding: 4px 16px;
  border-radius: 100px;
  background: var(--gradient-color);
  color: #fff;
  font-family: var(--font-inter);
  font-size: 10px;
  font-weight: 600;
  line-height: 24px;
  align-self: flex-start;
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary-dark {
  display: inline-flex;
  padding: 12px 32px;
  border-radius: 12px;
  background: var(--color-dark);
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  min-height: 48px;
  transition: opacity 0.2s;
}
.btn-primary-dark:hover { opacity: 0.88; }

.btn-outline {
  display: inline-flex;
  padding: 12px 32px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-dark);
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  min-height: 48px;
  background: transparent;
  transition: background 0.2s;
}
.btn-outline:hover { background: var(--color-bg-blue); }

/* ===========================
   SITE HEADER
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--section-x);
}
.site-logo img {
  width: 127px;
  height: 33px;
  object-fit: contain;
}

/* hamburger toggle - visible on all sizes, hidden on desktop */
.header-menu-toggle {
  display: flex;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-blue);
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}
.header-menu-toggle:hover {
  background: #e8f4fe;
  border-color: var(--color-primary);
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
  position: relative;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
  transform-origin: center;
}

/* hamburger → X animation */
.header-menu-toggle.active .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-menu-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header-menu-toggle.active {
  border-color: var(--color-dark);
  background: #fff;
}

/* ===========================
   MOBILE NAV OVERLAY
=========================== */
.mobile-nav {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 40px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.mobile-nav li {
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(28px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.open li {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.mobile-nav.closing li {
  transition-delay: calc((var(--total, 1) - 1 - var(--i, 0)) * 0.06s);
  opacity: 0;
  transform: translateY(18px) scale(0.95);
}
.mobile-nav a {
  color: var(--color-dark);
  font-family: var(--font-inter);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 4px;
}
.mobile-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s;
  border-radius: 1px;
}
.mobile-nav a:hover { color: var(--color-primary); }
.mobile-nav a:hover::after { width: 100%; }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-dark);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
}
.mobile-nav-close:hover {
  background: var(--color-bg-blue);
  border-color: var(--color-primary);
  transform: rotate(90deg) scale(1.08);
}
.mobile-nav-close svg {
  display: block;
}

/* ===========================
   SECTION SHARED
=========================== */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 51px;
  text-align: center;
}
.section-heading {
  font-family: var(--font-geist);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 130%;
  color: #000;
}
.section-subtext {
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  color: var(--color-gray);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1 0 0;
  min-width: 80px;
}
.stat-value {
  font-family: var(--font-geist);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 125%;
  color: var(--color-navy);
}
.stat-label {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  color: var(--color-gray);
}
.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: underline;
  min-height: 44px;
}
.case-study-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: underline;
  min-height: 44px;
}



/* ===========================
   FAQ SECTION
=========================== */
.faq-section {
  padding: var(--section-y) 0;
  background: #fff;
}
.faq-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--section-x);
  display: flex;
  flex-direction: column;
  gap: 51px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.faq-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-question-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.faq-question {
  font-family: var(--font-geist);
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  color: #000;
  flex: 1 0 0;
}
.faq-toggle {
  display: flex;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.faq-toggle:hover { background: var(--color-bg-blue); }
.faq-answer {
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  color: var(--color-gray);
}
.faq-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  border: none;
}



/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: url('assets/images/footer-bg.webp') lightgray 0px -61.285px / 100% 124.818% no-repeat;
  overflow: hidden;
  position: relative;
  padding: var(--section-y) 0;
  min-height: 400px;
}
.footer-blur {
  position: absolute;
  left: 41px;
  top: 78px;
  pointer-events: none;
  z-index: 0;
  max-width: 100%;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--section-x);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img {
  width: 127px;
  height: 33px;
  object-fit: contain;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 125%;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-certifications {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-cert-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 1 280px;
}
.footer-col-title {
  font-family: var(--font-geist);
  font-size: 16px;
  font-weight: 600;
  line-height: 125%;
  color: #fff;
}
.footer-cert-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-cert-logos img { object-fit: contain; max-height: 28px; }
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(209, 235, 250, 0.5);
  border: none;
}
.footer-company {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-company-name {
  font-family: var(--font-geist);
  font-size: 16px;
  font-weight: 600;
  line-height: 125%;
  color: #fff;
}
.footer-locations {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-location {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 180px;
}
.footer-location-name {
  font-family: var(--font-onest);
  font-size: 18px;
  font-weight: 500;
  line-height: 125%;
  color: #fff;
}
.footer-location-address {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  color: #fff;
}
.footer-social {
  display: flex;
  padding: 6px 0 8px;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-social a {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  color: #fff;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 125%;
  color: #fff;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ===========================
   BLOG / INDEX
=========================== */
.blog-post-card a:hover h2 { color: var(--color-primary); }

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
  padding: var(--section-y) 0;
  background: #fff;
}
.cta-card {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  border-radius: 12px;
  background: linear-gradient(84deg, #FFF -14.19%, rgba(255, 255, 255, 0.00) 65.27%), url('../images/cta-bg.webp') lightgray 50% / cover no-repeat;
  min-height: 320px;
}
.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 32px;
  flex: 1 0 0;
  min-width: 0;
}
.cta-title {
  font-family: var(--font-geist);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 125%;
  color: #000;
}
.cta-body {
  font-family: var(--font-inter);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 130%;
  color: var(--color-gray);
}
.cta-visual { flex: 1 0 0; }

/* ===========================
   RESPONSIVE — MOBILE (≤640px)
=========================== */
@media (max-width: 640px) {
  :root {
    --section-x: 20px;
    --section-y: 48px;
  }

  /* header */
  .site-header { height: 64px; }
  .header-inner { padding: 0 20px; }
  .btn-primary-dark { width: 100%; justify-content: center; }
  .btn-outline { width: 100%; justify-content: center; }

  /* section headers */
  .section-header { margin-bottom: 32px; }
  .section-heading { font-size: clamp(22px, 6vw, 30px); }
  .section-subtext { font-size: 15px; }

  /* stat items */
  .stat-item { flex: 1 1 calc(50% - 10px); min-width: 120px; }
  .stat-value { font-size: 26px; }

  /* cta */
  .cta-section { padding: 40px 0; }
  .cta-card {
    padding: 32px 24px;
    flex-direction: column;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.9) 60%), url('assets/images/cta-bg.webp') lightgray 50% / cover no-repeat;
    min-height: auto;
  }
  .cta-visual { display: none; }
  .cta-title { font-size: clamp(22px, 5.5vw, 28px); }
  .cta-body { font-size: 15px; }
  .cta-content { gap: 24px; }

  /* faq */
  .faq-section { padding: 40px 0; }
  .faq-inner { gap: 32px; }
  .faq-question { font-size: 15px; }
  .faq-answer { font-size: 15px; }

  /* footer */
  .site-footer { padding: 40px 0; min-height: auto; }
  .footer-inner { gap: 40px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav { display: none; }
  .footer-certifications { flex-direction: column; gap: 28px; }
  .footer-cert-col { flex: none; width: 100%; }
  .footer-cert-logos { gap: 16px; }
  .footer-locations { flex-direction: column; gap: 24px; }
  .footer-location { flex: none; width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 20px; }
  .footer-company-name { font-size: 14px; }
  .footer-location-name { font-size: 16px; }
  .footer-blur { display: none; }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE (≤380px)
=========================== */
@media (max-width: 380px) {
  .badge-pill { font-size: 12px; padding: 6px 14px; white-space: normal; }
}

/* ===========================
   PRINT
=========================== */
@media print {
  .site-header, .mobile-nav, .site-footer { display: none; }
  .cta-section { display: none; }
  .faq-section { padding: 24px 0; }
}
