/* ─────────────────────────────────────────────
   C-F&C Brand Design System
   Inspired by company brochure
   ───────────────────────────────────────────── */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --navy-deep: #0A2C4C;
  --navy:      #152238;
  --navy-light:#1E3050;
  --accent:    #5BAD3A;
  --accent-hover: #4E9631;
  --gray-100:  #F7F8FA;
  --gray-400:  #9CA3AF;
  --gray-500:  #6B7280;
  --gray-600:  #4B5563;
}

/* ─── BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-inter { font-family: 'Inter', sans-serif; }
.antialiased { -webkit-font-smoothing: antialiased; }

/* ─── COLORS (utility) ─── */
.bg-navy-deep { background-color: var(--navy-deep); }
.bg-navy      { background-color: var(--navy); }
.bg-navy-light{ background-color: var(--navy-light); }
.text-accent  { color: var(--accent); }
.bg-accent    { background-color: var(--accent); }

/* ─── NAVIGATION ─── */
#site-header {
  background: #0A2C4C;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

#site-header.header-scrolled {
  background: #0A2C4C;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

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

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

/* ─── BUTTONS ─── */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(91, 173, 58, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(91, 173, 58, 0.05);
}

/* ─── CARDS ─── */
.service-card {
  background: var(--navy-deep);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
  display: block;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 173, 58, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-card {
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}

.support-card:hover {
  border-color: rgba(91, 173, 58, 0.3);
  transform: translateY(-2px);
}

.location-card {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}

.location-card:hover {
  border-color: rgba(91, 173, 58, 0.3);
  transform: translateY(-2px);
}

.compliance-card {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.compliance-card:hover {
  border-color: rgba(91, 173, 58, 0.3);
}

.stat-box {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ─── TRUST BAR ─── */
.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

/* ─── FORMS ─── */
.form-section {
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(91, 173, 58, 0.15);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-label {
  display: block;
  color: var(--gray-400);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 173, 58, 0.1);
}

.form-input::placeholder {
  color: var(--gray-600);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-input option {
  background: var(--navy-deep);
  color: #fff;
}

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

.toggle-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  transition: border-color 0.2s;
}

.toggle-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.toggle-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.toggle-label {
  color: var(--gray-400);
  font-size: 0.9rem;
}

.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover,
.upload-zone-active {
  border-color: var(--accent);
  background: rgba(91, 173, 58, 0.05);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ─── RESPONSIVE IMAGES ─── */
img {
  max-width: 100%;
  height: auto;
}

/* ─── GRADIENT OVERLAY ─── */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }

/* ─── SCROLL BEHAVIOR ─── */
html {
  scroll-behavior: smooth;
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(91, 173, 58, 0.3);
  color: #fff;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ─── FOCUS STYLES (accessibility) ─── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── PRINT ─── */
@media print {
  body { background: #fff; color: #000; }
  .btn-accent, .btn-outline, #site-header { display: none; }
}
