/* shared.css — Perkins Property Limited */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --green-dark: #1a5c1a;
  --green-mid: #2d8a2d;
  --green-light: #4db84d;
  --green-pale: #d4edda;
  --white: #ffffff;
  --off-white: #f4f7f4;
  --charcoal: #1c1c1c;
  --text-gray: #444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; color: var(--charcoal); background: var(--white); }

/* ══ NAV ══ */
nav {
  background: #141414;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--green-light);
}

.nav-brand {
  display: flex;
  align-items: center;
  background: var(--green-dark);
  padding: 0 48px 0 16px;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  flex-shrink: 0;
}

.nav-brand-logo {
  height: 80px;
  width: auto;
  display: block;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
  padding: 0 16px;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 20px;
  height: 72px;
  line-height: 72px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 3px;
  background: var(--green-light);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--white); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }

.chevron {
  font-size: 0.55rem;
  transition: transform 0.2s;
  color: var(--green-light);
  margin-left: 2px;
}

.nav-links > li:hover > a .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  min-width: 220px;
  border-top: 3px solid var(--green-light);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 300;
  list-style: none;
  padding: 8px 0;
}

.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 12px 22px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
  border-left: 3px solid transparent;
}

.nav-dropdown li a:hover {
  color: var(--white);
  background: rgba(77,184,77,0.08);
  border-left-color: var(--green-light);
  padding-left: 28px;
}

.nav-right { display: flex; align-items: stretch; flex-shrink: 0; }

.nav-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.nav-area-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.nav-area-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

.nav-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  padding: 0 28px;
  text-decoration: none;
  transition: background 0.2s;
  min-width: 165px;
}

.nav-call:hover { background: var(--green-mid); }

.nav-call-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2px;
}

.nav-call-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ══ PAGE HERO ══ */
.page-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(0.5);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,10,0.92) 0%, rgba(10,30,10,0.45) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 52px;
}

.breadcrumb {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--green-light);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
}

.page-hero h1 em { font-style: normal; color: var(--green-light); }

.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  max-width: 540px;
  line-height: 1.6;
}

/* ══ SECTION HELPERS ══ */
.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-mid);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.section-lead { font-size: 1rem; color: var(--text-gray); line-height: 1.72; max-width: 580px; }

/* ══ BUTTONS ══ */
.btn-primary {
  background: var(--green-light);
  color: var(--white);
  padding: 15px 34px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}

.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); }

.btn-outline-dark {
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
  padding: 13px 34px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-outline-dark:hover {
  border-color: var(--green-light);
  background: var(--green-light);
  color: var(--white);
}

/* ══ CTA BANNER ══ */
.cta-banner {
  background: var(--green-dark);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.cta-banner h2 em { font-style: normal; color: var(--green-light); }

.cta-phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--white);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s;
}

.cta-phone:hover { color: var(--green-light); }
.cta-sub { font-size: 0.72rem; color: rgba(255,255,255,0.45); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }

/* ══ FOOTER ══ */
footer {
  background: #111;
  color: rgba(255,255,255,0.4);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 3px solid var(--green-dark);
}

.footer-logo { text-decoration: none; display: inline-block; }
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-logo:hover .footer-logo-img { opacity: 1; }
footer > p { font-size: 0.76rem; }

.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }

.footer-links a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green-light); }


/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Perkins Property Limited
   Breakpoints: 768px (tablet), 480px (mobile)
   ══════════════════════════════════════════════════════ */

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 72px;
  padding: 0 14px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: #141414;
  z-index: 199;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.nav-mobile-menu.open { display: block; }

.nav-mobile-menu ul {
  list-style: none;
  padding: 12px 0 24px;
}

.nav-mobile-menu ul li a {
  display: block;
  padding: 14px 28px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
}

.nav-mobile-menu ul li a:hover,
.nav-mobile-menu ul li a.active {
  color: var(--white);
  border-left-color: var(--green-light);
  padding-left: 34px;
}

.nav-mobile-menu .mobile-sub {
  list-style: none;
  background: rgba(255,255,255,0.04);
  padding: 0;
}

