/* ═══════════════════════════════════════════════
   Ribble House — Office Space Preston
   styles.css
   ═══════════════════════════════════════════════ */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}

:root {
  --navy:    #0D1B3E;
  --navy-2:  #162248;
  --navy-3:  #1E2F5C;
  --blue:    #1A56DB;
  --blue-lt: #3B82F6;
  --white:   #FFFFFF;
  --off:     #F4F6FB;
  --grey:    #E8ECF4;
  --grey-2:  #C8D0E0;
  --ink:     #0A0F1E;
  --muted:   #6B7A99;
  --accent:  #E8F0FF;
}

html { scroll-behavior: smooth; }
body { font-family: "DM Sans", sans-serif; background: var(--white); color: var(--ink); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 48px; height: 64px;
  background: rgba(13,27,62,0.97);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--blue-lt); }
.nav-logo-img {
  height: 28px; width: auto; object-fit: contain;
  filter: invert(1) brightness(2);
}
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6);
  text-decoration: none; letter-spacing: 0.01em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue) !important; color: var(--white) !important;
  padding: 9px 20px; border-radius: 4px; font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-lt) !important; }
.nav-parent {
  font-size: 11px !important; color: rgba(255,255,255,0.3) !important;
  border-right: 1px solid rgba(255,255,255,0.1); padding-right: 20px; margin-right: -12px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 64px;
}
.hero-left {
  background: var(--navy); padding: 80px 60px 80px 60px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-left::before {
  content: "RH"; position: absolute; right: -20px; bottom: -40px;
  font-size: 280px; font-weight: 700; color: rgba(255,255,255,0.03);
  line-height: 1; pointer-events: none; user-select: none;
  letter-spacing: -0.05em;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--white);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 2px;
  margin-bottom: 36px; width: fit-content;
}
.hero-logo {
  height: 60px; width: auto; object-fit: contain;
  filter: invert(1) brightness(2);
  margin-bottom: 28px;
}
.hero-tag::before { content: "●"; font-size: 7px; opacity: 0.7; }
.hero-h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(48px, 6vw, 80px); line-height: 1.05;
  color: var(--white); margin-bottom: 28px; letter-spacing: -0.02em;
}
.hero-h1 em { font-style: italic; color: var(--blue-lt); }
.hero-body {
  font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.6);
  max-width: 420px; margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 14px 28px; border-radius: 4px; text-decoration: none;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--blue-lt); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 500; padding: 13px 24px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 4px;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* Stats row at hero bottom */
.hero-stats {
  display: flex; gap: 0; margin-top: 64px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat { flex: 1; padding-right: 24px; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.1); padding-left: 24px; }
.hero-stat-n {
  font-family: "DM Serif Display", serif; font-size: 38px;
  color: var(--white); line-height: 1;
}
.hero-stat-l { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; letter-spacing: 0.03em; }

/* Hero right — photo */
.hero-right { position: relative; overflow: hidden; }
.hero-right-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; filter: brightness(0.85);
}
.hero-right-badge {
  position: absolute; bottom: 40px; left: -1px;
  background: var(--blue); color: var(--white);
  padding: 20px 28px 20px 32px;
  border-left: 4px solid var(--white);
}
.hero-right-badge-title { font-size: 22px; font-weight: 700; line-height: 1; }
.hero-right-badge-sub { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ── AVAILABILITY BAND ── */
.avail {
  background: var(--off); border-top: 3px solid var(--blue);
  display: grid; grid-template-columns: auto 1fr 1fr auto;
  align-items: stretch;
}
.avail-label {
  background: var(--navy); color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0 32px;
  display: flex; align-items: center; writing-mode: unset;
}
.avail-suite {
  padding: 28px 40px; border-right: 1px solid var(--grey);
  display: flex; align-items: center; gap: 28px;
}
.avail-suite-num {
  font-family: "DM Serif Display", serif;
  font-size: 46px; color: var(--navy); line-height: 1; white-space: nowrap;
}
.avail-suite-info {}
.avail-suite-name { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.avail-suite-price { font-size: 13px; color: var(--muted); margin-top: 2px; }
.avail-cta {
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 0 40px; font-size: 13px; font-weight: 600;
  text-decoration: none; gap: 8px; transition: background 0.2s;
  white-space: nowrap;
}
.avail-cta:hover { background: var(--blue); }
.avail-cta::after { content: "→"; }

/* ── SECTION HEADER ── */
.sh { padding: 72px 60px 0; }
.sh-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.sh-h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(34px, 4vw, 54px); color: var(--navy);
  line-height: 1.1; letter-spacing: -0.02em;
}
.sh-h2 em { font-style: italic; }

/* ── ABOUT ── */
.about { padding: 72px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-body { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 24px 0 32px; }
.about-checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.about-checklist li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.about-checklist li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--blue);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%231A56DB' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.about-img { position: relative; }
.about-img img { width: 100%; height: 380px; object-fit: cover; object-position: center; display: block; }
.about-img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,27,62,0.85), transparent);
  padding: 32px 24px 20px; color: white;
  font-size: 13px; font-weight: 500;
}

