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

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --grey-light: #f5f5f5;
  --grey-mid: #e0e0e0;
  --grey-text: #666666;
  --accent: #2c2c2c;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--black);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.5; }

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

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

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO BANNER ===== */
.hero {
  margin-top: 70px;
  width: 100%;
  height: 75vh;
  min-height: 400px;
  background: var(--grey-light);
  display: flex;
  align-items: flex-end;
  padding: 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== PARALLAX HERO BANNER ===== */
.hero-parallax {
  margin-top: 70px;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.hero-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
}

.hero-parallax img {
  position: absolute;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* ===== HERO NO IMAGE (fallback) ===== */
.hero-plain {
  margin-top: 70px;
  background: var(--black);
  padding: 80px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.hero-plain h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}

/* ===== SECTIONS ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 40px;
}

.section-wide {
  padding: 80px 40px;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 60px;
}

.section h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--grey-text);
}

.section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  max-width: 640px;
}

.section p strong { color: var(--black); }

/* ===== PHILOSOPHY GRID ===== */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 120px;
  align-items: start;
}

.philosophy-intro p {
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 520px;
}

/* ===== THREE COLUMNS ===== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.col-item h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--grey-text);
}

.col-item p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  max-width: none;
}

/* ===== EXPLORE / CTA LINKS ===== */
.explore {
  background: var(--black);
  padding: 80px 40px;
}

.explore-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.explore h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 40px;
}

.explore-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.explore-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.explore-link:hover { opacity: 0.6; }

.explore-link span { font-size: 1.5rem; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--grey-light);
  padding: 80px 40px;
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--grey-mid);
  border-right: none;
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font);
}

.newsletter-form input:focus { border-color: var(--black); }

/* ===== SERVICES LIST (property care) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px 80px;
}

.service-cat h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
}

.service-cat ul {
  list-style: none;
  padding: 0;
}

.service-cat ul li {
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--grey-mid);
  color: #444;
}

/* ===== NUMBERED STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--grey-mid);
  margin-bottom: 12px;
  line-height: 1;
}

/* ===== FORMS ===== */
.contact-section {
  background: var(--grey-light);
  padding: 80px 40px;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-inner .lead {
  font-size: 1rem;
  color: var(--grey-text);
  margin-bottom: 40px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--grey-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey-mid);
  background: var(--white);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--black); }

.form-group textarea { height: 140px; resize: vertical; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, opacity 0.2s;
}

.btn:hover { opacity: 0.75; }

.btn-white {
  background: var(--white);
  color: var(--black);
}

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  padding: 16px 20px;
  font-size: 0.9rem;
  margin-top: 16px;
  color: #2e7d32;
}

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 40px 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  transition: opacity 0.2s;
}

.footer-col ul li a:hover { opacity: 0.5; }

.footer-bottom {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

/* ===== 3-COL: HEADING | CONTENT | IMAGE ===== */
.hci-layout {
  display: grid;
  grid-template-columns: 0.7fr 1fr 2.2fr;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 40px;
  align-items: start;
}

.hci-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  position: sticky;
  top: 90px;
}

.hci-content > div {
  margin-bottom: 48px;
}

.hci-content > div:last-child {
  margin-bottom: 0;
}

.hci-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--black);
  text-transform: none;
  letter-spacing: 0;
}

.hci-content p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #333;
  margin-bottom: 16px;
}

.hci-content p:last-child {
  margin-bottom: 0;
}

.hci-content p strong {
  color: var(--black);
}

.hci-image {
  width: 100%;
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.hci-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CENTERED FORM (service pages) ===== */
.centered-form-section {
  padding: 80px 40px;
}

.centered-form-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.centered-form-inner .lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 16px;
}

.centered-form-inner .lead strong {
  color: var(--black);
}

