/* ===================================================
   Premier Property & Facilities Group — Stylesheet
   =================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --navy:        #0f2b4c;
  --navy-light:  #1a3d66;
  --navy-dark:   #091e36;
  --gold:        #d4952a;
  --gold-light:  #e6ad4a;
  --gold-dark:   #b37d1f;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --gray-50:     #f8f9fb;
  --gray-100:    #e8edf3;
  --gray-200:    #c4d0df;
  --gray-400:    #8a9bb5;
  --gray-600:    #5a6a82;
  --gray-800:    #2d3a4a;
  --green:       #2a9d5c;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(15,43,76,.08);
  --shadow-md:   0 4px 16px rgba(15,43,76,.1);
  --shadow-lg:   0 12px 40px rgba(15,43,76,.12);
  --transition:  .25s ease;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 48px;
  text-align: center;
}
.section-title--left { text-align: left; }

.req { color: #c0392b; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  font-size: 1rem;
}
.btn--primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,149,42,.35);
}
.btn--lg { padding: 16px 40px; font-size: 1.05rem; }
.btn--full { width: 100%; }
.btn--nav {
  background: var(--gold);
  color: var(--white);
  padding: 10px 24px;
  font-size: .9rem;
  border-radius: var(--radius);
}
.btn--nav:hover { background: var(--gold-dark); }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.nav--scrolled { box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: .75rem;
  border-radius: 8px;
  letter-spacing: .03em;
  flex-shrink: 0;
}
.nav__logo-text {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a:not(.btn) {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--navy); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ========== HERO ========== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(170deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212,149,42,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(212,149,42,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 780px;
}
.hero__rotator {
  position: relative;
  margin-bottom: 24px;
}
.hero__title {
  position: relative;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  min-height: 3.6em;
}
.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hero__slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero__pips {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.hero__pip {
  width: 48px;
  height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  border: none;
}
.hero__pip span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: none;
}
.hero__pip.active span {
  animation: pipFill 5s linear forwards;
}
@keyframes pipFill {
  from { width: 0; }
  to   { width: 100%; }
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.7;
}

/* ========== SERVICES ========== */
.services {
  padding: 100px 0;
  background: var(--off-white);
}
.service-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}
.service-card--reverse { grid-template-columns: 300px 1fr; }
.service-card--reverse .service-card__visual { order: -1; }
.service-card__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  background: rgba(212,149,42,.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.service-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.service-card__desc {
  color: var(--gray-600);
  margin-bottom: 28px;
  line-height: 1.7;
}
.service-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__visual svg { width: 100%; max-width: 280px; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.step__text {
  color: var(--gray-600);
  line-height: 1.5;
  padding-top: 4px;
}

/* Check list */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-600);
}
.check-list li::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ========== WHY PPFG ========== */
.why {
  padding: 100px 0;
  background: var(--white);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why__card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.why__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  margin-bottom: 20px;
}
.why__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.why__card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ========== WHO WE SERVE ========== */
.serve {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}
.serve .section-title { color: var(--white); }
.serve__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.serve__card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: background var(--transition), transform var(--transition);
}
.serve__card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-3px);
}
.serve__card svg {
  color: var(--gold);
  margin-bottom: 18px;
}
.serve__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.serve__card p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ========== CONTACT ========== */
.contact {
  padding: 100px 0;
  background: var(--off-white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact__desc {
  color: var(--gray-600);
  margin-bottom: 28px;
  line-height: 1.7;
}
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  transition: color var(--transition);
}
.contact__phone svg { color: var(--gold); flex-shrink: 0; }
.contact__phone:hover { color: var(--gold); }

.contact__form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--gray-50);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,149,42,.15);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6a82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
  text-align: center;
  font-size: .85rem;
  color: var(--green);
  margin-top: 12px;
  min-height: 20px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand .nav__logo-icon {
  margin-bottom: 12px;
}
.footer__brand p {
  font-size: .95rem;
  margin-bottom: 4px;
}
.footer__brand .footer__area {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.footer h4 {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a {
  font-size: .9rem;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold); }
.footer__contact p {
  font-size: .9rem;
  margin-bottom: 6px;
}
.footer__contact a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .why__grid,
  .serve__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card,
  .service-card--reverse {
    grid-template-columns: 1fr;
  }
  .service-card--reverse .service-card__visual { order: 0; }
  .service-card__visual { display: none; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--gray-100);
  }
  .nav__links.open { display: flex; }
  .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 130px 0 80px; }
  .hero__title { font-size: clamp(1.6rem, 6vw, 2.4rem); min-height: 4.8em; }

  .services, .why, .serve, .contact { padding: 72px 0; }
  .section-title { margin-bottom: 36px; }

  .service-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 20px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .why__grid,
  .serve__grid { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