/* ── SPACES ── */
.spaces { background: #F5F1EC; padding: 72px 60px; }
.spaces .sh-eyebrow { color: #8B7355; }
.spaces .sh-h2 { color: var(--navy); margin-bottom: 48px; }
.spaces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.space-card {
  background: #FAF8F5; padding: 48px 44px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(139,115,85,0.15);
  transition: border-color 0.3s;
}
.space-card:hover { border-color: rgba(139,115,85,0.35); }
.space-watermark {
  position: absolute; top: -10px; right: 20px;
  font-family: "DM Serif Display", serif;
  font-size: 160px; line-height: 1; color: rgba(139,115,85,0.07);
  pointer-events: none; user-select: none;
}
.space-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8B7355; margin-bottom: 12px;
}
.space-name {
  font-family: "DM Serif Display", serif;
  font-size: 32px; color: var(--navy); line-height: 1.1; margin-bottom: 6px;
}
.space-size {
  font-family: "DM Serif Display", serif;
  font-size: 15px; font-style: italic; color: #8B7355; margin-bottom: 28px;
}
.space-divider { width: 40px; height: 2px; background: rgba(139,115,85,0.25); margin-bottom: 28px; }
.space-price {
  font-family: "DM Serif Display", serif;
  font-size: 28px; color: var(--navy); line-height: 1; margin-bottom: 4px;
}
.space-price-sub { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.space-features { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 36px; }
.space-features li {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: #5A5A5A; padding: 11px 0;
  border-bottom: 1px solid rgba(139,115,85,0.1);
}
.space-features li::before {
  content: "—"; color: #8B7355; font-size: 12px; flex-shrink: 0;
}
.space-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
  text-decoration: none; transition: color 0.2s;
  border-bottom: 1.5px solid var(--navy); padding-bottom: 2px;
}
.space-link:hover { color: #8B7355; border-color: #8B7355; }
.space-link::after { content: "→"; }

/* ── TENANTS ── */
.tenants { background: var(--white); padding: 72px 60px; }
.tenants .sh-h2 { margin-bottom: 48px; }
.tenants-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.tenant-card {
  background: var(--off); padding: 32px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  border-bottom: 3px solid transparent; transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.tenant-card:hover { border-color: var(--blue); background: var(--accent); }
.tenant-logo {
  width: auto; height: 40px; max-width: 160px;
  object-fit: contain; margin-bottom: 8px;
}
.tenant-suite {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); 
}
.tenant-name {
  font-family: "DM Serif Display", serif;
  font-size: 20px; color: var(--navy); line-height: 1.2;
}
.tenant-url {
  font-size: 12px; color: var(--muted); transition: color 0.2s;
}
.tenant-card:hover .tenant-url { color: var(--blue); }

/* ── FEATURES ── */
.features { padding: 72px 60px; background: var(--white); }
.features .sh-h2 { margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.feat {
  background: var(--off); padding: 32px 28px;
  border-bottom: 3px solid transparent; transition: border-color 0.2s, background 0.2s;
}
.feat:hover { border-color: var(--blue); background: var(--accent); }
.feat-icon {
  width: 40px; height: 40px; background: var(--navy); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.feat-icon svg { width: 20px; height: 20px; }
.feat-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feat-desc { font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ── PARTNER SECTION ── */
.partner-section {
  background: var(--navy);
}
.partner-header {
  padding: 60px 60px 40px;
  display: flex; align-items: center; justify-content: center; gap: 48px;
}
.partner-left {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  text-align: right;
}
.partner-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-lt);
}
.partner-headline {
  font-family: "DM Serif Display", serif;
  font-size: 28px; color: var(--white); line-height: 1.2;
}
.partner-headline em { font-style: italic; color: var(--blue-lt); }
.partner-divider {
  width: 1px; height: 80px; background: rgba(255,255,255,0.15);
}
.partner-right {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.partner-link { display: flex; align-items: center; text-decoration: none; }
.partner-logo {
  height: 80px; width: auto; object-fit: contain;
  background: var(--white); padding: 14px 28px; border-radius: 6px;
  transition: opacity 0.2s;
}
.partner-link:hover .partner-logo { opacity: 0.8; }
.partner-desc {
  font-size: 15px; color: rgba(255,255,255,0.6); font-weight: 400;
  max-width: 320px; line-height: 1.6;
}
.partner-cta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white);
  text-decoration: none; border-bottom: 1.5px solid var(--blue-lt);
  padding-bottom: 2px; transition: color 0.2s;
}
.partner-cta:hover { color: var(--blue-lt); }
.partner-cta::after { content: " →"; }

/* Partner services grid */
.partner-services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 60px 0;
  padding-bottom: 0;
}
.partner-service {
  background: var(--navy-2); padding: 28px 24px; text-align: center;
  border-bottom: 3px solid transparent; transition: border-color 0.2s;
}
.partner-service:hover { border-color: var(--blue-lt); }
.ps-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-lt); margin-bottom: 10px;
}
.ps-title {
  font-family: "DM Serif Display", serif;
  font-size: 17px; color: var(--white); line-height: 1.3;
}
.partner-section::after {
  content: ""; display: block; height: 40px; background: var(--navy);
}

