/* ============================================
   HASIL CONSULTING — Brand Stylesheet
   Colors: Maroon #702828, Terracotta #BA4E0C,
           Sage #C8B784, Teal #62ACA2, Cream #F0E7DE
   Fonts:  Domine (headings), Open Sans (body)
   ============================================ */

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

:root {
  --maroon: #702828;
  --terracotta: #BA4E0C;
  --sage: #C8B784;
  --teal: #62ACA2;
  --cream: #F0E7DE;
  --white: #FFFFFF;
  --dark: #2D2D2D;
  --light-gray: #F7F4F0;
  --mid-gray: #888888;
}

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

body {
  font-family: 'Open Sans', 'Calibri', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Domine', Georgia, serif; line-height: 1.25; }
h1 { font-size: 2.75rem; color: var(--maroon); }
h2 { font-size: 2rem; color: var(--maroon); }
h3 { font-size: 1.35rem; color: var(--terracotta); }
h4 { font-size: 1.1rem; color: var(--maroon); }

a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--maroon); }

img { max-width: 100%; height: auto; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Header / Nav --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 3px solid var(--terracotta);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0.8rem 1.5rem;
}

.nav-logo {
  display: flex; align-items: center;
  line-height: 0;
}

.nav-logo img {
  height: 56px; width: auto; display: block;
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }

.nav-links a {
  font-size: 0.95rem; font-weight: 600; color: var(--dark);
  position: relative; padding-bottom: 2px;
}

.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--terracotta);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover { color: var(--terracotta); }

.nav-cta {
  background: var(--terracotta); color: var(--white) !important;
  padding: 0.5rem 1.25rem; border-radius: 4px; font-weight: 600;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--maroon); color: var(--white) !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--maroon); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--white);
    padding: 1.5rem; gap: 1.25rem; border-bottom: 3px solid var(--terracotta);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
}

/* --- Hero --- */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light-gray) 100%);
  position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; right: -5%; top: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(186,78,12,0.06);
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1rem;
  border: 2px solid var(--terracotta); padding: 0.3rem 0.8rem; border-radius: 3px;
}

.hero h1 { margin-bottom: 1.25rem; max-width: 720px; }

.hero p { font-size: 1.15rem; max-width: 640px; color: #555; margin-bottom: 2rem; }

.btn {
  display: inline-block; padding: 0.85rem 2rem; border-radius: 4px;
  font-weight: 700; font-size: 0.95rem; transition: all 0.25s; cursor: pointer; border: none;
}

.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--maroon); color: var(--white); }
.btn-outline { border: 2px solid var(--maroon); color: var(--maroon); background: transparent; margin-left: 1rem; }
.btn-outline:hover { background: var(--maroon); color: var(--white); }

/* --- Sections --- */
section { padding: 5rem 0; }

.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.75rem;
}

.section-heading { margin-bottom: 1rem; }
.section-intro { font-size: 1.05rem; color: #555; max-width: 680px; margin-bottom: 2.5rem; }
.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-cream { background: var(--cream); }
.bg-maroon { background: var(--maroon); color: var(--white); }
.bg-maroon h2, .bg-maroon h3 { color: var(--white); }
.bg-maroon .section-label { color: var(--sage); }
.bg-maroon p { color: rgba(255,255,255,0.9); }
.text-center { text-align: center; }

/* --- Cards Grid --- */
.card-grid { display: grid; gap: 1.75rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

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

.card {
  background: var(--white); border-radius: 6px; padding: 2rem;
  border: 1px solid #e8e4df;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }

.card-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.25rem; color: var(--white);
}

.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; color: #666; margin-bottom: 1rem; }

.card ul { list-style: none; padding: 0; }
.card ul li { position: relative; padding-left: 1.25rem; margin-bottom: 0.4rem; font-size: 0.9rem; color: #555; }
.card ul li::before { content: '\2022'; position: absolute; left: 0; color: var(--teal); font-weight: bold; }

/* --- Values / Mission Grid --- */
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.value-card {
  text-align: center; padding: 2rem 1.5rem;
  border-top: 3px solid var(--terracotta);
  background: var(--white); border-radius: 0 0 6px 6px;
}

.value-card h4 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: #666; }

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

/* --- Package Cards --- */
.package-card {
  border-radius: 6px; overflow: hidden;
  background: var(--white); border: 1px solid #e8e4df;
  transition: transform 0.2s, box-shadow 0.2s;
}

.package-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }

.package-header { padding: 1.5rem; color: var(--white); }
.package-header h3 { color: var(--white); margin-bottom: 0.25rem; }
.package-header .duration { font-size: 0.85rem; opacity: 0.85; }

.package-body { padding: 1.5rem; }
.package-body p { font-size: 0.9rem; color: #555; margin-bottom: 1rem; }

/* --- Testimonial --- */
.testimonial {
  background: var(--white); border-radius: 6px; padding: 2.5rem;
  border-left: 4px solid var(--teal); margin-bottom: 1.75rem;
}

.testimonial blockquote {
  font-size: 1rem; font-style: italic; color: #444;
  margin-bottom: 1rem; line-height: 1.7;
}

.testimonial cite { font-size: 0.85rem; font-weight: 700; color: var(--maroon); font-style: normal; }

/* --- Case Study Cards --- */
.case-card {
  background: var(--white); border-radius: 6px; padding: 2rem;
  border: 1px solid #e8e4df;
  border-left: 4px solid var(--terracotta);
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }

.case-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 3px; margin-bottom: 0.75rem;
}

.tag-digital { background: rgba(98,172,162,0.15); color: var(--teal); }
.tag-strategy { background: rgba(112,40,40,0.1); color: var(--maroon); }
.tag-leadership { background: rgba(186,78,12,0.1); color: var(--terracotta); }
.tag-operations { background: rgba(200,183,132,0.3); color: #7a6e3e; }

.case-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.case-card p { font-size: 0.9rem; color: #666; }

/* --- Contact Section --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

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

.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 1.5rem; color: #555; }

.contact-detail { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-detail .icon { color: var(--teal); font-size: 1.1rem; margin-top: 0.15rem; }
.contact-detail strong { display: block; color: var(--maroon); }
.contact-detail span { font-size: 0.9rem; color: #555; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid #d5d0ca;
  border-radius: 4px; font-family: inherit; font-size: 0.95rem;
  margin-bottom: 1rem; background: var(--white);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none; border-color: var(--terracotta);
}

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

.contact-schedule {
  background: var(--cream); border: 1px solid #e5e0d9;
  border-radius: 8px; padding: 2.5rem;
}
.contact-schedule h3 { margin-bottom: 1rem; }
.contact-schedule p { margin-bottom: 1.75rem; color: #555; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* --- Footer --- */
.site-footer {
  background: var(--maroon); color: rgba(255,255,255,0.8); padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.footer-brand h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }

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

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

.cert-badge {
  display: inline-block; font-size: 0.75rem;
  border: 1px solid rgba(255,255,255,0.25); padding: 0.3rem 0.7rem;
  border-radius: 3px; color: var(--sage);
}

/* --- Utility --- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.gap-sm { gap: 0.5rem; } .gap-md { gap: 1rem; }

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

/* --- Footer bottom links --- */
.footer-bottom-links {
  list-style: none; display: flex; gap: 1.5rem;
}

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

.fade-in { animation: fadeInUp 0.6s ease-out both; }
.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }
