/* ==========================================================================
   Castle Estates — Brand Stylesheet
   Blue #2D99CD · Gold #FECD08 · Black · White
   ========================================================================== */

:root {
  --blue: #2D99CD;
  --blue-dark: #1C6E99;
  --blue-deepest: #0F3D54;
  --gold: #FECD08;
  --gold-soft: #FFE066;
  --black: #0B0C0E;
  --ink: #1A1B1E;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray: #63666B;
  --line: #E4E7EB;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: Arial, Helvetica, sans-serif;

  --container: 1160px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--black);
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.1em; color: var(--gray); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-dark);
  font-weight: 700;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img.brand-icon { height: 48px; width: auto; }
.brand img.brand-word { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 18px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  border-color: var(--blue);
}

.nav-links a.active {
  color: var(--blue-dark);
  border-color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }

.btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

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

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(45,153,205,0.35), transparent 60%),
    linear-gradient(160deg, var(--blue-deepest) 0%, #123B52 45%, var(--black) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(254,205,8,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254,205,8,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 28px;
  max-width: 780px;
}

.hero-icon { height: 68px; width: auto; margin: 0 auto 24px; }

.hero-wordmark { height: 84px; width: auto; margin: 0 auto 18px; filter: brightness(0) invert(1); }

.hero-tagline {
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 30px;
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 38px;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.4);
  margin: 10px auto 0;
  animation: scrollpulse 2s infinite ease-in-out;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.9; }
}

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-tight { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-dark {
  background: linear-gradient(160deg, var(--blue-deepest) 0%, var(--black) 100%);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-head.left { margin: 0 0 50px; text-align: left; }

.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.lede { font-size: 18px; }

/* ---------- Grid layouts ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2-uneven {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 38px 32px;
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: 0 20px 40px -20px rgba(15, 61, 84, 0.25);
  transform: translateY(-3px);
}

.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: 15px; }

/* ---------- Area tags ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.area-tag {
  border: 1px solid var(--line);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  border-radius: 999px;
  background: var(--off-white);
}

/* ---------- Founder teaser / bio ---------- */
.founder-photo-frame {
  position: relative;
  padding: 14px;
  border: 2px solid var(--gold);
}
.founder-photo-frame img { width: 100%; height: auto; display: block; }

.founder-photo-frame::before {
  content: "";
  position: absolute;
  top: -12px; left: -12px;
  width: 34px; height: 34px;
  border-top: 3px solid var(--blue);
  border-left: 3px solid var(--blue);
}
.founder-photo-frame::after {
  content: "";
  position: absolute;
  bottom: -12px; right: -12px;
  width: 34px; height: 34px;
  border-bottom: 3px solid var(--blue);
  border-right: 3px solid var(--blue);
}

.founder-name { font-size: 30px; margin-bottom: 4px; }
.founder-title {
  display: block;
  color: var(--blue-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 20px;
}

/* ---------- Founder page hero ---------- */
.founder-hero {
  background: linear-gradient(160deg, var(--blue-deepest) 0%, var(--black) 100%);
  color: var(--white);
  padding: 150px 0 100px;
}
.founder-hero .grid-2 { align-items: center; }
.founder-hero p { color: rgba(255,255,255,0.78); }
.founder-hero .founder-name, .founder-hero h1 { color: var(--white); }
.founder-hero .founder-photo-frame { border-color: var(--gold); max-width: 380px; }

.credential-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.credential-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.credential-list li .dot {
  min-width: 10px;
  height: 10px;
  margin-top: 6px;
  background: var(--gold);
}

.placeholder-note {
  border: 1px dashed var(--line);
  background: var(--off-white);
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--gray);
  border-radius: var(--radius);
  margin-top: 20px;
}

/* ---------- Contact page ---------- */
.contact-hero {
  background: linear-gradient(160deg, var(--blue-deepest) 0%, var(--black) 100%);
  color: var(--white);
  padding: 140px 0 90px;
  text-align: center;
}
.contact-hero h1 { color: var(--white); }
.contact-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: -70px;
  position: relative;
  z-index: 3;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(11,12,14,0.25);
}

.contact-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.contact-card .icon-wrap svg { width: 26px; height: 26px; }

.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card a.contact-value {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 15.5px;
  word-break: break-word;
}
.contact-card .contact-value:hover { color: var(--blue); }

.contact-note {
  max-width: 640px;
  margin: 70px auto 0;
  text-align: center;
}
.contact-note h3 { font-size: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); }
.footer-tagline { font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  border: 2.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(11,12,14,0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover { background: var(--blue-dark); transform: translateY(-3px) scale(1.04); }
.whatsapp-float svg { width: 30px; height: 30px; }

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  opacity: 0.6;
  animation: wa-pulse 2.4s infinite ease-out;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.55); opacity: 0; }
}

.whatsapp-label {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--black);
  color: var(--white);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover .whatsapp-label { opacity: 1; }

/* ---------- Page header (About / generic) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--blue-deepest) 0%, var(--black) 100%);
  color: var(--white);
  padding: 150px 0 90px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 48px); }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 620px; margin: 0 auto; }

/* ---------- Timeline (About) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-2-uneven { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; margin-top: -40px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .value-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 69px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 28px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 13px 18px; }
  .nav-toggle { display: flex; }
  .brand img.brand-icon { height: 40px; }
  .brand img.brand-word { height: 32px; }
  .hero-wordmark { height: 60px; }
  .hero-icon { height: 52px; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .whatsapp-label { display: none; }
}
