/* ============================================
   BUILDSYNC - Construction Scheduling Website
   ============================================ */

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

:root {
  --primary: #0D9488;       /* teal */
  --primary-dark: #0A7A70;
  --dark: #2D3748;          /* charcoal */
  --dark-2: #374151;
  --mid: #4B5563;
  --text: #4A5568;
  --text-light: #718096;
  --bg: #F7F8FC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --success: #38A169;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

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

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

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

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

/* --- NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.logo-svg {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--dark-2);
  padding: 16px 24px;
  gap: 16px;
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
}
.mobile-menu.open { display: flex; }

/* --- HERO --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 40%, var(--mid) 100%);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: var(--primary);
  opacity: 0.07;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 500px; height: 500px;
  background: var(--primary);
  opacity: 0.05;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.15);
  color: var(--primary);
  border: 1px solid rgba(13, 148, 136, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- STATS --- */
.stats {
  background: var(--primary);
  padding: 48px 0;
}

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

.stat-item h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-item p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-top: 6px;
  font-weight: 500;
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

/* --- SERVICES --- */
.services {
  padding: 100px 0;
  background: var(--bg);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* --- HOW IT WORKS --- */
.how-it-works {
  padding: 100px 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

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

.step-number {
  width: 56px; height: 56px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.step p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- WHY US --- */
.why-us {
  padding: 100px 0;
  background: var(--bg);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-text .section-tag { display: block; margin-bottom: 12px; }

.why-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.why-text > p {
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}

.why-list {
  margin-bottom: 36px;
}
.why-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
}
.why-list li:first-child { border-top: 1px solid var(--border); }

.why-image-placeholder {
  background: linear-gradient(135deg, var(--dark), var(--mid));
  border-radius: 16px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
}
.why-image-placeholder span { font-size: 5rem; }
.why-image-placeholder p {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.7;
  text-align: center;
}

/* --- TESTIMONIALS --- */
.testimonials {
  padding: 100px 0;
  background: var(--dark);
}

.testimonials .section-header h2 { color: var(--white); }
.testimonials .section-tag { color: var(--primary); }

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

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background 0.2s;
}
.testimonial-card:hover { background: rgba(255,255,255,0.1); }

.testimonial-card > p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}
.testimonial-author span {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--primary);
  padding: 72px 0;
}

.cta-inner {
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-inner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  font-size: 1rem;
}
.cta-inner .btn-primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.cta-inner .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
}

/* --- FOOTER --- */
.footer {
  background: var(--dark-2);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { font-size: 1.4rem; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; max-width: 200px; line-height: 1.6; }

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-contact p {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
}
.footer-bottom p {
  color: rgba(255,255,255,0.25);
  font-size: 0.82rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

/* --- PAGE HERO --- */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 72px 0;
  text-align: center;
}
.page-hero .section-tag { display: block; margin-bottom: 12px; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 80px 0 100px;
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: flex-start;
}

/* Info Panel */
.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.contact-info > p {
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.free-consult-box {
  background: var(--primary);
  color: var(--white);
  padding: 24px 20px;
  border-radius: var(--radius);
}
.free-consult-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.free-consult-box p {
  font-size: 0.88rem;
  opacity: 0.9;
  line-height: 1.6;
}

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

.contact-form-wrap h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

.required { color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #E53E3E;
}

.error-msg {
  font-size: 0.78rem;
  color: #E53E3E;
  min-height: 16px;
}

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

/* Checkbox */
.checkbox-group { margin-bottom: 24px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }

.success-icon {
  width: 60px; height: 60px;
  background: var(--success);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.form-success p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid::before { display: none; }
  .why-inner { grid-template-columns: 1fr; }
  .why-image { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 72px 0 80px; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .contact-form-wrap { padding: 28px 20px; }
}
