/* =============================================================================
   PLK Developments — Coming Soon
   Premium, minimalist real estate developer aesthetic.
   Mobile-first; progressive enhancement via min-width media queries.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Palette — brand navy + gold (from PLK Developments logo) */
  --bg: #ffffff;
  --bg-alt: #f4f5f8;
  --ink: #1b2a47;          /* brand navy — text, dark surfaces, buttons */
  --ink-soft: #3b4a66;     /* secondary navy text */
  --muted: #666c7a;        /* slate */
  --line: #e4e7ee;         /* hairline borders */
  --line-strong: #d2d8e3;
  --accent: #c7a258;       /* brand gold — decorative accents */
  --accent-strong: #8a6c2f;/* deepened gold for small text on light (contrast) */
  --accent-soft: #d6b577;  /* lighter gold for use on dark surfaces */

  /* Typography */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --nav-h: 72px;
  --radius: 3px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(27, 42, 71, .05);
  --shadow-md: 0 1px 2px rgba(27, 42, 71, .05), 0 18px 40px -22px rgba(27, 42, 71, .26);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ----------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

::selection { background: var(--ink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----------------------------------------------------------------------------
   3. Layout helpers & typography
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--accent-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -.01em;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

.section-intro {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn-sm { padding: .7rem 1.2rem; font-size: .85rem; }

.btn-primary:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ----------------------------------------------------------------------------
   5. Header / navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand wordmark — set in the display serif, matching the section headings */
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: none;
  gap: 2.2rem;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-soft);
  padding-block: .35rem;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 0; }

/* ----------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #fbfcfd 55%, #eef1f6 100%);
}

/* Animated backdrop layers */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(27, 42, 71, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 42, 71, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 35%, #000 0%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 35%, #000 0%, transparent 78%);
}

.hero-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  top: -12%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 162, 88, .16) 0%, rgba(199, 162, 88, 0) 68%);
  transform: translateX(-50%);
  animation: drift 16s ease-in-out infinite alternate;
}

.hero-skyline {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(180px, 32vw, 360px);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .085;
}
.crane-hook { transform-origin: 912px 96px; animation: sway 6s ease-in-out infinite; }

@keyframes drift {
  0%   { transform: translate(-50%, 0); }
  100% { transform: translate(-42%, 26px); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 8vh, 6rem);
}

/* Launch badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line-strong);
  padding: .55rem 1rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.badge-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-top: 1.75rem;
  max-width: 16ch;
}
.accent-line { color: var(--accent); font-style: italic; }

.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(0); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(220%); opacity: 0; }
}

/* ----------------------------------------------------------------------------
   7. About
   ------------------------------------------------------------------------- */
.about { background: var(--bg-alt); }

.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }

.lead {
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}

.process {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.4rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}
.process li {
  position: relative;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.process li + li::before {
  content: "";
  position: absolute;
  left: -.95rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

/* ----------------------------------------------------------------------------
   8. Services
   ------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
/* Accent reveal bar on the top edge */
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card:hover::before { transform: scaleY(1); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--ink);
  margin-bottom: 1.4rem;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { background: var(--ink); color: #fff; }

.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
}
.card-text { color: var(--muted); font-size: 1rem; }

/* ----------------------------------------------------------------------------
   9. Coming soon (dark band)
   ------------------------------------------------------------------------- */
.coming-soon {
  position: relative;
  background: var(--ink);
  color: #f3f0e9;
  text-align: center;
  overflow: hidden;
}
.coming-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(90% 90% at 50% 50%, #000 0%, transparent 75%);
}
.coming-inner { position: relative; z-index: 2; max-width: 42rem; margin-inline: auto; }
.coming-text {
  margin: 1.2rem auto 2.2rem;
  color: #c8c4b8;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 38rem;
}

/* ----------------------------------------------------------------------------
   10. Contact
   ------------------------------------------------------------------------- */
.contact { background: var(--bg-alt); }
.contact .section-head { text-align: center; margin-inline: auto; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 760px;
  margin-inline: auto;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card:hover .contact-icon { background: var(--ink); color: #fff; }
.contact-meta { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.contact-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.contact-value {
  font-size: clamp(.95rem, 2.2vw, 1.12rem);
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

/* ----------------------------------------------------------------------------
   11. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #d4dae6;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}
.brand-footer { color: #fff; }              /* navy letters become white on the dark footer */
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #eef1f7;
}
.footer-copy { font-size: .85rem; color: #97a0b3; letter-spacing: .02em; }

/* ----------------------------------------------------------------------------
   12. Scroll-reveal animations (JS-gated so no-JS users see content)
   ------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------------------
   13. Responsive — tablet & up
   ------------------------------------------------------------------------- */
@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

@media (min-width: 880px) {
  :root { --nav-h: 84px; }
  .about-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .about-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ----------------------------------------------------------------------------
   14. Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
