/* ============================================================
   GREENWOOD BUSINESS PARK — style.css
   Brand: Archivo font, Navy #250F4A, Red #F30029, White #FFFFFF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

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

:root {
  --navy:        #250F4A;
  --navy-80:     rgba(37, 15, 74, 0.80);
  --navy-60:     rgba(37, 15, 74, 0.60);
  --navy-20:     rgba(37, 15, 74, 0.20);
  --navy-10:     rgba(37, 15, 74, 0.10);
  --navy-06:     rgba(37, 15, 74, 0.06);
  --red:         #F30029;
  --red-hover:   #d4001f;
  --white:       #FFFFFF;
  --off-white:   #F8F7FA;
  --text:        #1a1a2e;
  --border:      rgba(37, 15, 74, 0.15);
  --section-pad: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-weight: 700; color: var(--navy); line-height: 1.15; }
h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 32px; }

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-wrapper {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border);
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 0.5px solid var(--border);
}

.nav-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-ouson-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-greenwood-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.nav-phone svg { color: var(--navy); flex-shrink: 0; }

.nav-email-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.2s;
}

.nav-email-btn:hover { background: var(--navy-80); }
.nav-email-btn svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 14px 48px;
  border-bottom: 3px solid var(--red);
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Archivo', sans-serif;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-link:hover { color: var(--red); }
.nav-link:hover::after { transform: scaleX(1); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 0.5px solid var(--border);
  padding: 16px 24px;
  gap: 0;
}

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

.mobile-nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  border-bottom: 0.5px solid var(--border);
  padding: 14px 0;
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
  text-align: left;
  transition: color 0.2s;
}

.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--red); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: #1a1a2e;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  filter: brightness(0.65);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 80px 60px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  max-width: 580px;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.hero-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Archivo', sans-serif;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
}

.hero-btn-outline {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

.hero-btn-outline:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--white);
}

.hero-btn-solid {
  background: var(--red);
  color: var(--white);
}

.hero-btn-solid:hover { background: var(--red-hover); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.about-main h2 { margin-bottom: 0; }

.about-address {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 16px;
}

.about-divider {
  height: 0.5px;
  background: var(--border);
  margin: 20px 0;
}

.about-meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 48px;
  margin-bottom: 4px;
  justify-content: start;
}

.about-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: visible;
}

.about-meta {
  overflow: visible;
}

.about-meta-item svg { color: var(--red); flex-shrink: 0; width: 16px; height: 16px; }
.about-meta-item .meta-label { color: var(--navy-60); }
.about-meta-item .meta-value { color: var(--red); font-weight: 600; }

.about-description {
  font-size: 15px;
  line-height: 1.75;
  color: var(--navy-80);
  margin: 4px 0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 8px;
}

.about-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.about-tag svg { color: var(--red); width: 16px; height: 16px; }

/* Enquiry card */
.enquiry-card {
  border: 0.5px solid var(--border);
  border-radius: 2px;
  padding: 28px 24px;
}

.enquiry-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 20px;
}

.enquiry-field { margin-bottom: 16px; }

.enquiry-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  display: block;
}

.enquiry-field-value {
  font-size: 14px;
  color: var(--navy-60);
}

.enquiry-field-value a {
  color: var(--navy-60);
  transition: color 0.2s;
}

.enquiry-field-value a:hover { color: var(--red); }

.enquiry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Archivo', sans-serif;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
  text-decoration: none;
}

.enquiry-btn:hover { background: var(--navy-80); }

/* ============================================================
   PARK FEATURES
   ============================================================ */
#features {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(243, 0, 41, 0.04);
}

.feature-icon svg { width: 24px; height: 24px; color: var(--red); }

.feature-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 14px;
  color: var(--navy-60);
  line-height: 1.6;
}

/* ============================================================
   LOCATION
   ============================================================ */
#location {
  padding: var(--section-pad) 0;
  background: var(--white);
}

#location h2 { margin-bottom: 24px; }

