/* ===== VARIABLES ===== */
:root {
  --orange: #d55b2c;
  --navy: #1c224d;
  --gray: #a49c9c;
  --bg-light: #DBD3D3;
  --bg-white: #f8f5f5;
  --black: #1a181b;
  --white: #ffffff;
  --text-dark: #1a181b;
  --text-mid: #4a4a4a;
  --text-light: #7a7a7a;
  --border: rgba(28,34,77,0.12);
  --shadow-sm: 0 2px 8px rgba(28,34,77,0.08);
  --shadow-md: 0 8px 32px rgba(28,34,77,0.12);
  --shadow-lg: 0 24px 64px rgba(28,34,77,0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 0;
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.logo-img { height: 166px; width: auto; object-fit: contain; margin-top: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.nav-link:hover { color: var(--orange); background: rgba(255,255,255,0.08); }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 9px 22px;
}
.nav-cta:hover { background: #c04a1e !important; color: var(--white) !important; }

.nav-internal {
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50px;
}
.nav-internal:hover { border-color: var(--orange); color: var(--orange) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: #c04a1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(213,91,44,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: #151a3d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,34,77,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-danger {
  background: #e53e3e;
  color: var(--white);
}
.btn-danger:hover { background: #c53030; }

.btn-sm { font-size: 12px; padding: 8px 18px; }
.btn-lg { font-size: 16px; padding: 16px 36px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(213,91,44,0.1);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 32px;
}

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

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,34,77,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-green { background: #e6f7ed; color: #1a7340; }
.badge-orange { background: rgba(213,91,44,0.12); color: var(--orange); }
.badge-navy { background: rgba(28,34,77,0.1); color: var(--navy); }
.badge-gray { background: rgba(164,156,156,0.2); color: #666; }
.badge-red { background: #feeaea; color: #c53030; }

/* ===== ALERTS ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #e6f7ed; color: #1a7340; border-left: 4px solid #1a7340; }
.alert-error { background: #feeaea; color: #c53030; border-left: 4px solid #c53030; }
.alert-info { background: rgba(28,34,77,0.06); color: var(--navy); border-left: 4px solid var(--navy); }
.alert-warning { background: rgba(213,91,44,0.08); color: var(--orange); border-left: 4px solid var(--orange); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,24,27,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 24px; cursor: pointer;
  color: var(--text-light);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg-light); }

/* ===== LOADING ===== */
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-loading { position: relative; pointer-events: none; opacity: 0.7; }

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-heading);
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { border-left: 4px solid #48bb78; }
.toast.error { border-left: 4px solid #fc8181; border-left-color: #fc8181; background: #c53030; }
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; text-align: center; }
  .section { padding: 60px 0; }
  .modal { padding: 24px; }
}