.nav-mobile-menu .mobile-sub li a {
  padding: 11px 28px 11px 44px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  border-left: none;
}

.nav-mobile-menu .mobile-sub li a:hover { color: var(--green-light); padding-left: 50px; border-left: none; }

.nav-mobile-cta {
  margin: 0 20px 8px;
  display: block;
  background: var(--green-light);
  color: var(--white) !important;
  text-align: center;
  padding: 15px 20px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  text-decoration: none;
  border-left: none !important;
  transition: background 0.2s !important;
}

.nav-mobile-cta:hover { background: var(--green-mid) !important; padding-left: 20px !important; }

@media (max-width: 768px) {

  /* ── Nav ── */
  .nav-links,
  .nav-area { display: none; }

  .nav-hamburger { display: flex; }

  nav {
    justify-content: space-between;
    padding-right: 0;
  }

  .nav-brand {
    padding: 0 36px 0 16px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  }

  .nav-brand-logo { height: 70px; }

  .nav-call { display: none; }
  .nav-call-label { display: none; }
  .nav-call-num { font-size: 1.1rem; }

  /* ── Page hero ── */
  .page-hero { height: 260px; }
  .page-hero-content { padding: 0 24px 36px; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .page-hero-sub { font-size: 0.88rem; }

  /* ── CTA banner ── */
  .cta-banner {
    padding: 40px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cta-phone { font-size: 2.2rem; }

  /* ── Footer ── */
  footer {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links { gap: 16px; }

  /* ── Service layout (sidebar stacks below) ── */
  .service-layout {
    grid-template-columns: 1fr !important;
  }

  .service-sidebar {
    position: static !important;
    height: auto !important;
    border-left: none !important;
    border-top: 3px solid var(--green-light);
    padding: 36px 24px !important;
  }

  .service-main { padding: 40px 24px !important; }
  .service-hero-img { height: 220px !important; margin-bottom: 32px !important; }

  .faq-section { padding: 40px 24px !important; }

  /* ── Contact layout ── */
  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  .contact-sidebar { padding: 40px 24px !important; }
  .contact-form-wrap { padding: 40px 24px !important; }
  .contact-form { padding: 28px 20px !important; }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* ── About page ── */
  .about-intro {
    grid-template-columns: 1fr !important;
    padding: 48px 24px !important;
    gap: 40px !important;
  }

  .about-visual {
    height: 280px !important;
  }

  .about-badge { left: 0 !important; }

  .values-section {
    padding: 48px 24px !important;
  }

  .values-grid {
    grid-template-columns: 1fr !important;
  }

  .team-section {
    padding: 48px 24px !important;
  }

  /* ── Why section (index.html) ── */
  .why-section {
    grid-template-columns: 1fr !important;
    padding: 48px 24px !important;
    gap: 40px !important;
  }

  .why-visual { height: 260px !important; }
  .why-badge { left: 0 !important; }
}

@media (max-width: 480px) {

  /* ── Nav ── */
  .nav-call-num { font-size: 0.95rem; }

  /* ── Hero (index) ── */
  .hero { height: 92vh; min-height: 480px; }

  .hero-content {
    padding: 0 20px 60px !important;
  }

  .hero h1 { font-size: 3.2rem !important; line-height: 0.95; }
  .hero p { font-size: 0.95rem; }

  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions a { text-align: center; }

  /* ── Stats strip ── */
  .stat-strip { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; max-width: none; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  /* ── Services grid (index) ── */
  .services-section { padding: 56px 20px !important; }

  .services-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }

  .service-card-img-wrap { height: 180px !important; }

  /* ── About visual ── */
  .about-visual,
  .why-visual { height: 220px !important; }

  /* ── Form ── */
  .contact-form { padding: 20px 16px !important; }

  .form-submit { font-size: 0.8rem; padding: 16px 12px; }

  /* ── CTA banner ── */
  .cta-banner { padding: 32px 20px; }
  .cta-phone { font-size: 1.8rem; }

  /* ── Footer ── */
  footer { padding: 24px 20px; }
  .footer-links { gap: 12px; }
}

.footer-dev {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

.footer-dev a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-dev a:hover {
  color: var(--green-light);
}
