/* ==========================================================================
   Rent UK Property — header + hero
   --------------------------------------------------------------------------
   Everything is scoped under .ruk-* so it cannot leak into the Hello
   Elementor theme or any other Elementor section on the page.

   Load Familjen Grotesk, Instrument Sans and IBM Plex Mono either through
   Elementor > Site Settings > Global Fonts, or with this in your child
   theme's functions.php:

     wp_enqueue_style( 'ruk-fonts',
       'https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Instrument+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap',
       array(), null );

   ========================================================================== */

/* ============================================================
   RENT UK PROPERTY — header + hero
   All rules scoped under .ruk- prefixes so nothing leaks into
   the rest of the WordPress theme.
   ============================================================ */

.ruk{
  /* ---- palette ---- */
  --ruk-ink:#101511;
  --ruk-forest:#08411F;
  --ruk-forest-deep:#052D15;
  --ruk-forest-line:rgba(255,255,255,.16);
  --ruk-green:#0F7A38;
  --ruk-action:#12903F;
  --ruk-green-soft:#E9F1E9;
  --ruk-rose:#C8102E;
  --ruk-paper:#F4F6F2;
  --ruk-line:#DCE4DA;
  --ruk-muted:#5C6B5F;

  /* ---- type ---- */
  --ruk-display:"Familjen Grotesk","Helvetica Neue",Arial,sans-serif;
  --ruk-body:"Instrument Sans","Helvetica Neue",Arial,sans-serif;
  --ruk-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --ruk-max:1240px;
  --ruk-pad:clamp(20px,4vw,48px);

  font-family:var(--ruk-body);
  color:var(--ruk-ink);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
.ruk *,.ruk *::before,.ruk *::after{box-sizing:border-box;}
.ruk img{max-width:100%;display:block;}
.ruk a{color:inherit;text-decoration:none;}
.ruk button{font:inherit;color:inherit;border:0;cursor:pointer;background-color:transparent;}
.ruk .ruk-search-btn{background-color:var(--ruk-action);}
.ruk .ruk-search-btn:hover{background-color:#0B6E2E;}

.ruk-wrap{max-width:var(--ruk-max);margin:0 auto;padding-inline:var(--ruk-pad);width:100%;}

.ruk-eyebrow{
  font-family:var(--ruk-mono);
  font-size:11px;font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;
}

/* ============================================================
   1. UTILITY STRIP
   Tenants mostly arrive to report a repair or pay rent, and
   landlords arrive to ask about management. Those three jobs
   get their own row so they never compete with the search.
   ============================================================ */
.ruk-utility{
  background:var(--ruk-forest-deep);
  color:rgba(255,255,255,.82);
  font-size:13px;
}
.ruk-utility .ruk-wrap{
  display:flex;align-items:center;gap:28px;
  min-height:40px;flex-wrap:wrap;
}
.ruk-utility a{display:inline-flex;align-items:center;gap:7px;padding-block:9px;transition:color .18s;}
.ruk-utility a:hover{color:#fff;}
.ruk-utility svg{width:15px;height:15px;flex:none;opacity:.75;}
.ruk-utility-spacer{margin-left:auto;}
.ruk-utility-phone{
  font-family:var(--ruk-mono);font-weight:500;
  color:#fff;letter-spacing:.01em;
}

/* ============================================================
   2. MASTHEAD
   ============================================================ */
.ruk-masthead{
  background:#fff;
  border-bottom:1px solid var(--ruk-line);
  position:sticky;top:0;z-index:60;
}
.ruk-masthead .ruk-wrap{
  display:flex;align-items:center;gap:clamp(16px,3vw,40px);
  min-height:78px;
}

/* -- wordmark: a two-unit terrace gable, because terraced
      houses are literally what this agency lets -- */
.ruk-brand{display:flex;align-items:center;gap:12px;flex:none;}
.ruk-brand-mark{
  width:40px;height:40px;border-radius:9px;
  background:var(--ruk-forest);
  display:grid;place-items:center;flex:none;
}
.ruk-brand-mark svg{width:24px;height:24px;}
.ruk-brand-name{
  display:block;
  font-family:var(--ruk-display);
  font-weight:700;font-size:21px;letter-spacing:-.02em;
  color:var(--ruk-forest);line-height:1;
}
.ruk-brand-sub{
  display:block;
  font-family:var(--ruk-mono);font-size:9.5px;font-weight:500;
  letter-spacing:.28em;text-transform:uppercase;
  color:var(--ruk-muted);margin-top:5px;
}

.ruk-nav{display:flex;align-items:center;gap:clamp(10px,1.6vw,24px);margin-left:auto;}
.ruk-nav a{
  font-size:14.5px;font-weight:500;color:#2A352C;
  padding:8px 2px;position:relative;white-space:nowrap;
  transition:color .18s;
}
.ruk-nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:var(--ruk-green);transform:scaleX(0);transform-origin:left;
  transition:transform .22s ease;
}
.ruk-nav a:hover{color:var(--ruk-forest);}
.ruk-nav a:hover::after,.ruk-nav a[aria-current="page"]::after{transform:scaleX(1);}
.ruk-nav a[aria-current="page"]{color:var(--ruk-forest);font-weight:600;}

.ruk-head-actions{display:flex;align-items:center;gap:10px;flex:none;}
.ruk-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:600;font-size:14.5px;letter-spacing:-.005em;
  border-radius:6px;padding:12px 20px;
  transition:background .18s,color .18s,border-color .18s,transform .12s;
}
.ruk-btn:active{transform:translateY(1px);}
.ruk-btn-solid{background:var(--ruk-forest);color:#fff;}
.ruk-btn-solid:hover{background:var(--ruk-green);}
.ruk-btn-ghost{border:1.5px solid var(--ruk-line);color:var(--ruk-ink);}
.ruk-btn-ghost:hover{border-color:var(--ruk-forest);color:var(--ruk-forest);}

.ruk-burger{display:none;width:44px;height:44px;border-radius:8px;border:1.5px solid var(--ruk-line);}
.ruk-burger span{display:block;width:18px;height:1.8px;background:var(--ruk-ink);margin:3.6px auto;border-radius:2px;}

/* ============================================================
   3. HERO
   Dark ground, deliberately. The old hero put white type on a
   bright sky, which can never be made legible. A committed
   ground removes that failure permanently.
   ============================================================ */
.ruk-hero{
  background:var(--ruk-forest);
  color:#fff;
  position:relative;overflow:hidden;
  padding-block:clamp(44px,6vw,76px) 0;
}
/* faint contour wash — reads as land, not as a gradient blob */
.ruk-hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(35,140,72,.34), transparent 58%),
    radial-gradient(100% 80% at 0% 100%, rgba(3,32,15,.6), transparent 60%);
}
.ruk-hero .ruk-wrap{position:relative;z-index:1;}

