/* =============================================
   BASE CG — Shared Styles
   Primary: #7EBEC5  |  Dark: #1a1a1a  |  Font: Roboto
   ============================================= */

/* ---------- Custom Properties ---------- */
:root {
  --teal:        #7EBEC5;
  --teal-hover:  #5daab2;
  --dark:        #1a1a1a;
  --dark-deep:   #000000;
  --text-dark:   #333333;
  --text-body:   #555555;
  --text-light:  #ffffff;
  --font:        'Roboto', Helvetica, Arial, Lucida, sans-serif;
  --max-width:   1200px;
  --nav-height:  80px;
  --transition:  0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 80px 0; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

/* Transparent state — dark text over bright hero sky */
.site-nav.transparent {
  background: transparent;
}
.site-nav.transparent .nav-links a {
  color: var(--dark);
}
.site-nav.transparent .nav-links a::after {
  background: var(--dark);
}
.site-nav.transparent .nav-links a:hover {
  color: var(--teal);
}
.site-nav.transparent .nav-links a.active {
  color: var(--teal);
}

/* Opaque state — white text on dark background */
.site-nav.opaque {
  background: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.site-nav.opaque .nav-links a {
  color: var(--text-light);
}
.site-nav.opaque .nav-links a:hover {
  color: var(--teal);
}
.site-nav.opaque .nav-links a.active {
  color: var(--teal);
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  transition: transform var(--transition), opacity var(--transition);
}
.site-nav.opaque .nav-toggle span { background: var(--text-light); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO / FULLWIDTH HEADER
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Gradient: light at top (dark nav text readable over sky),
   darker at bottom (white hero text readable over landscape) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(43,135,218,0.25) 0%,
    rgba(22,107,60,0.08) 45%,
    rgba(0,0,0,0.52) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.hero-content h1 {
  color: var(--text-light);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  will-change: transform;
}
.hero-scroll svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* =============================================
   BUTTONS
   Solid dark (#1a1a1a) default; hover → outlined
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--dark);
  color: var(--text-light);
  background: var(--dark);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), letter-spacing var(--transition);
}
.btn:hover {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
  letter-spacing: 0.2em;
}

/* White outlined button — for dark/image sections */
.btn-outline-white {
  background: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-light);
  border-color: var(--text-light);
  letter-spacing: 0.2em;
}

/* =============================================
   SECTION DIVIDER
   ============================================= */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--teal);
  margin: 16px 0 32px;
}
.section-divider.center { margin-left: auto; margin-right: auto; }

/* =============================================
   HOMEPAGE — ABOUT SECTION  (plain white)
   ============================================= */
.about-section {
  background: #ffffff;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.about-text h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.about-text p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* =============================================
   HOMEPAGE — SERVICES PREVIEW
   (land-surveying background, subtle)
   ============================================= */
.services-preview {
  position: relative;
  background-image: url('/assets/images/section-services.jpg');
  background-size: cover;
  background-position: center;
}
.services-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.93);
}
.services-preview-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.services-preview h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.services-list {
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  text-align: left;
}
.services-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #555;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #e4e8e5;
}
.services-list li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* =============================================
   HOMEPAGE — BRAND SECTION
   Background image with colour blend overlay
   ============================================= */
