/* ========================================
   VILLAGE IT — styles.css
   ======================================== */

/* ========== CSS VARIABLES ========== */
/* These let you change colors in one place and have them update everywhere */
:root {
  --primary: #1d4ed8;           /* Main blue */
  --primary-dark: #1e40af;      /* Darker blue for hover states */
  --primary-light: #dbeafe;     /* Very light blue for backgrounds */
  --text: #111827;              /* Main text color (near black) */
  --text-muted: #6b7280;        /* Subdued text for descriptions */
  --bg: #ffffff;                /* Page background */
  --bg-alt: #f8fafc;            /* Alternating section background */
  --border: #e5e7eb;            /* Subtle borders */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

/* ========== RESET & BASE ========== */
/* Remove browser default spacing and set box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Smooth scrolling when clicking nav links */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========== LAYOUT: CONTAINER ========== */
/* Centers content and limits max width */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ========== NAVIGATION ========== */
.header {
  position: sticky;    /* Stays at top when scrolling */
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  height: 64px;
}

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.logo span {
  color: var(--primary); /* "IT" part is blue */
}

/* Nav menu (links + CTA button grouped together) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto; /* Pushes menu to the right */
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  margin-left: auto;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  /* clamp(min, preferred, max) — responsive font size */
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* Buttons stack on small screens */
}

/* ========== SHARED SECTION STYLES ========== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ========== SERVICES GRID ========== */
.services {
  background: var(--bg);
}

/* auto-fit: fills the row with as many columns as possible, min 280px each */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px); /* Subtle lift on hover */
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== WHY US ========== */
.why-us {
  background: var(--bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 1.5rem;
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== ABOUT ========== */
.about {
  background: var(--bg);
}

.about-content {
  max-width: 680px; /* Keeps text from stretching too wide */
}

.about-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* ========== CONTACT ========== */
.contact {
  background: var(--bg-alt);
}

/* Stacked vertical layout */
.contact-info {
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* 4-column grid for contact items */
.contact-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item a {
  color: var(--primary);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--primary-dark);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Two-column row for name + email */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Highlight the field that's currently active */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

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

/* ========== FOOTER ========== */
.footer {
  background: var(--text); /* Dark background */
  color: #d1d5db;
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer .logo {
  color: #fff;
  font-size: 1.5rem;
}

.footer .logo span {
  color: #60a5fa; /* Lighter blue on dark background */
}

.footer p {
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer .copyright {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ========== PRICING ========== */
.pricing {
  background: var(--bg);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Trip fee notice box */
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.pricing-note-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pricing-note p {
  font-size: 0.95rem;
  color: #1e3a8a; /* Dark blue text on light blue background */
  line-height: 1.6;
}

/* ========== FORM SUCCESS STATE ========== */
.form-success[hidden] {
  display: none;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  gap: 1rem;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: #16a34a;
  color: #fff;
  font-size: 2rem;
  line-height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
  line-height: 1.6;
}

.form-success-note {
  font-size: 0.875rem !important;
  color: #9ca3af !important;
}

/* ========================================
   RESPONSIVE — Mobile styles (max 768px)
   ======================================== */
@media (max-width: 768px) {

  /* Hide desktop nav, show hamburger button */
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
    gap: 1rem;
  }

  /* When JS adds the "open" class, show the menu */
  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: block;
  }

  /* Stack name/email row and contact items vertically on small screens */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-items-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 3rem 0;
  }

  .section {
    padding: 3.5rem 0;
  }
}
