/* ==========================================
   Division of Information Technology (DoIT)
   Custom Styles — Terracotta & Sand Theme
   ========================================== */

/* --- Base & Utilities --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Selection --- */
::selection {
  background: #C45A3C;
  color: #FDF9F5;
}

/* --- Fixed Background Shapes --- */
.bg-shapes {
  z-index: 0;
}

.shape-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.shape-circle--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(196, 90, 60, 0.06) 0%, transparent 70%);
  animation: floatShape 20s ease-in-out infinite;
}

.shape-circle--2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, rgba(224, 172, 112, 0.08) 0%, transparent 70%);
  animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-rect {
  position: absolute;
  pointer-events: none;
}

.shape-rect--1 {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 5%;
  background: rgba(196, 90, 60, 0.04);
  border-radius: 32px;
  transform: rotate(15deg);
  animation: floatShape 18s ease-in-out infinite;
}

.shape-rect--2 {
  width: 120px;
  height: 120px;
  bottom: 30%;
  left: 8%;
  background: rgba(224, 172, 112, 0.06);
  border-radius: 24px;
  transform: rotate(-10deg);
  animation: floatShape 22s ease-in-out infinite reverse;
}

.shape-triangle {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.shape-triangle--1 {
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(196, 90, 60, 0.04);
  top: 60%;
  right: 12%;
  animation: floatShape 15s ease-in-out infinite;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
  50% { transform: translateY(-20px) rotate(calc(var(--rotate, 0deg) + 5deg)); }
}

.shape-triangle--1 { --rotate: 15deg; }
.shape-rect--1 { --rotate: 15deg; }
.shape-rect--2 { --rotate: -10deg; }

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeUp {
  animation-name: fadeUp;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }

/* --- Navigation --- */
.nav-header {
  background: rgba(253, 249, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(224, 188, 150, 0.3);
  transition: all 0.4s ease;
}

.nav-header.scrolled {
  background: rgba(253, 249, 245, 0.95);
  box-shadow: 0 1px 20px rgba(30, 30, 30, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C45A3C;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.logo-mark {
  color: #C45A3C;
  transition: transform 0.3s ease;
}

.logo-mark:hover {
  transform: scale(1.05);
}

.logo-mark--light rect {
  fill: #FDF9F5;
}

/* --- Buttons --- */
.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #C45A3C;
  color: #FDF9F5;
  padding: 14px 28px;
  border-radius: 60px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196, 90, 60, 0.3);
}

.cta-btn-primary:hover {
  background: #a8462c;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 90, 60, 0.4);
  color: #FDF9F5;
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #1E1E1E;
  padding: 14px 28px;
  border-radius: 60px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid rgba(30, 30, 30, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-btn-secondary:hover {
  border-color: #C45A3C;
  color: #C45A3C;
  transform: translateY(-2px);
}

/* --- Hero --- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-float-card {
  animation: floatCard 6s ease-in-out infinite;
}

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

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 90, 60, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-geo {
  animation: floatShape 12s ease-in-out infinite;
}

.accent-triangle {
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 69px solid rgba(196, 90, 60, 0.15);
  animation-delay: 1s;
}

.accent-dots {
  width: 48px;
  height: 48px;
  background-image: radial-gradient(circle, #C45A3C 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.3;
  animation-delay: 2s;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  animation: fadeUp 1s ease 1.5s both;
}

.scroll-mouse {
  opacity: 0.5;
}

.scroll-dot {
  animation-delay: 0.5s;
}

/* --- Section Styles --- */
.section {
  position: relative;
}

.section-label {
  align-items: center;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* --- Service Cards --- */
.services-grid {
  position: relative;
  z-index: 1;
}

.service-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.service-card-bg {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-pattern {
  background-image: 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.4'%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");
}

.service-card-link {
  margin-top: auto;
}

/* --- Integrated Banner --- */
.integrated-banner-inner {
  position: relative;
  overflow: hidden;
}

.integrated-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 172, 112, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.geo-badge {
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- About Section --- */
.about-image-container {
  position: relative;
}

.about-geo {
  transition: transform 0.5s ease;
}

.about-image-container:hover .about-geo--1 {
  transform: rotate(5deg) scale(1.05);
}

.about-image-container:hover .about-geo--2 {
  transform: rotate(-5deg) scale(1.05);
}

.experience-badge {
  animation: floatCard 5s ease-in-out infinite;
}

.values-grid {
  position: relative;
  z-index: 1;
}

.value-item {
  padding: 16px;
  border-radius: 16px;
  transition: background 0.3s ease;
}

.value-item:hover {
  background: rgba(196, 90, 60, 0.04);
}

/* --- Approach Section --- */
.approach-section {
  position: relative;
}

.approach-bg {
  background: linear-gradient(135deg, #C45A3C 0%, #8b3722 100%);
}

.approach-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.5'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.process-step {
  position: relative;
}

.process-step-line {
  opacity: 0.5;
}

/* --- Quote Section --- */
.quote-container {
  position: relative;
  padding: 40px 0;
}

.quote-mark {
  line-height: 1;
  margin-bottom: -20px;
  display: block;
}

/* --- CTA Section --- */
.cta-container {
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.cta-info-geo {
  animation: floatShape 15s ease-in-out infinite;
}

/* --- Contact Form --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4A4540;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #EDD4BA;
  border-radius: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: #1E1E1E;
  background: #FDF9F5;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #C4A070;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #C45A3C;
  box-shadow: 0 0 0 3px rgba(196, 90, 60, 0.1);
  background: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L2 4h8L6 8z' fill='%234A4540'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-success {
  animation: fadeUp 0.6s ease both;
}

/* --- Footer --- */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #C45A3C, #E0AC70, #C45A3C);
}

/* --- Mobile Menu --- */
.mobile-menu {
  background: rgba(253, 249, 245, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-menu-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(224, 188, 150, 0.3);
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-float-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
    max-width: 100%;
  }

  .hero-img-main {
    border-radius: 16px;
  }

  .service-card {
    border-radius: 20px;
  }

  .service-card .p-10,
  .service-card .p-12 {
    padding: 24px;
  }

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

  .value-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
  }

  .value-number {
    margin-bottom: 0 !important;
    font-size: 2rem !important;
  }

  .quote-mark {
    font-size: 5rem !important;
  }

  .cta-info,
  .cta-form {
    padding: 28px !important;
  }

  .about-geo--1 {
    width: 20px !important;
    height: 20px !important;
    bottom: -4px !important;
    right: -4px !important;
  }

  .about-geo--2 {
    width: 14px !important;
    height: 14px !important;
    top: -4px !important;
    left: -4px !important;
  }
}

@media (max-width: 640px) {
  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px !important;
  }

  .trust-strip > div:first-child {
    display: none;
  }

  .trust-strip > div:nth-child(2) {
    display: none;
  }
}

/* --- Print --- */
@media print {
  .bg-shapes,
  .scroll-indicator,
  .nav-header {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
