/*
Theme Name: Apex Property Investments
Theme URI: https://example.com/apex-property-investments
Author: Apex Property Investments
Description: A light, modern, phone-first one-page WordPress theme for a property investment firm.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: apex-property-investments
*/

:root {
  --paper: #f4f3ee;
  --white: #fbfbf8;
  --ink: #1d211f;
  --muted: #666c68;
  --sage: #809187;
  --sage-soft: #dbe1dc;
  --line: #d7d9d4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-geist), Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
main { overflow: hidden; }

.site-header { height: 90px; padding: 0 clamp(24px, 5vw, 76px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(29,33,31,.12); position: absolute; inset: 0 0 auto; z-index: 5; }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 14px; font-weight: 520; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 18px; letter-spacing: .2em; font-weight: 590; }
.brand-copy small { margin-top: 7px; font-size: 7px; letter-spacing: .18em; color: var(--muted); }
.main-nav { display: flex; gap: 44px; font-size: 12px; }
.main-nav a { color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--ink); }
.header-call { justify-self: end; display: flex; align-items: center; gap: 15px; font-size: 12px; }
.header-call span { color: var(--muted); }
.header-call strong { font-weight: 550; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }

.hero { min-height: 720px; height: 92vh; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; padding: 130px clamp(24px, 8.5vw, 140px) 70px; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.hero-content { max-width: 900px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 25px; color: #65786e; text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 600; }
.hero h1 { font-size: clamp(56px, 6.8vw, 108px); line-height: .96; letter-spacing: -.065em; font-weight: 460; margin: 0; max-width: 970px; }
.hero-intro { max-width: 510px; color: var(--muted); font-size: 16px; line-height: 1.65; margin: 34px 0 38px; }
.hero-actions { display: flex; align-items: center; gap: 32px; }
.primary-button { min-height: 56px; background: var(--ink); color: white; padding: 0 22px; display: inline-flex; align-items: center; gap: 32px; font-size: 12px; transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-2px); background: #343a37; }
.primary-button span { color: #aebbb4; font-size: 16px; }
.text-link { font-size: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; color: var(--muted); }
.text-link span { margin-left: 9px; color: var(--sage); }
.hero-art { justify-self: end; width: min(34vw, 480px); aspect-ratio: 1; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; position: relative; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(29,33,31,.13); border-radius: 50%; }
.hero-art::after { inset: 27%; }
.hero-art > span { font-size: clamp(90px, 13vw, 210px); font-weight: 350; letter-spacing: -.09em; color: #718278; transform: translateX(-7%); }
.hero-art i { position: absolute; width: 1px; height: 120%; background: rgba(29,33,31,.15); transform: rotate(38deg); }

.work-section { padding: 130px clamp(24px, 8.5vw, 140px) 145px; background: var(--white); }
.section-head { display: grid; grid-template-columns: .8fr 2fr; align-items: start; margin-bottom: 75px; }
.section-head h2 { margin: 0; max-width: 700px; font-size: clamp(42px, 5vw, 75px); line-height: 1; letter-spacing: -.055em; font-weight: 450; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.capability-grid article { padding: 30px clamp(20px, 3vw, 45px) 20px 0; min-height: 270px; border-right: 1px solid var(--line); }
.capability-grid article:not(:first-child) { padding-left: clamp(20px, 3vw, 45px); }
.capability-grid article:last-child { border-right: 0; }
.capability-grid article > span { font-size: 10px; color: var(--sage); letter-spacing: .12em; }
.capability-grid h3 { font-size: 28px; font-weight: 470; letter-spacing: -.03em; margin: 45px 0 18px; }
.capability-grid p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 340px; margin: 0; }

.about-section { display: grid; grid-template-columns: 44% 56%; min-height: 700px; }
.about-panel { background: #313835; display: grid; place-items: center; position: relative; overflow: hidden; }
.about-panel::before { content: ""; width: 64%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.about-panel span { position: absolute; color: #d7ddd8; font-size: clamp(55px, 8vw, 120px); font-weight: 300; letter-spacing: .2em; transform: translateX(.1em); }
.about-copy { background: var(--sage-soft); padding: 115px clamp(35px, 8vw, 125px); }
.about-copy h2 { font-size: clamp(44px, 5vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 450; margin: 0; }
.about-copy > p:not(.eyebrow) { max-width: 620px; color: #59655f; line-height: 1.75; font-size: 15px; margin: 34px 0 55px; }
.principles { display: flex; gap: 0; border-top: 1px solid rgba(29,33,31,.16); border-bottom: 1px solid rgba(29,33,31,.16); }
.principles span { flex: 1; padding: 18px 12px 18px 0; font-size: 11px; border-right: 1px solid rgba(29,33,31,.16); }
.principles span:not(:first-child) { padding-left: 18px; }
.principles span:last-child { border-right: 0; }

.call-section { padding: 110px clamp(24px, 8.5vw, 140px); background: var(--white); display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 80px; }
.call-section h2 { font-size: clamp(52px, 6vw, 92px); line-height: 1; letter-spacing: -.06em; font-weight: 450; margin: 0; }
.call-section > div > p:not(.eyebrow) { color: var(--muted); margin: 24px 0 0; font-size: 14px; }
.phone-link { border-bottom: 1px solid var(--ink); padding: 20px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; font-size: clamp(28px, 3.7vw, 52px); letter-spacing: -.04em; }
.phone-link small { font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.phone-link span { font-size: 22px; color: var(--sage); }

footer { background: var(--paper); min-height: 125px; padding: 34px clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
footer p { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.mobile-call { display: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 150px; height: auto; min-height: 760px; }
  .hero-art { position: absolute; right: -12%; top: 19%; opacity: .55; width: 58vw; }
  .hero-content { z-index: 2; }
  .section-head { grid-template-columns: 1fr; gap: 30px; }
  .about-section { grid-template-columns: 1fr; }
  .about-panel { min-height: 470px; }
  .call-section { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 600px) {
  .site-header { height: 78px; padding: 0 20px; }
  .header-call { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 16px; }
  .hero { padding: 135px 24px 80px; min-height: 710px; }
  .hero h1 { font-size: 53px; }
  .hero-intro { max-width: 90%; font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .primary-button { width: 100%; justify-content: space-between; }
  .hero-art { width: 92vw; right: -45%; top: 17%; opacity: .45; }
  .work-section { padding: 90px 24px; }
  .section-head h2, .about-copy h2 { font-size: 43px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article:not(:first-child) { border-right: 0; border-bottom: 1px solid var(--line); padding: 27px 0 35px; min-height: 0; }
  .capability-grid h3 { margin: 26px 0 12px; }
  .about-panel { min-height: 360px; }
  .about-copy { padding: 90px 24px; }
  .principles { flex-direction: column; }
  .principles span, .principles span:not(:first-child) { border-right: 0; border-bottom: 1px solid rgba(29,33,31,.16); padding: 15px 0; }
  .principles span:last-child { border-bottom: 0; }
  .call-section { padding: 90px 24px 115px; }
  .call-section h2 { font-size: 56px; }
  .phone-link { grid-template-columns: 1fr auto; font-size: 29px; gap: 16px; }
  .phone-link small { display: none; }
  footer { align-items: flex-start; flex-direction: column; padding-bottom: 110px; gap: 20px; }
  .mobile-call { position: fixed; display: flex; left: 12px; right: 12px; bottom: 12px; min-height: 62px; background: var(--ink); color: white; z-index: 20; padding: 12px 19px; align-items: center; justify-content: space-between; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
  .mobile-call span { font-size: 9px; text-transform: uppercase; letter-spacing: .15em; color: #b6c2bb; }
  .mobile-call strong { font-size: 17px; font-weight: 450; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
