/* CCB Surveying & Associates - Single Page */
:root {
  --orange: #e67e22;
  --orange-dark: #d35400;
  --grey-dark: #2c3e50;
  --grey-mid: #4a5568;
  --grey-light: #f5f6fa;
  --white: #ffffff;
  --text: #333;
  --text-light: #6b7280;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Top bar - full width, email left, phone right, optional background image - compact to match image */
.top-bar {
  background: var(--grey-dark);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 0.4rem 0;
  font-size: 0.8rem;
  width: 100%;
  position: relative;
  min-height: auto;
  max-height: 52px;
  display: flex;
  align-items: center;
}

.top-bar--has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 80, 0.75);
  pointer-events: none;
}

.top-bar-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  gap: 0.5rem;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--orange);
}

/* Header - full width with navbar */
.site-header {
  background: var(--white);
  padding: 0.9rem 0;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-img {
  height: 110px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grey-dark);
  text-decoration: none;
}

.logo-link:hover .logo-text {
  text-decoration: none;
}

.logo-text span {
  color: var(--orange);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--grey-dark);
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
  color: var(--orange);
  background: rgba(230, 126, 34, 0.08);
  text-decoration: none;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--grey-mid);
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grey-dark);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile: hamburger + menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 99;
    margin-top: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    background: var(--white);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 0;
    width: 100%;
    border-radius: 0;
  }
}

/* Top bar: on mobile keep email left, phone right */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  .top-bar a {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
  }

  .top-bar-email {
    text-align: left;
  }

  .top-bar-phone {
    text-align: right;
  }
}

/* Hero - full width */
.hero {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  min-height: 550px;
  background: var(--grey-dark) url('../images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero .tagline {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.95);
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero must stay full width (section rule above would limit it) */
section.hero {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--grey-dark);
  margin: 0 0 2rem;
}

.section-title .accent {
  border-bottom: 3px solid var(--orange);
  padding-bottom: 2px;
}

/* Two-col layout (About etc) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Schedules of Condition - polished card layout */
.services {
  background: linear-gradient(180deg, #f8f9fc 0%, var(--white) 50%);
  padding: 4.5rem 2rem 5rem;
}

.services .section-title {
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.services .section-title .accent {
  border-bottom: none;
}

.services .section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--orange);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.services .section-lead {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-light);
  margin: 0 auto 3rem;
  max-width: 520px;
  line-height: 1.65;
}

.schedules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sched-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  border-left: 4px solid var(--orange);
  transition: box-shadow 0.3s ease, transform 0.25s ease, border-left-color 0.25s ease;
}

.sched-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(230, 126, 34, 0.15);
  transform: translateY(-3px);
  border-left-color: var(--orange-dark);
}

.sched-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--grey-dark);
  padding-bottom: 0.5rem;
  /* border-bottom: 2px solid var(--orange); */
  display: inline-block;
  letter-spacing: -0.01em;
}

.sched-card p {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.sched-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
}

.sched-card li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.55;
}

.sched-card-wide {
  grid-column: 1 / -1;
}

.sched-card .clean-list {
  margin: 0;
  padding-left: 1.35rem;
}

@media (max-width: 768px) {
  .schedules-grid {
    grid-template-columns: 1fr;
  }

  .sched-card-wide {
    grid-column: 1;
  }
}

/* Testimonials */
.testimonials-section {
  background: var(--white);
  padding: 4rem 2rem;
}

.testimonials-section .section-title {
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--grey-light);
  border-radius: 8px;
  border-left: 4px solid var(--orange);
}

.testimonial p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
}

/* Contact form */
.contact-section {
  background: var(--grey-light);
  padding: 4rem 2rem;
}

.contact-section .section-title {
  text-align: center;
}

.contact-intro {
  text-align: center;
  max-width: 560px;
  margin: -0.5rem auto 1rem;
  font-size: 1.05rem;
  color: var(--text);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-links a {
  color: var(--grey-dark);
  font-weight: 500;
}

.contact-links a:hover {
  color: var(--orange);
}

.contact-form-note {
  color: var(--text-light);
  font-size: 0.95rem;
}

.not-robot-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--grey-dark);
  padding: 2.5rem;
  border-radius: 4px;
  color: var(--white);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

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

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-actions input[type="checkbox"] {
  width: auto;
  margin-right: 0.35rem;
}

.btn-send {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.btn-send:hover {
  background: var(--orange-dark);
}

.msg {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.msg.success {
  background: #d4edda;
  color: #155724;
}

.msg.error {
  background: #f8d7da;
  color: #721c24;
}

/* About - comes right after hero */
.about-section {
  background: var(--white);
  padding: 4rem 2rem;
}

.about-intro {
  max-width: 800px;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Social links above survey images */
.about-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.about-social-links a {
  color: var(--grey-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.about-social-links a:hover {
  color: var(--orange);
}

.survey-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .survey-images {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
  }

  .survey-fig:first-child {
    order: 2;
  }

  .survey-fig:last-child {
    order: 1;
  }
}

.survey-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.survey-fig img {
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.survey-fig .image-placeholder {
  background: var(--grey-light);
  min-height: 260px;
  max-width: 460px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.survey-fig figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
  font-style: italic;
  max-width: 460px;
}

/* Footer */
.site-footer {
  background: var(--grey-light);
  padding: 4rem 2rem 2.5rem;
  margin-top: 3rem;
  border-top: 1px solid #e2e8f0;
}

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

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-left {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.65;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo-link:hover {
  text-decoration: none;
}

.footer-logo {
  max-width: 120px;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-left p {
  margin: 0.4rem 0;
}

.footer-left a {
  color: var(--grey-dark);
  font-size: 1.05rem;
}

.footer-right h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--grey-dark);
}

.footer-right p {
  margin: 0.35rem 0;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-follow {
  font-size: 1rem;
  color: var(--text-light);
  margin-right: 0.25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-dark);
}

.footer-social-link:hover {
  color: var(--orange);
  text-decoration: none;
}

.footer-social-icon {
  width: 26px;
  height: 26px;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  color: #fff;
  text-decoration: none;
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* Map */
.map-wrap {
  margin-top: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

/* Footer designer credit */
.footer-designer {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  text-align: right;
  font-size: 0.95rem;
  color: var(--text-light);
}

.footer-designer a {
  color: var(--grey-dark);
  text-decoration: underline;
}

.footer-designer a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .footer-designer {
    text-align: center;
  }
}
