@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Minimalistic white theme for rockfieldrealty */
:root{
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #6f6f6f;
  --accent: #111111;
  --overlay-dark: rgba(6,6,6,0.46);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  /* Classy serif stack to avoid relying on the browser default */
  font-family: 'Inter', sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Video background */
.video-wrap{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
}
.video-wrap video{
  position:absolute;
  left:50%;
  top:50%;
  min-width:100%;
  min-height:100%;
  width:auto;
  height:auto;
  transform:translate(-50%,-50%);
  object-fit:cover;
  filter:grayscale(0.3) contrast(0.95) brightness(0.8) saturate(0.7);
  opacity:0.95;
  will-change:transform,opacity;
}
.video-wrap .video-fallback{
  position:absolute; inset:0; background:linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%); opacity:0; transition:opacity .3s ease; }

/* subtle white overlay to create an engraved look */
.video-wrap::after{
  /* dark, subtle engraved overlay */
  content:""; position:absolute; inset:0; background:rgba(0,0,0,0.25); pointer-events:none;
}

.site-header{
  position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px; max-width:1200px; margin:0 auto; border-bottom:1px solid rgba(0,0,0,0.06);
  background:rgba(255,255,255,0.8); backdrop-filter:saturate(180%) blur(10px);
}
.brand{font-weight:700; letter-spacing:0.06em; text-transform:lowercase; color:var(--accent); font-size:1rem}
.brand a{color:inherit; text-decoration:none}
.nav{display:flex; gap:16px}
.nav a{color:#0b0b0b; text-decoration:none; font-size:0.95rem; padding:8px 10px; border-radius:8px; transition:background .2s ease, color .2s ease}
.nav a:hover{background:rgba(0,0,0,0.06)}

.hero{
  min-height:78vh; display:flex; align-items:center; justify-content:center; text-align:center; position:relative; z-index:2; padding:28px 20px; background:transparent;
}
.hero-inner{max-width:820px}
.hero-title{
  font-size:clamp(2.2rem, 7.5vw, 4rem);
  margin:0 0 14px 0;
  line-height:1; color:#ffffff;
  -webkit-font-smoothing:antialiased;
}
.hero .lead{color:rgba(255,255,255,0.84)}

/* Buttons */
.btn{display:inline-block; padding:10px 18px; border-radius:10px; text-decoration:none; font-weight:600; transition:transform .16s ease, box-shadow .16s ease}
.btn.primary{background:rgba(255,255,255,0.96); color:#0b0b0b; box-shadow:0 4px 14px rgba(0,0,0,0.1); border:none}
.btn.primary:hover{transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,0.1)}
.btn.outline{border:1px solid rgba(0,0,0,0.08); color:var(--text); background:transparent}

.hero-cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}

