/*
Theme Name: APF Ltd
Theme URI: https://assetpf.co.nz
Author: Asset Project Facilitators Ltd
Author URI: https://assetpf.co.nz
Description: Custom theme for Asset Project Facilitators (APF) Ltd — specialist asset planning, capital programme advisory and project delivery consultancy.
Version: 1.0
License: Private
Tags: custom, business, one-page
*/

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
}

/* ── Colours ── */
:root {
  --navy:   #0B2545;
  --navy2:  #0D3060;
  --gold:   #29ABE2;
  --gold2:  #45C3F5;
  --light:  #E8F7FC;
  --grey:   #6D6E71;
  --white:  #ffffff;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img { height: 48px; width: auto; display: block; background: #fff; border-radius: 8px; padding: 4px 10px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .3px; transition: color .2s; }
.nav-links a:hover { color: var(--gold2); }
.nav-cta { background: var(--gold); color: var(--white); padding: 10px 22px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.nav-cta:hover { background: var(--gold2); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #0a3a6e 100%);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
  padding: 120px 5% 80px; position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(41,171,226,.15); border: 1px solid rgba(41,171,226,.4); color: var(--gold2); padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 28px; letter-spacing: .5px; }
.hero-badge::before { content: '●'; font-size: 8px; }
.hero-content h1 { font-size: clamp(28px, 3.5vw, 52px); color: var(--white); font-weight: 800; line-height: 1.1; margin-bottom: 22px; }
.hero-content h1 em { color: var(--gold2); font-style: normal; }
.hero-content p { color: rgba(255,255,255,.78); font-size: 17px; margin-bottom: 38px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--gold); color: #fff; padding: 14px 32px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, transform .15s; display: inline-block; }
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-outline { border: 2px solid rgba(255,255,255,.4); color: #fff; padding: 13px 30px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .2s, background .2s; display: inline-block; }
.btn-outline:hover { border-color: var(--gold2); background: rgba(41,171,226,.1); }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { color: #fff; }
.hero-stat .num { font-size: 34px; font-weight: 800; color: var(--gold2); line-height: 1; }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px; }
.hero-carousel { position: relative; z-index: 1; }
.hero-carousel-wrap { overflow: hidden; border-radius: 16px; border: 3px solid rgba(41,171,226,.3); box-shadow: 0 32px 80px rgba(0,0,0,.5); aspect-ratio: 4/3; }

/* ── SECTIONS SHARED ── */
section { padding: 96px 5%; }
.section-tag { display: inline-block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 18px; }
.section-sub { color: var(--grey); font-size: 17px; max-width: 620px; margin-bottom: 52px; }
.divider { width: 56px; height: 4px; background: var(--gold); border-radius: 2px; margin: 16px 0 24px; }

/* ── SERVICES ── */
#services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: #fff; border-radius: 12px; padding: 36px 28px; border: 1px solid #e5eaf2; transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(13,36,71,.12); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(41,171,226,.1); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 26px; }
.service-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p  { color: var(--grey); font-size: 15px; line-height: 1.65; }
.service-card ul { color: var(--grey); font-size: 14px; margin-top: 14px; padding-left: 18px; }
.service-card ul li { margin-bottom: 5px; }

/* ── ABOUT ── */
#about { background: #fff; }
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-left .section-sub { margin-bottom: 28px; }
.about-points { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.about-points li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; color: #374151; }
.about-points li::before { content: '✓'; min-width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.about-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-box { background: var(--light); border-radius: 12px; padding: 28px 20px; text-align: center; border: 1px solid #e5eaf2; }
.stat-box .big { font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-box .big span { color: var(--gold); }
.stat-box .label { font-size: 13px; color: var(--grey); margin-top: 6px; }
.stat-box.featured { background: var(--navy); border-color: var(--navy); }
.stat-box.featured .big { color: var(--gold2); }
.stat-box.featured .label { color: rgba(255,255,255,.7); }

/* ── OUR WORK ── */
#ourwork { background: #fff; }
.work-tabs { display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.work-tab { padding: 10px 24px; border-radius: 30px; border: 2px solid var(--grey); background: none; color: var(--grey); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.work-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.work-tab:hover:not(.active) { border-color: var(--gold); color: var(--gold); }
.carousel-outer { position: relative; }
.carousel-track-wrap { overflow: hidden; border-radius: 14px; }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.carousel-slide { min-width: 100%; position: relative; aspect-ratio: 16/9; background: #000; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(11,37,69,.85)); color: #fff; padding: 32px 24px 20px; font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(11,37,69,.75); border: 2px solid rgba(41,171,226,.4); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 10; }
.carousel-btn:hover { background: var(--gold); border-color: var(--gold); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; border: none; cursor: pointer; transition: background .2s, transform .2s; }
.carousel-dot.active { background: var(--gold); transform: scale(1.3); }

/* ── VIDEO ── */
#video { background: var(--light); text-align: center; }
.video-wrap { position: relative; max-width: 860px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(13,36,71,.2); }
.video-wrap iframe { display: block; width: 100%; aspect-ratio: 16/9; border: none; }

/* ── SECTORS ── */
#sectors { background: var(--navy); }
#sectors .section-title { color: #fff; }
#sectors .section-sub  { color: rgba(255,255,255,.65); }
#sectors .section-tag  { color: var(--gold2); }
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sector-pill { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 22px 20px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.9); font-size: 15px; font-weight: 600; transition: background .2s; }
.sector-pill:hover { background: rgba(41,171,226,.15); border-color: rgba(41,171,226,.4); }
.sector-pill .ico { font-size: 24px; }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--light); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testi-card { background: #fff; border-radius: 12px; padding: 32px 28px; border: 1px solid #e5eaf2; display: flex; flex-direction: column; gap: 16px; }
.testi-quote { font-size: 40px; color: var(--gold); line-height: 1; }
.testi-card p { color: #4b5563; font-size: 15px; line-height: 1.75; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.testi-name  { font-weight: 700; font-size: 15px; color: var(--navy); }
.testi-school{ font-size: 13px; color: var(--grey); }
.stars { color: var(--gold); font-size: 14px; margin-bottom: 4px; }

/* ── AFFILIATIONS ── */
#affiliations { background: #fff; padding: 56px 5%; text-align: center; }
#affiliations p { color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 32px; }
.affil-row { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.affil-badge { background: var(--light); border: 1px solid #e5eaf2; border-radius: 10px; padding: 16px 28px; font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: .3px; }

/* ── CONTACT ── */
#contact { background: var(--navy); }
#contact .section-title { color: #fff; }
#contact .section-sub  { color: rgba(255,255,255,.7); }
#contact .section-tag  { color: var(--gold2); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; background: rgba(41,171,226,.15); border: 1px solid rgba(41,171,226,.3); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item h4 { color: rgba(255,255,255,.55); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-item a, .contact-item p { color: #fff; font-size: 15px; text-decoration: none; }
.contact-item a:hover { color: var(--gold2); }
.contact-form-wrap { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.form-group input, .form-group select, .form-group textarea { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #fff; padding: 12px 14px; font-size: 15px; outline: none; transition: border-color .2s; font-family: inherit; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; background: var(--gold); color: #fff; border: none; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s; font-family: inherit; }
.form-submit:hover { background: var(--gold2); transform: translateY(-2px); }
.form-note { color: rgba(255,255,255,.45); font-size: 12px; text-align: center; margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 20px; color: #22c55e; font-size: 16px; font-weight: 600; }
.form-error   { display: none; text-align: center; padding: 10px; color: #f87171; font-size: 14px; }

/* ── FOOTER ── */
footer { background: #07152a; color: rgba(255,255,255,.5); padding: 32px 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--gold2); }
footer .footer-links { display: flex; gap: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-carousel { display: none; }
  .about-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  nav { padding: 0 4%; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .about-right { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
