/* ============================================================
   APOLLO PROPERTY SERVICES — STYLE.CSS
   Architectural Minimalism meets Art Gallery
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --bg:          #0A0A0A;
  --surface:     #141414;
  --border:      #1E1E1E;
  --muted:       #7A7A7A;
  --text:        #F0F0F0;
  --accent:      #00B4D8;
  --accent-hover:#48CAE4;
  --accent-glow: rgba(0, 180, 216, 0.12);
  --accent-faint:rgba(0, 180, 216, 0.06);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Type Scale (fluid) */
  --text-xs:   clamp(0.6875rem, 0.7vw, 0.75rem);
  --text-sm:   clamp(0.8125rem, 0.9vw, 0.875rem);
  --text-base: clamp(0.9375rem, 1vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1.3vw, 1.25rem);
  --text-xl:   clamp(1.5rem, 2.5vw, 2rem);
  --text-2xl:  clamp(2rem, 3.5vw, 3rem);
  --text-3xl:  clamp(2.5rem, 5vw, 4.5rem);

  /* Spacing */
  --section-pad: clamp(80px, 12vh, 160px);
  --container:   1200px;
  --card-pad:    clamp(32px, 4vw, 48px);
  --gap:         clamp(16px, 2vw, 24px);

  /* Grid */
  --grid-size:   60px;
  --grid-color:  rgba(30, 30, 30, 0.5);
}


/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 180, 216, 0.3);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }


/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

section {
  position: relative;
  padding: var(--section-pad) 0;
}


/* ---------- Utility: Label ---------- */
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.label--accent {
  color: var(--accent);
}


/* ---------- Noise Texture Overlay ---------- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  flex-shrink: 0;
}

.nav__logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  width: 100%;
  left: 0;
}

.nav__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--accent);
  white-space: nowrap;
  margin-left: 16px;
  transition: color 0.3s ease;
}

.nav__phone:hover {
  color: var(--accent-hover);
}

.nav__phone svg {
  flex-shrink: 0;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--accent);
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.mobile-menu__contact a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--accent);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black 20%, transparent 100%);
  z-index: 1;
}

.hero__accent {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__content .label {
  margin-bottom: 32px;
}

.hero__content h1 {
  margin-bottom: 28px;
}

.hero__sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Pill links */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.pill:hover {
  color: var(--text);
  border-color: var(--accent);
  background-color: var(--accent-faint);
}

.pill svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}


/* ============================================================
   ABOUT
   ============================================================ */
.about {
  border-top: 1px solid var(--border);
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.about__text h2 {
  margin-bottom: 32px;
}

.about__text p {
  color: var(--muted);
  margin-bottom: 20px;
}

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

/* Abstract geometric composition */
.about__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__geo {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
}

.geo-rect {
  position: absolute;
  border: 1px solid var(--border);
}

.geo-rect--1 {
  width: 75%;
  height: 75%;
  top: 0;
  left: 0;
}

.geo-rect--2 {
  width: 60%;
  height: 60%;
  bottom: 0;
  right: 0;
  border-color: var(--accent);
  opacity: 0.5;
}

.geo-rect--3 {
  width: 40%;
  height: 40%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: var(--border);
}

.geo-grid {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 10%;
  left: 10%;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
}


/* ============================================================
   SERVICES
   ============================================================ */
.services {
  border-top: 1px solid var(--border);
}

.services__header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.services__header h2 {
  margin-bottom: 20px;
}

.services__intro {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
}

/* Bento Grid */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* Cards */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--card-pad);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 0 48px var(--accent-faint);
}

.card__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.card:hover .card__corner {
  opacity: 0.6;
}

.card__num {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.card h3 {
  font-size: var(--text-xl);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card li {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 1px;
  background: var(--accent);
}


/* ============================================================
   APPROACH
   ============================================================ */
.approach {
  border-top: 1px solid var(--border);
}

.approach__header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.approach__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line behind all steps */
.approach__steps::before {
  content: '';
  position: absolute;
  top: 8px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 1px;
  background: var(--border);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(12px, 2vw, 24px);
}

.step__marker {
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
}

.step__dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--bg);
  position: relative;
}

.step__dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

.step__body {
  max-width: 240px;
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: var(--text-lg);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
}


/* ============================================================
   SERVICE AREA
   ============================================================ */
.area {
  border-top: 1px solid var(--border);
}

.area__header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.area__locations {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  margin-bottom: 40px;
}

.area__loc {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.area__loc:hover {
  color: var(--text);
}

.area__loc--primary {
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--text);
}

.area__loc--major {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--text);
  opacity: 0.85;
}

.area__loc--mid {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.area__loc--std {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  opacity: 0.7;
}

.area__sub {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--muted);
  opacity: 0.7;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.contact__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 10%, transparent 100%);
  opacity: 0.6;
}

.contact__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact__content h2 {
  margin-bottom: 48px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.contact__link {
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact__link--phone {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  letter-spacing: 0.02em;
}

.contact__link--phone:hover {
  color: var(--accent);
}

.contact__link--email {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent);
}

.contact__link--email:hover {
  color: var(--accent-hover);
}

.contact__info {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  opacity: 0.7;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  justify-content: center;
}

.footer p {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--muted);
  opacity: 0.5;
  letter-spacing: 0.02em;
}


/* ============================================================
   FOCUS STYLES (Accessibility)
   ============================================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 0;
  }

  .approach__steps::before {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav nav {
    height: 64px;
  }

  .nav__links,
  .nav__phone {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: 100svh;
  }

  .hero__content h1 br {
    display: none;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .pill {
    font-size: var(--text-xs);
    padding: 10px 20px;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    order: -1;
  }

  .about__geo {
    max-width: 240px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .approach__steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
  }

  .step__marker {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step__num {
    font-size: 2rem;
  }

  .area__locations {
    gap: 8px 16px;
  }

  .contact__link--phone {
    font-size: 1.5rem;
  }

  .contact__link--email {
    font-size: 0.9rem;
    word-break: break-all;
  }

  h2 br {
    display: none;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .pill {
    width: 100%;
    justify-content: center;
  }
}