.centered-form-inner .sub-lead {
  font-size: 1rem;
  color: #333;
  margin-bottom: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-full {
  text-align: left;
  margin-bottom: 24px;
}

.form-full .form-group {
  margin-bottom: 0;
}

/* ===== CONTACT 2-COL LAYOUT ===== */
.contact-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.contact-info p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-info a {
  text-decoration: underline;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid var(--grey-mid);
  margin: 0;
}

/* ===== ABOUT / STATIC CONTENT ===== */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.prose p {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 24px;
}

/* ===== TABLET (860px) ===== */
@media (max-width: 860px) {
  .hci-layout {
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 60px 30px;
  }

  .hci-heading {
    grid-column: 1 / -1;
  }

  .hci-heading h2 {
    position: static;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  /* --- NAV --- */
  nav {
    padding: 0 20px;
    height: 60px;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 32px 24px;
    gap: 24px;
    z-index: 99;
    animation: slideDown 0.25s ease;
  }

  .nav-links.open a {
    font-size: 1rem;
    padding: 8px 0;
  }

  .nav-hamburger { display: flex; }

  /* --- HERO BANNERS --- */
  .hero {
    margin-top: 60px;
    height: 55vh;
    min-height: 280px;
    padding: 32px 20px;
  }

  .hero-plain {
    margin-top: 60px;
    padding: 48px 20px;
    min-height: 200px;
  }

  .hero-parallax {
    margin-top: 60px;
    height: 35vh;
    min-height: 200px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  /* --- SECTIONS --- */
  .section {
    padding: 48px 20px;
  }

  .section-wide {
    padding: 48px 20px;
  }

  .section h2 {
    font-size: clamp(1.3rem, 5vw, 2rem);
    margin-bottom: 36px;
  }

  .section p {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  /* --- GRIDS → SINGLE COLUMN --- */
  .philosophy {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .three-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 48px;
    gap: 36px;
  }

  /* --- HCI LAYOUT (service pages) --- */
  .hci-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px;
  }

  .hci-heading h2 {
    position: static;
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .hci-image {
    position: static;
    max-width: 100% !important;
  }

  .hci-image img {
    border-radius: 0;
  }

  .hci-content > div {
    margin-bottom: 40px;
  }

  .hci-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .hci-content p {
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 14px;
  }

  /* --- FORMS --- */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 16px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .centered-form-section {
    padding: 48px 20px;
  }

  .contact-section {
    padding: 48px 20px;
  }

  .btn {
    padding: 16px 32px;
    font-size: 0.82rem;
    width: 100%;
    text-align: center;
  }

  /* --- CONTACT SPLIT --- */
  .contact-split {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 20px;
  }

  /* --- EXPLORE / CTA --- */
  .explore {
    padding: 48px 20px;
  }

  .explore h2 {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  .explore-link {
    font-size: clamp(1rem, 4vw, 1.5rem);
    padding: 20px 0;
  }

  /* --- NEWSLETTER --- */
  .newsletter {
    padding: 48px 20px;
  }

  .newsletter h2 {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0;
  }

  .newsletter-form input {
    border-right: 1px solid var(--grey-mid);
    border-bottom: none;
    font-size: 16px;
  }

  /* --- FOOTER --- */
  footer {
    padding: 48px 20px 24px;
  }

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

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }

  /* --- ANIMATIONS (reduce motion on mobile) --- */
  .fade-up {
    transform: translateY(24px);
  }
}

/* ===== SMALL PHONES ===== */
@media (max-width: 400px) {
  nav { padding: 0 16px; }
  .section, .section-wide { padding: 40px 16px; }
  .hci-layout { padding: 40px 16px; }
  .explore { padding: 40px 16px; }
  .newsletter { padding: 40px 16px; }
  footer { padding: 40px 16px 20px; }
  .centered-form-section { padding: 40px 16px; }
  .contact-split { padding: 40px 16px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-parallax img,
  .hero-form > img {
    transform: none !important;
  }

  .nav-links.open {
    animation: none;
  }
}

/* ===== NAV ANIMATION ===== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