.site-footer{position:relative; z-index:3; text-align:center; padding:28px 0; color:var(--accent); background:#ffffff; border-top:1px solid rgba(0,0,0,0.06)}

/* Content sections */
.content-section{position:relative; z-index:3; padding:72px 20px; background:var(--bg); color:var(--text); border-top:1px solid rgba(0,0,0,0.06)}
.content-section.muted{background:var(--bg); color:var(--text)}

/* Dark text and card styles when used on white (muted) sections */
.content-section.muted .section-title{color:var(--accent)}
.content-section.muted .lead{color:var(--muted)}
.content-section.muted .about-card{background:#fff; color:var(--text); box-shadow:0 6px 18px rgba(10,10,10,0.06); border:1px solid rgba(15,15,15,0.04)}
.content-section.muted .about-card p{color:var(--muted)}
.content-section.muted .policy h4{color:var(--accent)}
.content-section.muted .policy p{color:var(--muted)}
.content-section.muted a{color:var(--accent); text-decoration:underline; text-underline-offset:3px}
.container{max-width:1100px; margin:0 auto}
.container.narrow{max-width:820px}
.section-title{font-size:1.25rem; margin:0 0 8px 0; color:var(--accent); text-transform:uppercase; letter-spacing:0.12em}
.lead{margin:0 0 28px 0; color:var(--muted); font-size:1.02rem}

/* Cards with media */
.card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.card{background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:14px; overflow:hidden; box-shadow:0 6px 18px rgba(10,10,10,0.06)}
.card .media{aspect-ratio:16/9; background:#f3f3f3; border-bottom:1px solid rgba(0,0,0,0.06); display:flex; align-items:center; justify-content:center; color:#777}
.card .media img{width:100%; height:100%; object-fit:cover; display:block}
.card .body{padding:14px}
.card .title{margin:0 0 4px 0; font-size:1rem; color:var(--accent)}
.card .meta{margin:0; color:var(--muted); font-size:0.94rem}
.card:hover{transform:translateY(-2px); box-shadow:0 10px 22px rgba(10,10,10,0.08)}

.about-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.about-card{background:#fff; padding:22px; border-radius:12px; box-shadow:0 6px 18px rgba(10,10,10,0.06); color:var(--text)}
.about-card h3{margin:0 0 8px 0; font-size:1.02rem}
.about-card p{margin:0; color:var(--muted); font-size:0.98rem}

.policy h4{margin:18px 0 6px 0; color:var(--accent)}
.policy p{margin:0 0 6px 0; color:var(--muted); line-height:1.52}

/* policy uses static headings and paragraphs (no accordion) */
.policy-item, .policy-content, .policy-item button {display:block}

.content-section, .about-card{opacity:1; transform:none}

@media (max-width:920px){
  .about-grid{grid-template-columns:repeat(2,1fr)}
  .card-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .about-grid{grid-template-columns:1fr}
  .card-grid{grid-template-columns:1fr}
  .content-section{padding:48px 16px}
}

/* Partnerships */
.partners-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; align-items:center; margin-top:18px}
.partner{display:flex; align-items:center; justify-content:center}

/* Co-founder */
.cofounder{display:flex; gap:24px; align-items:center}
.cofounder.alt{flex-direction:row-reverse}
.cofounder .avatar{flex:0 0 auto; width:140px; height:140px; border-radius:50%; object-fit:cover; background:#efefef; border:1px solid rgba(0,0,0,0.06)}
.cofounder-copy h3{margin:0 0 6px 0}
.cofounder-copy .muted-p{margin:0; color:var(--muted)}

/* About page text alignment */
.about-page .lead,
.about-page p{
  text-align: justify;
}

/* Returns placeholder */
.returns-box{background:rgba(255,255,255,0.02); padding:18px; border-radius:10px; max-width:560px}
.returns-box .row{display:flex; justify-content:space-between; align-items:center; padding:8px 0}
.returns-box label{color:var(--muted)}
.returns-box .field{font-weight:600}

/* Why us list */
.why-list{margin-top:10px; color:var(--muted); line-height:1.6}

@media (max-width:920px){
  .partners-grid{grid-template-columns:repeat(2,1fr)}
  .cofounder .avatar{width:112px; height:112px}
}
@media (max-width:640px){
  .partners-grid{grid-template-columns:1fr}
  .cofounder, .cofounder.alt{flex-direction:column !important; align-items:center; gap:12px}
  .cofounder .avatar{display:block; margin:0 auto 12px}
  .cofounder-copy{width:100%; max-width:680px; margin:0 auto; text-align:unset}
  .cofounder-copy h3{text-align:center}
  .cofounder .avatar{width:96px; height:96px}
  .cofounder-copy .muted-p + .muted-p{margin-top:10px}
}

/* Responsive tweaks */
@media (max-width:720px){
  .site-header{
    flex-direction: column;
    padding: 16px;
  }
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  .hero{
    min-height: auto;
    padding: 48px 20px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
  .card-grid{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr}
  .partners-grid{grid-template-columns:1fr}
  .cofounder{
    flex-direction:column;
    align-items:flex-start
  }
}

/* Preloader */
.preloader{position:fixed; inset:0; background:#ffffff; z-index:9999; display:grid; place-items:center; transition:opacity .3s ease, visibility 0s linear .3s}
.preloader.hide{opacity:0; visibility:hidden}
.spinner{width:36px; height:36px; border-radius:50%; border:3px solid rgba(0,0,0,0.1); border-top-color:rgba(0,0,0,0.6); animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Join Form */
.join-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.join-form.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #f9f9f9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.success-message {
  margin-top: 24px;
  padding: 16px;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.success-message.is-visible {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* Modal */
.modal {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.is-visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 700px;
  border-radius: 12px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.is-visible .modal-content {
    transform: translateY(0);
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
