/*
Theme Name: Hi Floor Plan
Theme URI: https://hifloorplan.co.za
Author: Hi Floor Plan
Author URI: https://hifloorplan.co.za
Description: Professional billboard flighting and maintenance theme for Hi Floor Plan — South Africa's specialist OOH infrastructure partner.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hifloorplan
Tags: one-page, custom-logo, custom-menu, featured-images, full-width-template
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: #3b2410;
  background: #f9f9f9;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== COLOR VARIABLES ===== */
:root {
  --brown: #5D3A1A;
  --brown-dark: #2e1c0a;
  --brown-light: #7a5a3a;
  --ochre: #E8A641;
  --ochre-dark: #c4882e;
  --ochre-light: #f0be6a;
  --charcoal: #1f1610;
  --cream: #faf7f2;
  --white: #ffffff;
  --light-gray: #f9f9f9;
  --border: #e8e2da;
  --muted: #8a7a6a;
}

/* ===== UTILITIES ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.section-label {
  color: var(--ochre);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 1rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ochre);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary:hover { background: var(--ochre-dark); box-shadow: 0 10px 30px rgba(232,166,65,0.25); }
.accent-bar { width: 4rem; height: 4px; background: var(--ochre); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.navbar-brand img { height: 40px; width: 40px; border-radius: 6px; object-fit: contain; }
.navbar-brand span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--brown); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--brown-light); transition: color 0.3s;
}
.nav-links a:hover { color: var(--ochre); }
.nav-cta {
  background: var(--ochre); color: var(--white) !important;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--ochre-dark); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative;
  flex-direction: column; justify-content: space-between;
}
.mobile-menu-toggle span {
  display: block; width: 100%; height: 3px;
  background: var(--brown); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block; padding: 0.75rem 0;
  font-size: 0.875rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--brown-light);
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--ochre); }
.mobile-menu .nav-cta {
  display: block; text-align: center;
  margin-top: 1rem; border-bottom: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: left;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(31,22,16,0.85), rgba(31,22,16,0.6), rgba(31,22,16,0.4));
}
.hero-content { position: relative; z-index: 2; max-width: 48rem; }
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero p {
  color: rgba(250,247,242,0.7);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about { padding: 7rem 0; background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-img-wrapper { position: relative; }
.about-img-wrapper img {
  width: 100%; height: 500px; object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.about-deco-1 {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 8rem; height: 8rem;
  background: rgba(232,166,65,0.1); border-radius: 0.5rem; z-index: -1;
}
.about-deco-2 {
  position: absolute; top: -1.5rem; left: -1.5rem;
  width: 6rem; height: 6rem;
  border: 2px solid rgba(232,166,65,0.3); border-radius: 0.5rem; z-index: -1;
}
.about p { color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; font-size: 1.1rem; }
.stats-row { display: flex; gap: 2rem; margin-top: 2rem; }
.stat-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.875rem; font-weight: 800; color: var(--ochre); }
.stat-label { color: var(--muted); font-size: 0.875rem; margin-top: 0.25rem; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-wrapper img { height: 300px; }
}

/* ===== SERVICES ===== */
.services { padding: 7rem 0; background: var(--light-gray); }
.services-header { text-align: center; max-width: 40rem; margin: 0 auto 5rem; }
.services-header p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 2.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(232,166,65,0.08); }
.service-icon {
  width: 3.5rem; height: 3.5rem;
  background: rgba(232,166,65,0.1); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.5rem; color: var(--ochre);
}
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--muted); line-height: 1.7; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== SHOWCASE ===== */
.showcase { padding: 7rem 0; background: var(--brown); }
.showcase-header { text-align: center; max-width: 40rem; margin: 0 auto 4rem; }
.showcase-header .section-title { color: var(--white); }
.showcase-header p { color: rgba(255,255,255,0.6); font-size: 1.1rem; margin-top: 1rem; }
.masonry { columns: 2; gap: 1.25rem; }
.masonry-item {
  break-inside: avoid; margin-bottom: 1.25rem;
  border-radius: 0.5rem; overflow: hidden;
  position: relative; cursor: pointer;
}
.masonry-item img { width: 100%; object-fit: cover; transition: transform 0.7s; }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,22,16,0.8), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.masonry-item:hover .overlay { opacity: 1; }
.masonry-item .caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem;
  transform: translateY(1rem); opacity: 0;
  transition: all 0.3s;
}
.masonry-item:hover .caption { transform: translateY(0); opacity: 1; }
.caption-cat { color: var(--ochre); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.caption-title { color: var(--cream); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.125rem; font-weight: 700; margin-top: 0.25rem; }
.masonry-item.tall img { height: 420px; }
.masonry-item.short img { height: 280px; }
@media (max-width: 768px) {
  .masonry { columns: 1; }
  .masonry-item.tall img, .masonry-item.short img { height: 280px; }
}

/* ===== PARALLAX DIVIDER ===== */
.parallax-divider {
  position: relative; height: 50vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
.parallax-divider::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(93,58,26,0.8);
}
.parallax-divider .content {
  position: relative; z-index: 2;
  text-align: center; max-width: 48rem; padding: 0 1.5rem;
}
.parallax-divider .accent-bar { margin: 0 auto 1.5rem; }
.parallax-divider p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; color: var(--white); line-height: 1.4;
}
.parallax-divider .highlight {
  background: linear-gradient(135deg, var(--ochre), var(--ochre-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== TEAM ===== */
.team { padding: 7rem 0; background: var(--white); }
.team-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.team-features { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.team-feature { display: flex; gap: 1rem; align-items: flex-start; }
.team-feature-icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  background: rgba(232,166,65,0.1); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--ochre); font-size: 1rem;
}
.team-feature h4 { font-weight: 700; margin-bottom: 0.125rem; }
.team-feature p { color: var(--muted); font-size: 0.875rem; }
.team-img img {
  width: 100%; height: 500px; object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-img img { height: 300px; }
}

/* ===== WHY CHOOSE US ===== */
.why { padding: 7rem 0; background: var(--light-gray); }
.why-header { text-align: center; max-width: 40rem; margin: 0 auto 5rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.why-card { text-align: center; }
.why-icon {
  width: 4rem; height: 4rem; margin: 0 auto 1.5rem;
  background: rgba(232,166,65,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ochre); font-size: 1.5rem;
  transition: background 0.3s;
}
.why-card:hover .why-icon { background: rgba(232,166,65,0.2); }
.why-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.why-card p { color: var(--muted); line-height: 1.7; max-width: 22rem; margin: 0 auto; }
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }

/* ===== CONTACT ===== */
.contact { padding: 7rem 0; background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  background: rgba(232,166,65,0.1); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--ochre); font-size: 1rem;
}
.contact-form {
  background: var(--light-gray); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 0.5rem; padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.875rem;
  color: var(--brown); outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(232,166,65,0.15);
}
.form-group textarea { resize: none; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b5a898; }
.form-submit { width: 100%; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer {
  background: var(--brown); padding: 3.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { height: 32px; width: 32px; border-radius: 4px; object-fit: contain; }
.footer-brand span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-links a:hover { color: var(--ochre); }
.footer-copy { font-size: 0.875rem; color: rgba(255,255,255,0.3); }
@media (max-width: 768px) {
  .footer .container { flex-direction: column; text-align: center; }
}

/* ===== SVG ICONS ===== */
.icon-svg { width: 1.5em; height: 1.5em; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ===== WORDPRESS SPECIFIC ===== */
.wp-block-group { margin: 0; padding: 0; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.alignwide { max-width: 1400px; margin-left: auto; margin-right: auto; }

/* WordPress admin bar fix */
body.admin-bar .navbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .navbar { top: 46px; }
}