.ruk-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(32px,5vw,72px);
  align-items:start;
}

.ruk-hero-eyebrow{
  color:#9FD5B0;
  display:flex;align-items:center;gap:12px;
  margin-bottom:20px;
}
.ruk-hero-eyebrow::after{
  content:"";flex:1;height:1px;background:var(--ruk-forest-line);max-width:120px;
}

.ruk-hero h1{
  font-family:var(--ruk-display);
  font-weight:700;
  font-size:clamp(2.35rem,4.5vw,4rem);
  line-height:.99;letter-spacing:-.032em;
  margin:0 0 20px;color:#fff;
  text-wrap:balance;
}
.ruk-hero h1 em{font-style:normal;color:#A7DCB9;white-space:nowrap;}

.ruk-hero-lede{
  font-size:clamp(15.5px,1.25vw,17.5px);
  line-height:1.6;color:rgba(255,255,255,.8);
  max-width:52ch;margin:0 0 30px;
}

/* -- the search instrument: the hero's real job -- */
.ruk-search{
  background:#fff;border-radius:8px;
  box-shadow:0 18px 40px -18px rgba(2,24,11,.6);
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr auto;
  overflow:hidden;
}
.ruk-field{
  padding:13px 16px 14px;
  border-right:1px solid var(--ruk-line);
  min-width:0;text-align:left;position:relative;
}
.ruk-field:focus-within{background:#FAFCF9;}
.ruk-field label{
  display:block;
  font-family:var(--ruk-mono);font-size:9.5px;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;color:var(--ruk-muted);
  margin-bottom:5px;
}
.ruk-field select,.ruk-field input{
  width:100%;border:0;outline:0;background:none;
  font-family:var(--ruk-body);font-size:15px;font-weight:500;
  color:var(--ruk-ink);
  appearance:none;-webkit-appearance:none;
  padding:0;cursor:pointer;
}
.ruk-field input{cursor:text;}
.ruk-field input::placeholder{color:#9AA79C;font-weight:400;}
.ruk-field.ruk-has-caret::after{
  content:"";position:absolute;right:15px;bottom:19px;
  width:7px;height:7px;border-right:1.6px solid var(--ruk-muted);
  border-bottom:1.6px solid var(--ruk-muted);
  transform:rotate(45deg);pointer-events:none;
}
.ruk-search-btn{
  color:#fff;
  padding:0 clamp(20px,2.2vw,30px);
  font-weight:600;font-size:15px;
  display:flex;align-items:center;gap:9px;
  transition:background .18s;
}
.ruk-search-btn:hover{background:var(--ruk-green);}
.ruk-search-btn svg{width:16px;height:16px;}

/* -- towns we actually let in, as one-tap shortcuts -- */
.ruk-towns{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin-top:18px;
}
.ruk-towns-label{
  font-family:var(--ruk-mono);font-size:10.5px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.5);margin-right:2px;
}
.ruk-town{
  font-family:var(--ruk-mono);font-size:11.5px;font-weight:500;
  padding:5px 9px;border-radius:4px;
  border:1px solid var(--ruk-forest-line);
  color:rgba(255,255,255,.86);
  transition:background .16s,border-color .16s,color .16s;
}
.ruk-town:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.34);color:#fff;}

/* -- trust row: only claims that are true on this site -- */
.ruk-trust{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(18px,3vw,40px);
  margin-top:clamp(36px,4.5vw,54px);
  padding-block:24px 0;
  border-top:1px solid var(--ruk-forest-line);
}
.ruk-trust-item{display:flex;gap:12px;align-items:flex-start;}
.ruk-trust-item svg{width:19px;height:19px;flex:none;color:#8CCBA0;margin-top:1px;}
.ruk-trust-item b{display:block;font-size:14.5px;font-weight:600;color:#fff;margin-bottom:3px;}
.ruk-trust-item span{display:block;font-size:13px;line-height:1.45;color:rgba(255,255,255,.62);}

/* -- landlord entry point: the other half of the business -- */
.ruk-landlord{
  display:flex;align-items:center;gap:14px;
  margin-top:clamp(28px,3.4vw,40px);
  padding:16px 18px;
  border:1px solid var(--ruk-forest-line);
  border-radius:8px;
  background:rgba(255,255,255,.045);
  transition:background .2s,border-color .2s;
}
.ruk-landlord:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.32);}
.ruk-landlord-mark{
  width:38px;height:38px;border-radius:7px;flex:none;
  display:grid;place-items:center;
  background:rgba(255,255,255,.1);color:#A7DCB9;
}
.ruk-landlord-mark svg{width:19px;height:19px;}
.ruk-landlord-text{min-width:0;}
.ruk-landlord-text b{display:block;font-size:14.5px;font-weight:600;color:#fff;letter-spacing:-.012em;}
.ruk-landlord-text span{display:block;font-size:13px;color:rgba(255,255,255,.62);margin-top:2px;}
.ruk-landlord-arrow{width:17px;height:17px;flex:none;margin-left:auto;color:#A7DCB9;transition:transform .2s;}
.ruk-landlord:hover .ruk-landlord-arrow{transform:translateX(4px);}
@media (max-width:560px){
  .ruk-landlord-arrow{display:none;}
  .ruk-landlord{padding:14px;}
}

/* ============================================================
   4. LIVE LISTING CARD
   Their differentiator is that the listings are real and current.
   So the hero shows one, rather than a stock photo of London.
   ============================================================ */
.ruk-showcase{position:relative;padding-top:6px;}
.ruk-showcase-head{
  display:flex;align-items:center;gap:9px;
  margin-bottom:14px;
  font-family:var(--ruk-mono);font-size:10.5px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.62);
}
.ruk-dot{
  width:7px;height:7px;border-radius:50%;background:#4ADE80;flex:none;
  box-shadow:0 0 0 0 rgba(74,222,128,.6);
  animation:ruk-pulse 2.6s ease-out infinite;
}
@keyframes ruk-pulse{
  0%{box-shadow:0 0 0 0 rgba(74,222,128,.55);}
  70%{box-shadow:0 0 0 8px rgba(74,222,128,0);}
  100%{box-shadow:0 0 0 0 rgba(74,222,128,0);}
}

.ruk-deck{position:relative;}
.ruk-deck-back{
  position:absolute;top:22px;left:26px;right:-14px;bottom:-14px;
  background:rgba(255,255,255,.1);
  border:1px solid var(--ruk-forest-line);
  border-radius:10px;
}
.ruk-card{
  position:relative;
  background:#fff;border-radius:10px;overflow:hidden;
  box-shadow:0 26px 54px -22px rgba(2,22,10,.72);
  color:var(--ruk-ink);
}
.ruk-card-media{position:relative;aspect-ratio:4/3;overflow:hidden;background:#E7EBE6;}
.ruk-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.ruk-card:hover .ruk-card-media img{transform:scale(1.035);}
.ruk-pill{
  position:absolute;top:12px;left:12px;
  display:inline-flex;align-items:center;gap:7px;
  background:rgba(8,65,31,.94);color:#fff;
  font-family:var(--ruk-mono);font-size:10.5px;font-weight:500;
  letter-spacing:.1em;text-transform:uppercase;
  padding:6px 10px;border-radius:4px;
  backdrop-filter:blur(4px);
}
.ruk-card-body{padding:18px 20px 20px;}
.ruk-card-postcode{
  font-family:var(--ruk-mono);font-size:11px;font-weight:500;
  letter-spacing:.12em;color:var(--ruk-muted);
  display:flex;align-items:center;gap:6px;margin-bottom:7px;
}
.ruk-card-postcode svg{width:12px;height:12px;flex:none;}
.ruk-card h3{
  font-family:var(--ruk-display);
  font-size:19px;font-weight:600;letter-spacing:-.018em;
  margin:0 0 10px;line-height:1.2;
}
.ruk-price{display:flex;align-items:baseline;gap:6px;margin-bottom:14px;}
.ruk-price b{
  font-family:var(--ruk-display);
  font-size:27px;font-weight:700;letter-spacing:-.028em;
  color:var(--ruk-rose);line-height:1;
}
.ruk-price span{
  font-family:var(--ruk-mono);font-size:11px;font-weight:500;
  letter-spacing:.14em;color:var(--ruk-muted);
}
.ruk-specs{
  display:flex;gap:14px;flex-wrap:wrap;
  padding-top:13px;border-top:1px solid var(--ruk-line);
  font-size:12.5px;color:var(--ruk-muted);
}
.ruk-specs span{display:inline-flex;align-items:center;gap:6px;}
.ruk-specs svg{width:14px;height:14px;color:var(--ruk-green);flex:none;}
.ruk-card-link{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:15px;padding-top:14px;border-top:1px solid var(--ruk-line);
  font-size:14px;font-weight:600;color:var(--ruk-forest);
}
.ruk-card-link svg{width:15px;height:15px;transition:transform .2s;}
.ruk-card:hover .ruk-card-link svg{transform:translateX(4px);}

.ruk-showcase-foot{
  margin-top:22px;
  font-family:var(--ruk-mono);font-size:11.5px;line-height:1.6;
  color:rgba(255,255,255,.55);
}
.ruk-showcase-foot a{color:#A7DCB9;border-bottom:1px solid rgba(167,220,185,.4);}

/* ============================================================
   5. ENTRANCE — one orchestrated sequence, not scattered effects
   ============================================================ */
.ruk-rise{opacity:0;transform:translateY(14px);animation:ruk-rise .68s cubic-bezier(.22,.7,.3,1) forwards;}
.ruk-d1{animation-delay:.04s;} .ruk-d2{animation-delay:.12s;}
.ruk-d3{animation-delay:.20s;} .ruk-d4{animation-delay:.28s;}
.ruk-d5{animation-delay:.36s;} .ruk-d6{animation-delay:.44s;}
@keyframes ruk-rise{to{opacity:1;transform:none;}}

@media (prefers-reduced-motion:reduce){
  .ruk-rise{animation:none;opacity:1;transform:none;}
  .ruk-dot{animation:none;}
  .ruk *{transition-duration:.01ms !important;}
}

/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .ruk-nav a{font-size:13.5px;}
  .ruk-btn{padding:11px 15px;font-size:13.5px;}
  .ruk-hero-grid{grid-template-columns:minmax(0,1fr);gap:44px;}
  .ruk-showcase{max-width:420px;}
}
@media (max-width:900px){
  .ruk-nav,.ruk-head-actions .ruk-btn-ghost{display:none;}
  .ruk-burger{display:block;margin-left:auto;order:9;}
  .ruk-head-actions{margin-left:auto;}
  .ruk-utility .ruk-wrap>a:not(.ruk-utility-phone){display:none;}
  .ruk-utility-spacer{margin-left:0;}
  .ruk-search{grid-template-columns:1fr 1fr;}
  .ruk-field:nth-child(1){grid-column:1 / -1;border-right:0;border-bottom:1px solid var(--ruk-line);}
  .ruk-field:nth-child(3){border-right:0;}
  .ruk-search-btn{grid-column:1 / -1;padding:15px;justify-content:center;border-top:1px solid var(--ruk-line);}
  .ruk-trust{grid-template-columns:1fr;gap:16px;}
}
@media (max-width:560px){
  .ruk-head-actions .ruk-btn-solid{display:none;}
  .ruk-masthead .ruk-wrap{min-height:66px;}
  .ruk-brand-mark{width:36px;height:36px;}
  .ruk-brand-name{font-size:18px;}
  .ruk-hero{padding-top:34px;}
  .ruk-hero-eyebrow{font-size:10px;letter-spacing:.13em;}
  .ruk-deck-back{display:none;}
  .ruk-showcase{max-width:none;}
}