/* ── PHOTOS ── */
.photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3px; }
.photos img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.5s; }
.photos div { overflow: hidden; }
.photos div:hover img { transform: scale(1.04); }

/* ── LOCATION ── */
.location { padding: 72px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.location-facts { display: flex; flex-direction: column; margin-top: 32px; }
.location-fact {
  display: flex; align-items: baseline; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--grey);
}
.location-fact:first-child { border-top: 1px solid var(--grey); }
.lf-dist {
  font-family: "DM Serif Display", serif; font-size: 28px;
  color: var(--blue); min-width: 72px; line-height: 1;
}
.lf-place { font-size: 14px; color: var(--muted); line-height: 1.4; }
.location-address {
  background: var(--navy); color: white; padding: 40px;
  display: flex; flex-direction: column; gap: 24px;
}
.location-address h3 { font-family: "DM Serif Display", serif; font-size: 26px; }
.location-address p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.location-map-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: white; padding: 12px 20px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  border-radius: 3px; width: fit-content; transition: background 0.2s;
}
.location-map-btn:hover { background: var(--blue-lt); }

/* ── CONTACT ── */
.contact { background: var(--off); padding: 72px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-left h2 {
  font-family: "DM Serif Display", serif; font-size: clamp(32px,3.5vw,50px);
  color: var(--navy); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px;
}
.contact-left p { font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 32px; }
.contact-detail { display: flex; flex-direction: column; gap: 0; }
.cd-row {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--grey); align-items: baseline;
}
.cd-row:first-child { border-top: 1px solid var(--grey); }
.cd-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); min-width: 80px; }
.cd-val { font-size: 15px; color: var(--navy); text-decoration: none; font-weight: 500; }
a.cd-val:hover { color: var(--blue); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.fg input, .fg textarea, .fg select {
  background: white; border: 1.5px solid var(--grey-2);
  color: var(--ink); padding: 12px 14px; font-family: "DM Sans", sans-serif;
  font-size: 14px; outline: none; border-radius: 3px;
  transition: border-color 0.2s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--blue); }
.fg textarea { min-height: 90px; resize: vertical; }
.btn-submit {
  background: var(--navy); color: white; border: none;
  font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 15px;
  cursor: pointer; border-radius: 3px; transition: background 0.2s;
}
.btn-submit:hover { background: var(--blue); }

/* ── FOOTER ── */
.footer-band {
  background: var(--navy-3); padding: 14px 48px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.05em;
}
.footer-band a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-band a:hover { color: white; }
footer {
  background: var(--navy); padding: 32px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { text-decoration: none; display: flex; align-items: center; }
.footer-logo-img {
  height: 32px; width: auto; object-fit: contain;
  filter: invert(1) brightness(2);
}
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.hero-logo   { animation: fadeUp 0.5s 0.05s both; }
.hero-tag    { animation: fadeUp 0.6s 0.1s both; }
.hero-h1     { animation: fadeUp 0.7s 0.25s both; }
.hero-body   { animation: fadeUp 0.6s 0.4s both; }
.hero-actions{ animation: fadeUp 0.6s 0.5s both; }
.hero-stats  { animation: fadeUp 0.6s 0.6s both; }
.hero-right  { animation: fadeUp 0.9s 0.15s both; }

/* ── RESPONSIVE ── */
@media(max-width:960px){
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 60px 24px; }
  .hero-right { min-height: 320px; }
  .avail { grid-template-columns: 1fr; }
  .avail-label { padding: 14px 24px; writing-mode: unset; }
  .about,.spaces-grid,.location,.contact { grid-template-columns:1fr; gap:40px; }
  .about,.features,.location,.contact,.spaces,.tenants { padding: 48px 24px; }
  .partner-header { flex-direction: column; padding: 40px 24px; gap: 28px; }
  .partner-left { align-items: center; text-align: center; }
  .partner-divider { width: 60px; height: 1px; }
  .partner-right { align-items: center; text-align: center; }
  .partner-desc { text-align: center; }
  .partner-services { grid-template-columns: 1fr 1fr; margin: 0 24px; }
  .partner-section::after { height: 24px; }
  .sh { padding: 48px 24px 0; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .tenants-grid { grid-template-columns: 1fr 1fr; }
  .photos { grid-template-columns: 1fr; }
  .photos img { height: 220px; }
}