/* Location map card overrides — scoped to not conflict */
#location .location-card {
  border-radius: 2px;
}

/* ============================================================
   AVAILABLE SPACES
   ============================================================ */
#spaces {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.spaces-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.spaces-table thead {
  border-bottom: 0.5px solid var(--border);
}

.spaces-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-60);
  padding: 0 16px 14px 0;
  text-align: left;
}

.spaces-table tbody tr {
  border-bottom: 0.5px solid var(--border);
  transition: background 0.15s;
}

.spaces-table tbody tr:hover { background: var(--navy-06); }

.spaces-table td {
  padding: 20px 16px 20px 0;
  font-size: 15px;
  vertical-align: middle;
}

.space-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
}

.space-size {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}

.space-type { color: var(--navy-60); }

.status-badge {
  display: inline-block;
  border: 1px solid var(--navy-20);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

.btn-view-plan {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Archivo', sans-serif;
  padding: 9px 18px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-view-plan:hover { background: var(--navy-80); }

/* Plan image overlay */
.plan-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(37,15,74,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.plan-overlay.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.plan-overlay-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.plan-overlay-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.plan-overlay-close {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.plan-overlay-close:hover { background: var(--red); }

/* ============================================================
   BOOK AN INSPECTION
   ============================================================ */
#inspection {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.inspection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.listing-card {
  border: 0.5px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
}

.listing-card:hover {
  border-color: var(--navy-20);
  box-shadow: 0 4px 20px rgba(37,15,74,0.1);
}

.listing-logo {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--white);
}

.listing-logo img {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
  margin: 0 auto;
}

/* Fallback logo text for when images not available */
.listing-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
}

.listing-body {
  border-top: 0.5px solid var(--border);
  padding: 20px 24px;
}

.listing-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.listing-body .visit-link {
  font-size: 14px;
  color: var(--navy-60);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.listing-card:hover .visit-link { color: var(--red); }

/* ============================================================
   GALLERY
   ============================================================ */
#gallery {
  padding: var(--section-pad) 0;
  background: var(--white);
}

/* ============================================================
   GALLERY IMAGES — EASY TO EDIT
   Replace the background-image URLs below to change photos.
   Each .gallery-img-N corresponds to one image slot.
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(37,15,74,0);
  transition: background 0.2s;
}

.gallery-item:hover::after { background: rgba(37,15,74,0.12); }

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-section h3 {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  display: block;
  transition: color 0.2s;
}

.footer-section button {
  display: block !important;
}

.footer-section a:hover { color: var(--white); }

.footer-divider {
  height: 0.5px;
  background: rgba(255,255,255,0.15);
  margin: 0 48px;
}

.footer-bottom {
  padding: 24px 48px 32px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 800px;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav-top { padding: 16px 32px; }
  .nav-links { gap: 32px; padding: 13px 32px; }

  .about-grid { grid-template-columns: 1fr; }
  .enquiry-card { max-width: 480px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-divider, .footer-bottom { padding-left: 32px; padding-right: 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  .container { padding: 0 20px; }

  /* Nav */
  .nav-top { padding: 14px 20px; }
  .nav-phone { display: none; }
  .nav-email-btn span { display: none; }
  .nav-email-btn { padding: 10px 12px; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }

  /* Hero */
  .hero { height: 480px; }
  .hero-content { padding: 0 24px 48px; }
  .hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .hero-buttons { flex-wrap: wrap; gap: 8px; }
  .hero-btn { font-size: 13px; padding: 10px 16px; }

  /* About */
  .about-meta { grid-template-columns: 1fr; }
  .about-tags { gap: 14px 24px; }
  .enquiry-card { max-width: 100%; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Spaces table — make it scrollable */
  .spaces-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .spaces-table { min-width: 600px; }

  /* Inspection */
  .inspection-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-item img { height: 200px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-divider { margin: 0 20px; }
  .footer-bottom { padding: 20px 20px 28px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero { height: 420px; }
  .hero-content { padding: 0 20px 40px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px; }
}