/* Join REMAX Gold recruiting site
   Black and white, big geometric type, coastal photography. */

:root {
  --black: #000;
  --ink: #0b0b0b;
  --white: #fff;
  --gray-100: #f5f5f5;
  --gray-300: #cfcfcf;
  --gray-600: #6b6b6b;
  --gold: #c8a24a; /* tiny accents only: check icons, focus rings */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --gutter: 20px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  transition: background .2s, color .2s, transform .1s;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: transparent; color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn.btn-dark:hover { background: transparent; color: var(--black); }
.btn.btn-lg { padding: 18px 44px; font-size: 1.15rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid #1c1c1c;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: 0 0 auto; }
.brand .mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  font-weight: 700; color: var(--black); font-size: .95rem; letter-spacing: .02em;
}
.brand .name { font-weight: 600; font-size: 1.25rem; letter-spacing: .04em; }
.brand .name small { display: block; font-weight: 400; font-size: .72rem; letter-spacing: .22em; color: var(--gray-300); text-transform: uppercase; }
.site-header .btn { padding: 11px 24px; font-size: .95rem; }
.brand .logo { height: 56px; width: auto; }
.site-footer .brand .logo { height: 64px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav ul a { text-decoration: none; font-size: .95rem; color: #e6e6e6; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.menu-toggle { display: none; background: none; border: 1px solid #444; color: var(--white); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

/* Photo placeholders. Swap the background for a real image. */
.photo {
  position: relative;
  background-color: #1f3a4a;
  background-image:
    radial-gradient(ellipse at 70% 20%, rgba(130,190,210,.55), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(220,200,150,.45), transparent 50%),
    linear-gradient(180deg, #27566b 0%, #1a3d4c 60%, #0f2a36 100%);
  background-size: cover; background-position: center;
}
.photo.sand {
  background-image:
    radial-gradient(ellipse at 30% 30%, rgba(240,220,170,.6), transparent 55%),
    linear-gradient(160deg, #6a8fa0 0%, #2d5e73 55%, #cbb58a 100%);
}
.photo.palms {
  background-image:
    radial-gradient(ellipse at 60% 40%, rgba(120,170,90,.55), transparent 55%),
    linear-gradient(180deg, #2e5a3a 0%, #1b3a28 100%);
}
.photo .tag {
  position: absolute; left: 12px; bottom: 10px;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.headshot {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background:
    radial-gradient(circle at 50% 38%, #cfd6dc 0 22%, transparent 23%),
    radial-gradient(ellipse at 50% 95%, #cfd6dc 0 40%, transparent 41%),
    linear-gradient(180deg, #4b6b7a, #223c48);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.avatar {
  width: 150px; height: 150px; border-radius: 50%;
  margin: 0 auto 18px;
  background:
    radial-gradient(circle at 50% 38%, #cfd6dc 0 24%, transparent 25%),
    radial-gradient(ellipse at 50% 100%, #cfd6dc 0 42%, transparent 43%),
    linear-gradient(180deg, #5b7684, #2a4350);
  border: 3px solid var(--white);
}

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 70px 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero-water { background: #04163a url(/img/hero-underwater.jpg) center top / cover no-repeat; }
.hero-water::before { background: linear-gradient(90deg, rgba(1,8,26,.55) 0%, rgba(1,8,26,.25) 55%, rgba(1,8,26,.1) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.hero h1 { margin-bottom: 32px; }
.checks { list-style: none; padding: 0; margin: 0 0 36px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.35rem; font-weight: 400; margin-bottom: 14px; }
.checks svg { flex: 0 0 26px; width: 26px; height: 26px; margin-top: 6px; color: var(--gold); }
.hero .bio { max-width: 400px; margin-left: auto; text-align: center; }
.hero .bio .headshot { max-width: 260px; margin: 0 auto 36px; }
img.headshot { height: auto; }
.hero .bio .headshot.full { max-width: 340px; aspect-ratio: auto; object-fit: contain; }
.hero .bio p { font-size: .95rem; color: #e8e8e8; }
.hero .bio blockquote { margin: 18px 0 0; font-size: .95rem; font-style: italic; color: #e8e8e8; }

/* Hero copy */
.hero-copy { max-width: 600px; margin-bottom: 36px; }
.hero-copy p { font-size: 1.15rem; color: #ececec; }
.hero-copy .go-gold { color: var(--gold); letter-spacing: .04em; white-space: nowrap; }

/* Cornered the market */
.cornered { padding: 100px 0; border-top: 1px solid #1c1c1c; }
.cornered h2 { text-align: center; margin-bottom: 20px; }
.cornered .intro { max-width: 820px; margin: 0 auto 56px; text-align: center; font-size: 1.15rem; color: #e4e4e4; }
.cornered .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cornered .item { border: 1px solid #2a2a2a; border-top: 3px solid var(--gold); padding: 30px 28px; background: #0b0b0b; }
.cornered .item h4 { font-size: 1.3rem; margin-bottom: 10px; }
.cornered .item p { margin: 0; color: #d8d8d8; }

/* Stats */
.stats { background: var(--white); color: var(--black); padding: 56px 0 40px; text-align: center; }
.stats .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat .num { font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 600; line-height: 1; }
.stat .label { margin-top: 10px; font-size: .95rem; color: var(--gray-600); }
.stats .note { margin: 28px 0 0; font-size: .78rem; color: var(--gray-600); }

/* Life section */
.life { padding: 110px 0; }
.life .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.collage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 0.95; margin: 0 auto; }
.collage .photo { position: absolute; }
.collage .a { left: 0; top: 0; width: 72%; height: 70%; }
.collage .b { right: 0; bottom: 0; width: 72%; height: 64%; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.collage img { position: absolute; object-fit: cover; aspect-ratio: 1 / 1; height: auto; }
.collage img.a { left: 0; top: 0; width: 70%; height: auto; }
.collage img.b { right: 0; bottom: 0; width: 50%; height: auto; box-shadow: 0 30px 60px rgba(0,0,0,.6); border: 4px solid var(--black); }
.collage .c { position: absolute; left: 68%; top: 54%; width: 60px; height: 60px; background: #444; }
.life .sub { font-size: 1.15rem; font-weight: 500; margin-bottom: 18px; }

/* Icon cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 110px; }
.card { text-align: center; }
.card .icon { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--white); }
.card h4 { font-size: 1rem; letter-spacing: .02em; margin-bottom: 10px; }
.card p { font-size: .9rem; color: #d8d8d8; }

/* Pillars */
.pillars { background: var(--white); color: var(--black); padding: 100px 0; }
.pillars h2 { text-align: center; margin-bottom: 56px; }
.pillars .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.pillar h4 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar .lead { font-weight: 600; margin-bottom: 8px; }
.pillar p { font-size: .92rem; color: #333; }
.pillars .more { text-align: center; margin-top: 48px; }

/* Testimonials */
img.avatar { display: block; object-fit: cover; background: #222; margin-left: auto; margin-right: auto; }
.quote { display: flex; flex-direction: column; align-items: center; }
.testimonials { padding: 100px 0; }
.testimonials h2 { text-align: center; margin-bottom: 56px; }
.testimonials .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }
@media (max-width: 860px) { .testimonials .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .testimonials .grid { grid-template-columns: 1fr; } }
.quote { text-align: center; }
.quote p { font-size: .95rem; color: #e4e4e4; }
.quote .who { font-weight: 600; margin-top: 10px; }
.quote .role { font-size: .85rem; color: var(--gray-300); }

/* Closing CTA */
.closing { position: relative; padding: 130px 0; text-align: center; }
.closing::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.closing .wrap { position: relative; }
.closing p { font-size: 1.25rem; margin-bottom: 30px; }

/* Footer */
.site-footer { background: var(--black); padding: 56px 0 40px; text-align: center; border-top: 1px solid #1c1c1c; }
.site-footer .brand { justify-content: center; margin-bottom: 18px; }
.site-footer p { font-size: .85rem; color: var(--gray-300); }
.foot-links { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: .9rem; }
.foot-links a { text-decoration: none; color: #e6e6e6; }
.foot-links a:hover { color: var(--white); text-decoration: underline; }
.social { list-style: none; padding: 0; margin: 20px 0 0; display: flex; justify-content: center; gap: 22px; }
.social a { color: var(--white); display: inline-flex; width: 36px; height: 36px; border: 1px solid #333; border-radius: 50%; align-items: center; justify-content: center; }
.social svg { width: 18px; height: 18px; }
.site-footer .legal { font-size: .75rem; color: var(--gray-600); margin-top: 18px; }

/* Join page */
.join { position: relative; min-height: calc(100vh - 84px); display: flex; align-items: center; padding: 70px 0; }
.join::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.join .wrap { position: relative; max-width: 760px; }
.join h2 { text-align: center; margin-bottom: 12px; }
.join .intro { text-align: center; color: #e4e4e4; margin-bottom: 40px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; margin-bottom: 6px; color: #ddd; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 1rem;
  border: 1px solid #555; border-radius: var(--radius); background: rgba(255,255,255,.96); color: var(--black);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form .actions { grid-column: 1 / -1; text-align: center; margin-top: 10px; }
.form .msg { grid-column: 1 / -1; text-align: center; min-height: 1.4em; color: #ffd27a; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* Booking (thank-you) */
.book { padding: 60px 0 80px; text-align: center; }
.book h2 { margin-bottom: 10px; }
.book .sub { font-size: 1.1rem; color: #e4e4e4; max-width: 560px; margin: 0 auto 32px; }
.book .embed { background: #fff; border-radius: 4px; overflow: hidden; max-width: 1000px; margin: 0 auto; min-height: 700px; }
.book .embed iframe { width: 100%; height: 760px; border: 0; display: block; }
.book .fallback { margin-top: 28px; font-size: .95rem; color: var(--gray-300); }

/* Interior page hero */
.page-hero { position: relative; padding: 110px 0 90px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.page-hero .wrap { position: relative; }
.page-hero .kicker { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-300); margin-bottom: 14px; }
.page-hero p.lede { font-size: 1.25rem; max-width: 720px; color: #ececec; margin: 0; }

.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-media { position: relative; padding-bottom: 12%; }
.hero-media img { display: block; height: auto; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.hero-media .m1 { width: 100%; background: #fff; }
.hero-media .m2 { position: absolute; right: -4%; bottom: 0; width: 38%; border: 3px solid #0b1f3f; }
@media (max-width: 960px) { .hero-split { grid-template-columns: 1fr; } .hero-media { max-width: 600px; margin: 8px auto 0; } .hero-media .m2 { right: 0; } }

/* Content blocks */
.section { padding: 90px 0; }
.section.light { background: var(--white); color: var(--black); }
.section.light p { color: #333; }
.section h2 { margin-bottom: 24px; }
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; }
.prose h3 { margin-top: 1.6em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .photo { min-height: 420px; }
.split.top { align-items: start; }
.split .headshot { max-width: 380px; }
.pull { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; border-left: 4px solid var(--gold); padding-left: 24px; margin: 0; }

/* Feature rows (Why page) */
.features { display: grid; gap: 0; }
.feature { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 40px 0; border-top: 1px solid #222; }
.section.light .feature { border-top-color: #e2e2e2; }
.feature .n { font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--gold); }
.feature h3 { margin-bottom: 8px; }
.feature ul { margin: 10px 0 0; padding-left: 20px; }
.feature li { margin-bottom: 6px; }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 18px 16px; border-bottom: 1px solid #e2e2e2; vertical-align: top; }
.compare thead th { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-600); }
.compare td:first-child { font-weight: 600; width: 24%; }
.compare td:last-child { font-weight: 500; }
.compare-wrap { overflow-x: auto; }

/* Timeline (Meet Richard) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid #333; }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.timeline .when { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-300); }
.timeline h4 { margin: 4px 0 6px; font-size: 1.2rem; }
.timeline p { margin: 0; color: #dcdcdc; }
.video { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.video .play { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--white); display: grid; place-items: center; }
.video .play::after { content: ""; border-left: 22px solid var(--white); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.office { background: #0e0e0e; border: 1px solid #222; display: flex; flex-direction: column; }
.office .photo { height: 190px; }
.office .body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.office h3 { margin: 0; }
.office .area { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-300); }
.office address { font-style: normal; color: #e6e6e6; }
.office .links { margin-top: auto; padding-top: 14px; display: flex; gap: 18px; font-size: .92rem; }
.office .links a { color: var(--white); }
.map-wrap { margin-top: 56px; aspect-ratio: 16 / 7; background: #111; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid #e2e2e2; }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-size: 1.15rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 1.8rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.faq .a { padding: 0 0 24px; }
.faq .a p { margin-bottom: .8em; }
.faq-group { margin-top: 56px; }
.faq-group:first-child { margin-top: 0; }
.faq-group > h3 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 4px; }

/* 404 */
.notfound { min-height: calc(100vh - 84px - 200px); display: grid; place-items: center; text-align: center; padding: 80px 0; }

/* Responsive */
@media (max-width: 1060px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--black); flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--gutter); display: none; overflow-y: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 18px 0; font-size: 1.25rem; border-bottom: 1px solid #1c1c1c; }
  .nav .btn { margin-top: 24px; text-align: center; }
}
@media (max-width: 960px) {
  .hero .wrap, .life .wrap, .split { grid-template-columns: 1fr; }
  .hero .bio { margin: 0 auto; }
  .cards, .pillars .grid { grid-template-columns: repeat(2, 1fr); }
  .cornered .grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header .wrap { height: 72px; }
  .nav { top: 72px; }
  .brand .name { font-size: 1.05rem; }
  .brand .logo { height: 46px; }
  .hero { min-height: auto; padding: 56px 0; }
  .checks li { font-size: 1.1rem; }
  .stats .grid, .cards, .pillars .grid, .form { grid-template-columns: 1fr; }
  .life, .pillars, .testimonials, .closing, .section, .cornered { padding: 70px 0; }
  .hero-copy p { font-size: 1.05rem; }
  .page-hero { padding: 72px 0 60px; }
  .cards { padding-bottom: 70px; }
  .feature { grid-template-columns: 1fr; gap: 8px; }
  .offices { grid-template-columns: 1fr; }
  .map-wrap { aspect-ratio: 4 / 5; }
}