.brand-section {
  position: relative;
  text-align: center;
  padding: 100px 24px;
  background-image: url('/assets/images/professionals-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.37);
  background-blend-mode: color;
}
.brand-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 25, 0.55);
}
.brand-section > * { position: relative; z-index: 1; }
.brand-section img.brand-logo {
  height: 87px;
  width: auto;
  margin: 0 auto 36px;
  /* Show logo in white on dark bg */
  filter: brightness(0) invert(1);
}
.brand-section h2 {
  color: var(--text-light);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.brand-section .section-divider {
  margin: 16px auto 32px;
  background: var(--teal);
}
.brand-section p {
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* =============================================
   SERVICES PAGE — EXPERTISE GRID
   ============================================= */
.expertise-section { background: #f7f9f8; }
.expertise-section h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.blurb {
  background: #fff;
  padding: 36px 28px;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}
.blurb:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.blurb-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blurb-icon i { font-size: 2.2rem; color: var(--teal); }
.blurb-icon img { width: 60px; height: 60px; object-fit: contain; }
.blurb h4 {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.blurb p { font-size: 0.88rem; color: #666; line-height: 1.75; }

/* =============================================
   PROFESSIONAL SECTION  (dark + bg image)
   Used on services and contact pages
   ============================================= */
.professional-section {
  position: relative;
  padding: 80px 24px;
  background-image: url('/assets/images/professionals-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.37);
  background-blend-mode: color;
}
.professional-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 25, 0.55);
}
.professional-section > .professional-inner { position: relative; z-index: 1; }
.professional-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.professional-section h2 {
  color: var(--text-light);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 1;
}
.professional-section .section-divider {
  background: var(--teal);
  margin: 14px 0 0;
}
.professional-right { flex: 1; text-align: right; }
.professional-right p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Services page uses a different background image */
.professional-section.services-bg {
  background-image: url('/assets/images/professionals-bg-services.jpg');
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { background: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info p {
  color: var(--text-body);
  margin-bottom: 32px;
  line-height: 1.8;
  font-size: 0.95rem;
}
.contact-email-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 2px solid #e4e8e5;
  margin-bottom: 24px;
  transition: border-color var(--transition);
}
.contact-email-block:hover { border-color: var(--teal); }
.contact-email-block i { font-size: 1.5rem; color: var(--teal); min-width: 32px; }
.contact-email-block a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.contact-email-block a:hover { color: var(--teal); }

/* Contact Form */
.contact-form { background: #f7f9f8; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dde3de;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-body);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group .required-star { color: var(--teal); }
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 0.88rem;
  display: none;
}
.form-status.success { background: #e6f4ef; color: #1a6b42; display: block; }
.form-status.error   { background: #fde8e8; color: #c0392b; display: block; }

/* =============================================
   FOOTER  — White background
   ============================================= */
.site-footer {
  background: #ffffff;
  padding: 56px 0 0;
  border-top: 1px solid #e8ece9;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col h3 {
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 14px;
  position: relative;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 2px;
  background: var(--teal);
}
.footer-col p {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 6px;
}
.footer-col a {
  color: #666;
  font-size: 0.88rem;
  transition: color var(--transition);
  display: block;
  margin-bottom: 6px;
}
.footer-col a:hover { color: var(--teal); }

/* Copyright bar — pure black */
.footer-bottom {
  background: #000000;
  padding: 14px 24px;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.footer-bottom a { color: rgba(255,255,255,0.75); font-size: 0.78rem; transition: opacity var(--transition); }
.footer-bottom a:hover { opacity: 0.7; }

/* =============================================
   ANIMATIONS (Intersection Observer driven)
   ============================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-left"]  { transform: translateX(-28px); }
[data-animate="fade-right"] { transform: translateX(28px); }
[data-animate="fade-up"]    { transform: translateY(28px); }
[data-animate="zoom"]       { transform: scale(0.95); }
[data-animate].visible      { opacity: 1; transform: none; }

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="350"] { transition-delay: 0.35s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="450"] { transition-delay: 0.45s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="700"] { transition-delay: 0.7s; }
[data-delay="800"] { transition-delay: 0.8s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-inner             { grid-template-columns: 1fr; gap: 32px; }
  .about-image             { display: none; }
  .expertise-grid          { grid-template-columns: repeat(2, 1fr); }
  .contact-inner           { grid-template-columns: 1fr; }
  .footer-inner            { grid-template-columns: 1fr; gap: 32px; }
  .professional-inner      { flex-direction: column; text-align: center; }
  .professional-right      { text-align: center; }
  .section-divider         { margin-left: auto; margin-right: auto; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--dark);
    padding: 24px;
    gap: 20px;
    z-index: 999;
  }
  .nav-links.open a { color: var(--text-light) !important; }
  .nav-toggle        { display: flex; }
  .expertise-grid    { grid-template-columns: 1fr; }
  .services-list     { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .contact-form      { padding: 24px; }
  .hero-content h1   { font-size: 1.8rem; }
}
