:root {
  --brand: #4aa3ff;
  --orange: #ff7f32;

  --text: #fff;
  --muted: #ddd;

  --radius: 12px;

  --green-light: #7fd6b4;
  --green-dark: #2d7264;

  --banner-bg: rgba(0,0,0,0.60);
  --card-bg: rgba(255,255,255,0.12);
}

/* ===== Base / Reset ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Smooth scrolling MUST be on html for best browser support */
html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* Links */
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Typography scaling */
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { font-size: clamp(1rem, 2vw, 1.2rem); }

/* Ensure anchor scroll lands below the sticky header */
.section { scroll-margin-top: 90px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header-inner {
  width: min(1100px, 90%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;

  /* Important for mobile dropdown positioning */
  position: relative;
}

/* Brand logo in header */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-dark);
  text-decoration: none;
}

.brand-logo {
  height: 34px;        /* adjust if needed */
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 28px;
  }
}

.primary-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.primary-nav a {
  color: var(--green-light);
  font-weight: 600;
  transition: color 0.3s ease;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--green-dark);
  cursor: pointer;
}

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

  .primary-nav {
    display: none;
    flex-direction: column;
    gap: 0.75rem;

    background: #fff;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 2000;
  }

  .primary-nav.open { display: flex; }
}

/* ===== Sections / Layout ===== */
.section {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
}

.container {
  position: relative;
  width: min(1100px,90%);
  margin: auto;
  z-index: 2;
}

/* ===== HERO ===== */
.hero {
  background: url("assets/hero.png") no-repeat center/cover;
  min-height: 100vh;
  position: relative;
}

/* Mobile-first: center it nicely */
.hero-textbox {
  width: min(520px, 92vw);
  margin: 0 auto;

  background: rgba(255,255,255,0.9);
  color: #000;

  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);

  text-align: center;
}

/* Desktop-only: allow your custom positioning */
@media (min-width: 992px) {
  .hero-textbox {
    position: absolute;
    top: 28%;
    left: 27%;
    margin: 0;

    width: 400px;
    max-width: 400px;

    text-align: left;
    padding: 2rem;
  }
}

/* ===== Collaboration ===== */
.collaboration {
  background: url("assets/collaboration.jpg") no-repeat center/cover;
  min-height: 100vh;
  position: relative;
}

/* ===== Shared Welcome/Collaboration inner styles ===== */
/* Your HTML uses welcome-* classes inside collaboration — so we support both */
.collaboration .welcome-box {
  background: rgba(0,0,0,0.6);
  width: 100%;
  padding: 2.5rem 0;
}

.collaboration .welcome-content {
  text-align: left;
}

.collaboration .welcome-content h2 {
  margin-bottom: 1rem;
}

.collaboration .welcome-lead {
  font-weight: 600;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  margin-bottom: 1.2rem;
}

.collaboration .welcome-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Outline button for contrast */
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: #000;
}

/* ===== ABOUT ===== */
.about {
  background: url("assets/about.png") no-repeat center/cover;
  min-height: 100vh;
  position: relative;
}

/* ===== SERVICES ===== */
.services {
  background: url("assets/services.png") no-repeat center/cover;
  min-height: 100vh;
  position: relative;
}

/* ===== CONTACT ===== */
.contact {
  background: none;
  min-height: auto;
  position: relative;
}

/* ===== Banner-style content boxes ===== */
.about-box,
.services-box,
.collaboration-box,
.contact-box {
  background: var(--banner-bg);
  color: #fff;
  width: 100%;
  text-align: left;
  padding: 2.2rem 0;
}

/* more breathing room on desktop */
@media (min-width: 992px) {
  .about-box,
  .services-box,
  .contact-box {
    padding: 3rem 0;
  }
}

/* Optional: tighten on very small screens */
@media (max-width: 420px) {
  .about-box,
  .services-box,
  .contact-box {
    padding: 1.6rem 0;
  }
}

/* ===== Services cards (responsive) ===== */
.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Very wide screens only: 5 columns */
@media (min-width: 1300px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
}

.card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: var(--radius);
}

/* ===== Contact grid-2 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
}

/* Desktop split layout */
@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
}

/* ===== Contact form ===== */
.card-form {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: left;
}

.card-form label {
  display: block;
  font-weight: 600;
  margin-top: 0.75rem;
}

.card-form input,
.card-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.7rem;

  border-radius: var(--radius);
  border: 1px solid #444;

  background: rgba(0,0,0,0.4);
  color: #fff;
}

.card-form button { margin-top: 0.8rem; }

/* ===== Map ===== */
.map-card{
  position: relative;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
}

.map-iframe{
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* Optional: Mask Google top-left UI */
.map-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 60px;
  background: rgba(0,0,0,0.6);
  z-index: 2;
  pointer-events: none;
}

/* This makes the whole map clickable */
.map-overlay{
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
}

/* Optional button */
.map-open-btn{
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: .55rem .8rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.map-open-btn:hover{
  background: rgba(0,0,0,0.78);
}

/* ===== Buttons ===== */
.btn {
  background: var(--green-light);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-orange { background: var(--orange); }
.btn-orange:hover { filter: brightness(1.1); }

.btn-sm { font-size: 0.9rem; }
.btn-lg { font-size: 1rem; padding: 0.8rem 1.2rem; }
.btn-full { width: 100%; }

/* ===== Footer ===== */
.site-footer {
  background: #000;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; }
}

/* Social media icons */
.social-links {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem; /* ← THIS creates space before the form */
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 1.1rem;

  transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}