/* ============================================
   HOMIQ — STYLESHEET
   ============================================
   EDIT GUIDE:
   • :root variables at the top = change colors, fonts, spacing globally
   • Search for "RESPONSIVE" to find mobile breakpoint styles
   • Each section is labeled with a comment block
   ============================================ */

/* ---------- CSS VARIABLES (Edit these to re-theme the entire site) ---------- */
:root {
  --primary: #2563EB;        /* Main brand blue */
  --primary-dark: #1D4ED8;   /* Darker blue for hover states */
  --accent: #F97316;         /* Orange accent for CTAs */
  --bg: #FFFFFF;             /* Page background */
  --light: #F8FAFC;          /* Alternating section background */
  --border: #E5E7EB;         /* Card borders, dividers */
  --text: #1F2937;           /* Main heading text */
  --text-secondary: #6B7280; /* Body text, descriptions */
  --card: #FFFFFF;           /* Card backgrounds */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.05);
  --radius: 12px;            /* Standard card radius */
  --radius-lg: 16px;         /* Hero image, large cards */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ============================================
   HEADER & NAVIGATION
   Sticky, shrinks on scroll, mobile hamburger
   ============================================ */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

/* When scrolled: nav padding shrinks, shadow appears */
header.scrolled {
  box-shadow: var(--shadow);
}

header.scrolled nav {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

header.scrolled .logo-text { font-size: 1.35rem; }

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  transition: height 0.3s ease;
}

header.scrolled .logo-img {
  height: 36px;
}

.logo-img-footer {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  transition: color 0.2s;
}

/* Animated underline on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* ============================================
   BUTTONS
   Primary (blue), Outline (border), Accent (orange)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(249,115,22,0.25);
}

.btn-accent:hover {
  background: #EA580C;
  transform: translateY(-2px);
}

/* ============================================
   MOBILE MENU
   Hamburger toggle + dropdown panel
   ============================================ */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu.active { display: block; animation: fadeUp 0.3s ease; }

.mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu .btn {
  margin-top: 1rem;
  width: 100%;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
main { padding-top: 76px; }

section { padding: 5rem 1.5rem; }

.light-bg { background: var(--light); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

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

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ============================================
   HERO SECTION
   Two-column: text left, image right
   ============================================ */
.hero {
  padding: 5rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 76px);
}

.hero-content { animation: fadeUp 0.8s ease-out; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #EFF6FF;
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  animation: fadeUp 0.9s ease-out 0.15s both;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-img-wrapper:hover img { transform: scale(1.03); }

/* Floating badges on hero image */
.floating-badge {
  position: absolute;
  background: white;
  padding: 0.6rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}

.floating-badge.badge-1 { top: 10%; left: -20px; animation-delay: 0s; }
.floating-badge.badge-2 { top: 45%; right: -15px; animation-delay: 1.3s; }
.floating-badge.badge-3 { bottom: 12%; left: 5%; animation-delay: 2.6s; }

.badge-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ============================================
   BOOKING FORM SECTION
   Compact card below hero
   ============================================ */
.booking-section {
  padding: 0 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.booking-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.booking-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
}

/* ============================================
   FORMS (shared styles for all forms)
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}

.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(37,99,235,0.1);
}

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

/* ============================================
   SERVICES GRID
   8 service cards with hover effects
   ============================================ */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #BFDBFE;
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img { transform: scale(1.08); }

.service-body { padding: 1.5rem; }

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

.service-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* ============================================
   HOW IT WORKS — 4 Steps
   ============================================ */
.steps-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

/* Connecting line between steps (desktop only) */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 35px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--primary));
  z-index: 0;
}

.step-icon {
  width: 72px; height: 72px;
  background: white;
  border: 2px solid #EFF6FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step:hover .step-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================
   WHY CHOOSE US — Feature Cards
   ============================================ */
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #BFDBFE;
}

.feature-icon {
  width: 56px; height: 56px;
  background: #EFF6FF;
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1.2rem;
}

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

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   JOIN OUR TEAM SECTION
   ============================================ */
.join-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.join-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.join-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.join-img:hover img { transform: scale(1.04); }

.join-content h2 { text-align: left; margin-bottom: 1rem; }

.join-content > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.benefits-list {
  list-style: none;
  margin-bottom: 2rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

/* Green checkmark bullets */
.benefits-list li::before {
  content: '✓';
  width: 24px; height: 24px;
  background: #ECFDF5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   APPLICATION FORM
   ============================================ */
.application-section { padding-top: 2rem; }

.application-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.application-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.application-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.application-form .form-group.full { grid-column: 1 / -1; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-container {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: #BFDBFE; }

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--primary); }

/* Plus/minus icon built with CSS */
.faq-icon {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  top: 11px; left: 4px;
  width: 16px; height: 2px;
}

.faq-icon::after {
  top: 4px; left: 11px;
  width: 2px; height: 16px;
}

/* Rotate vertical bar to create minus when open */
.faq-item.active .faq-icon::after { transform: rotate(90deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: stretch;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: #EFF6FF;
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item div strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-item div span,
.contact-item div a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

/* Map placeholder — replace with Google Maps iframe */
.map-placeholder {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  text-align: center;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern background */
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect fill="none" stroke="%23E5E7EB" stroke-width="1" x="0" y="0" width="60" height="60"/></svg>');
  opacity: 0.5;
}

.map-placeholder > * { position: relative; z-index: 1; }

.map-placeholder .pin {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.map-placeholder strong {
  color: var(--text);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-img-footer {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll-triggered reveal class */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   992px = tablet, 768px = mobile, 480px = small mobile
   ============================================ */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero p { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }
  .join-grid { grid-template-columns: 1fr; gap: 3rem; }
  .join-content h2 { text-align: center; }
  .join-content > p { text-align: center; }
  .benefits-list { max-width: 300px; margin: 0 auto 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .step:nth-child(1)::after { right: -25%; }
  .step:nth-child(3)::after { right: -25%; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .application-form { grid-template-columns: 1fr; }
  .booking-form { grid-template-columns: 1fr; }
  .floating-badge { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .booking-card { padding: 1.5rem; }
  .application-card { padding: 1.5rem; }
}
