/* ============================================================
   HARVILL SYSTEMS — styles.css
   ============================================================ */

/* CSS VARIABLES */
:root {
  --bg-primary:    #371E30;
  --bg-deep:       #26152200;
  --bg-card:       #42273a;
  --bg-card-alt:   #2e1c28;
  --accent:        #E76F51;
  --accent-hover:  #d45f40;
  --teal:          #416165;
  --teal-dark:     #0B3948;
  --text-main:     #FFFFFF;
  --text-body:     #CCCCCC;
  --text-muted:    #9a8a96;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --shadow:        0 4px 32px rgba(0,0,0,0.45);
  --radius:        10px;
  --radius-lg:     16px;
  --nav-height:    72px;
  --transition:    0.22s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #261422;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* CONTAINER */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(231,111,81,0.3);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-body);
  max-width: 520px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-sub {
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(231,111,81,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(231,111,81,0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-main);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.scrolled {
  background: rgba(38, 20, 34, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-main); }

.btn-cta-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  transition: background var(--transition), transform var(--transition) !important;
  box-shadow: 0 2px 12px rgba(231,111,81,0.3);
}
.btn-cta-nav:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(38, 20, 34, 0.97) 0%,
    rgba(55, 30, 48, 0.90) 40%,
    rgba(55, 30, 48, 0.65) 70%,
    rgba(11, 57, 72, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-inner {
  max-width: 620px;
  flex: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(231,111,81,0.3);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 40px;
}

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

/* Hero Card */
.hero-card {
  flex-shrink: 0;
  width: 280px;
}
.hero-card-inner {
  background: rgba(42, 27, 38, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.hc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.hc-row:first-child { padding-top: 0; }
.hc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hc-dot.green { background: #4caf82; box-shadow: 0 0 6px rgba(76,175,130,0.6); }
.hc-dot.orange { background: var(--accent); box-shadow: 0 0 6px rgba(231,111,81,0.6); }
.hc-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0 14px;
}
.hc-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.hc-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background var(--transition);
}
.hc-btn:hover { background: var(--accent-hover); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll-hint span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); transform-origin: top; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: #261422;
  padding: 120px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: rgba(231,111,81,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.service-card--featured {
  background: linear-gradient(145deg, #3d2337, #2a1626);
  border-color: rgba(231,111,81,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.sc-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 0 0 8px 8px;
}

.sc-icon {
  width: 52px;
  height: 52px;
  background: rgba(231,111,81,0.1);
  border: 1px solid rgba(231,111,81,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--text-body);
  transition: background var(--transition), border-color var(--transition);
}
.service-card:hover .sc-icon {
  background: rgba(231,111,81,0.18);
  border-color: rgba(231,111,81,0.4);
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
}

.sc-list {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.sc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: #2b1826;
  padding: 120px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.about-text .section-title { margin-top: 6px; }

.about-text p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 18px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* About Visual */
.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.av-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.av-card:hover {
  border-color: rgba(231,111,81,0.25);
  transform: translateX(6px);
}
.av-card--top { margin-left: 0; }
.av-card--mid { margin-left: 32px; }
.av-card--bot { margin-left: 64px; }

.av-icon {
  width: 44px;
  height: 44px;
  background: rgba(231,111,81,0.1);
  border: 1px solid rgba(231,111,81,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-body);
}

.av-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}
.av-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: #261422;
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 36px;
  margin-top: 8px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-body);
  transition: color var(--transition);
}
a.contact-link:hover { color: var(--accent); }

.cd-icon {
  width: 38px;
  height: 38px;
  background: rgba(231,111,81,0.1);
  border: 1px solid rgba(231,111,81,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-promise {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.cp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: 0.02em;
}
.req { color: var(--accent); margin-left: 2px; }
.opt { color: var(--text-muted); font-weight: 400; font-size: 11px; }

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-main);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}
.form-field select option {
  background: #2a1626;
  color: var(--text-main);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(231,111,81,0.5);
  background: rgba(231,111,81,0.04);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.btn-form {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 15px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(231,111,81,0.1);
  border: 1px solid rgba(231,111,81,0.3);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-main);
}
.form-success.visible {
  display: flex;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1d1019;
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.65;
  max-width: 240px;
}

.footer-nav-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.footer-nav a,
.footer-contact a,
.footer-contact p {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--text-body); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .about-visual {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .av-card--mid, .av-card--bot { margin-left: 0; flex: 1 1 240px; }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(30, 16, 26, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 32px 36px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .btn-cta-nav {
    margin-top: 12px;
    text-align: center;
    padding: 13px 16px !important;
    font-size: 14px !important;
  }
  .nav-toggle { display: flex; }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px 80px;
  }
  .hero-card { width: 100%; }
  .hero-scroll-hint { display: none; }

  .services { padding: 80px 0; }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .about { padding: 80px 0; }
  .about-visual {
    flex-direction: column;
  }
  .av-card--mid, .av-card--bot { margin-left: 0; }

  .contact { padding: 80px 0; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-form-wrap { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 32px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .about-stats {
    flex-direction: column;
    gap: 22px;
  }
}
