/* =========================================================
   ROCKFORT TRY CONSTRUCTION INFRASTRUCTURE
   RESIDENTIAL CONSTRUCTION PAGE (PREMIUM)
   Requires style.css (variables, header, footer, buttons)
========================================================= */

/* 1. SHARED PREMIUM HELPERS (same on every page) */
.btn-glass{color:#fff;background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.28);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.btn-glass:hover{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.55);transform:translateY(-2px)}
.btn-shine{position:relative;overflow:hidden}
.btn-shine::after{content:"";position:absolute;top:0;left:-80%;width:50%;height:100%;background:linear-gradient(105deg,transparent,rgba(255,255,255,.5),transparent);transform:skewX(-20deg);animation:shine 3.8s 1.5s infinite;pointer-events:none}
.hero-line{display:block;width:48px;height:2px;background:linear-gradient(90deg,var(--brick-red-light),#e8a096);transform-origin:left;animation:lineGrow .9s .2s cubic-bezier(.2,.7,.2,1) both}
.js-anim .reveal{opacity:0;transform:translateY(34px);transition:opacity .9s cubic-bezier(.2,.7,.2,1) var(--d,0s),transform .9s cubic-bezier(.2,.7,.2,1) var(--d,0s)}
.js-anim .reveal.in-view{opacity:1;transform:none}
.js-anim .residential-project.in-view{transition:opacity .9s ease,transform .4s ease,box-shadow .4s ease}

/* 2. HERO */
.residential-hero{position:relative;width:100%;min-height:760px;display:flex;align-items:center;overflow:hidden;background:#111 url("/images/hero/Hero-Residential.png") center/cover no-repeat}
.residential-hero-overlay{position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse at 15% 85%,rgba(158,47,37,.38),transparent 55%),linear-gradient(90deg,rgba(10,6,5,.90) 0%,rgba(10,6,5,.74) 32%,rgba(10,6,5,.42) 62%,rgba(10,6,5,.14) 100%)}
.residential-hero-grid{position:absolute;inset:0;z-index:1;opacity:.5;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:80px 80px;-webkit-mask-image:linear-gradient(90deg,#000,transparent 70%);mask-image:linear-gradient(90deg,#000,transparent 70%)}
.residential-hero-container{position:relative;z-index:2;min-height:760px;display:flex;align-items:center;padding-block:60px}
.residential-hero-content{max-width:700px;color:var(--white)}
.residential-hero-subtitle{display:flex;align-items:center;gap:14px;margin-bottom:22px;color:#f0c4be;font-size:.78rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase}
.residential-hero-content h1{color:var(--white);font-family:var(--font-display);font-size:clamp(42px,5.6vw,78px);line-height:1.05;font-weight:700;letter-spacing:-1px;margin-bottom:26px;text-wrap:balance}
.residential-hero-content h1 span{display:block;background:linear-gradient(95deg,#f3c0b8 0%,#e8a096 45%,#d96b60 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#e8a096;padding-bottom:.08em}
.residential-hero-description{max-width:600px;color:rgba(255,255,255,.88);font-size:18px;line-height:1.8;margin-bottom:38px}
.residential-hero-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.residential-hero-subtitle,.residential-hero-content h1,.residential-hero-description,.residential-hero-buttons{animation:riseIn .9s cubic-bezier(.2,.7,.2,1) both}
.residential-hero-subtitle{animation-delay:.15s}.residential-hero-content h1{animation-delay:.3s}.residential-hero-description{animation-delay:.5s}.residential-hero-buttons{animation-delay:.7s}

/* 3. INTRO + STATS */
.residential-intro{padding:100px 0;background:radial-gradient(circle at 100% 0,rgba(158,47,37,.06),transparent 45%),var(--white)}
.residential-intro .section-heading{max-width:850px;margin-bottom:55px}
.residential-intro .section-heading>p:last-child{max-width:760px}
.residential-intro-stats{display:grid;grid-template-columns:repeat(3,1fr);max-width:900px;background:linear-gradient(135deg,#2a1f1d 0%,#171717 100%);border-top:3px solid var(--brick-red);box-shadow:0 24px 60px rgba(20,8,6,.22)}
.residential-stat{min-height:145px;padding:30px 35px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid rgba(255,255,255,.08)}
.residential-stat:last-child{border-right:0}
.residential-stat strong{font-family:var(--font-display);font-size:46px;line-height:1;font-weight:700;margin-bottom:12px;background:linear-gradient(180deg,#fff,#e8a096);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#fff}
.residential-stat span:not([data-count]){color:#b7aaa6;font-size:14px;font-weight:600}

/* 4. PROJECTS */
.residential-projects-section{padding:100px 0;background:radial-gradient(circle at 0 100%,rgba(158,47,37,.08),transparent 45%),var(--off-white)}
.residential-projects-section .section-heading{max-width:750px;margin-bottom:65px}
.residential-projects-list{display:flex;flex-direction:column;gap:70px}
.residential-project{display:grid;grid-template-columns:1.15fr .85fr;min-height:470px;background:var(--white);border:1px solid var(--border);overflow:hidden;transition:transform .4s ease,box-shadow .4s ease,border-color .4s ease}
.residential-project:hover{transform:translateY(-6px);border-color:rgba(158,47,37,.25);box-shadow:0 26px 54px rgba(60,20,15,.14)}
.residential-project-reverse{grid-template-columns:.85fr 1.15fr}
.residential-project-reverse .residential-project-image{order:2}
.residential-project-reverse .residential-project-content{order:1}
.residential-project-image{position:relative;min-height:470px;overflow:hidden;background:#333}
.residential-project-image::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(158,47,37,.0),rgba(70,16,12,.35));opacity:0;transition:opacity .5s ease}
.residential-project:hover .residential-project-image::after{opacity:1}
.residential-project-image img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.residential-project:hover .residential-project-image img{transform:scale(1.07)}
.residential-project-content{position:relative;padding:55px 50px;display:flex;flex-direction:column;justify-content:center}
.residential-project-content::before{content:"";position:absolute;top:0;left:0;width:100%;height:3px;background:linear-gradient(90deg,var(--brick-red),#d96b60);transform:scaleX(0);transform-origin:left;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.residential-project:hover .residential-project-content::before{transform:scaleX(1)}
.project-number{align-self:flex-start;margin-bottom:18px;padding:6px 12px;background:linear-gradient(135deg,var(--brick-red-light),var(--brick-red-dark));color:#fff;font-size:12px;font-weight:800;letter-spacing:2px;box-shadow:0 8px 18px rgba(158,47,37,.28)}
.project-category{color:var(--gray);font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;margin-bottom:12px}
.residential-project-content h3{color:var(--dark);font-family:var(--font-display);font-size:clamp(26px,3vw,36px);line-height:1.2;margin-bottom:18px}
.project-location{display:flex;align-items:center;gap:8px;color:var(--brick-red);font-size:14px;font-weight:700;margin-bottom:22px}
.project-description{max-width:500px;color:var(--gray);font-size:15px;line-height:1.85}

/* 5. OUR APPROACH */
.residential-capability{padding:100px 0;background:var(--white)}
.residential-capability-content{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}
.residential-approach-heading{max-width:600px}
.residential-approach-heading h2{color:var(--dark);font-family:var(--font-display);font-size:clamp(32px,4vw,48px);line-height:1.18;margin:0}
.residential-approach-description{max-width:560px;padding-left:28px;border-left:3px solid var(--brick-soft)}
.residential-approach-description p{color:var(--gray);font-size:17px;line-height:1.9;margin:0}

/* 6. CATALOG + QR */
.catalog-section{padding:100px 0;background:linear-gradient(180deg,#fff 0%,#f8f6f5 100%)}
.catalog-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:28px;align-items:stretch}
.catalog-card{position:relative;overflow:hidden;padding:48px 44px;color:#fff;display:flex;flex-direction:column;align-items:flex-start;background:radial-gradient(circle at 100% 0,rgba(217,107,96,.45),transparent 55%),linear-gradient(135deg,#9e2f25 0%,#5e1913 100%);box-shadow:0 24px 54px rgba(94,25,19,.30)}
.catalog-card::after{content:"";position:absolute;right:-60px;bottom:-60px;width:220px;height:220px;border:30px solid rgba(255,255,255,.06);border-radius:50%}
.catalog-icon{width:58px;height:58px;display:flex;align-items:center;justify-content:center;margin-bottom:24px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);font-size:24px}
.catalog-card .section-label{color:#f3c0b8}
.catalog-card .section-label::before{background:#f3c0b8}
.catalog-card h2{font-family:var(--font-display);font-size:clamp(28px,3.4vw,38px);line-height:1.2;margin-bottom:14px}
.catalog-card>p:not(.section-label){color:rgba(255,255,255,.86);font-size:16px;line-height:1.75;margin-bottom:30px;max-width:460px}
.catalog-card .btn-primary{background:#fff;color:var(--brick-red-dark);border-color:#fff;position:relative;z-index:1}
.catalog-card .btn-primary:hover{background:#f5e5e3;border-color:#f5e5e3}
.qr-card{display:flex;align-items:center;gap:32px;padding:40px;background:#fff;border:1px solid var(--border);box-shadow:0 18px 44px rgba(0,0,0,.07);transition:box-shadow .3s ease,transform .3s ease}
.qr-card:hover{transform:translateY(-5px);box-shadow:0 26px 54px rgba(60,20,15,.13)}
.qr-frame{position:relative;flex-shrink:0;width:200px;height:200px;padding:12px;background:#fff;border:1px solid var(--border)}
.qr-frame::before,.qr-frame::after{content:"";position:absolute;width:26px;height:26px;border:3px solid var(--brick-red);transition:transform .4s ease}
.qr-frame::before{top:-6px;left:-6px;border-right:0;border-bottom:0}
.qr-frame::after{bottom:-6px;right:-6px;border-left:0;border-top:0}
.qr-card:hover .qr-frame::before{transform:translate(-4px,-4px)}
.qr-card:hover .qr-frame::after{transform:translate(4px,4px)}
.qr-frame img{width:100%;height:100%;object-fit:contain}
.qr-text h3{color:var(--dark);font-family:var(--font-display);font-size:22px;line-height:1.3;margin-bottom:10px}
.qr-text p:not(.section-label){color:var(--gray);font-size:15px;line-height:1.7;margin-bottom:8px}

/* 7. CTA (self-contained: this page does not load index.css) */
.cta-section{position:relative;overflow:hidden;padding:80px 0;background:radial-gradient(circle at 85% 50%,rgba(158,47,37,.45),transparent 50%),linear-gradient(135deg,#1e1715 0%,#121212 100%)}
.cta-section::before{content:"";position:absolute;top:-160px;right:-120px;width:420px;height:420px;border-radius:50%;border:1px solid rgba(217,107,96,.35);animation:slowSpin 40s linear infinite}
.residential-cta .cta-container{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:60px}
.residential-cta .cta-content{flex:1;max-width:750px}
.cta-content .section-label{color:#e8a096}
.cta-content .section-label::before{background:#e8a096}
.cta-content h2{color:var(--white);font-family:var(--font-display);font-size:clamp(30px,4vw,44px);line-height:1.2;margin-bottom:15px}
.cta-content>p:last-child{color:#c4b8b4;font-size:16px;line-height:1.7}
.residential-cta .cta-button{flex-shrink:0;display:flex;align-items:center;justify-content:center}
.residential-cta .cta-button .btn{white-space:nowrap}

/* 8. KEYFRAMES */
@keyframes riseIn{from{opacity:0;transform:translateY(32px)}to{opacity:1;transform:none}}
@keyframes lineGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes shine{0%,60%{left:-80%}100%{left:140%}}
@keyframes slowSpin{to{transform:rotate(360deg)}}

/* 9. RESPONSIVE */
@media (min-width:1400px){
  .residential-hero,.residential-hero-container{min-height:820px}
  .residential-project,.residential-project-image{min-height:500px}
  .residential-capability-content{gap:110px}
}
@media (max-width:1100px){
  .residential-project,.residential-project-reverse{grid-template-columns:1fr 1fr}
  .residential-project-content{padding:45px 35px}
  .residential-project-image{min-height:400px}
  .residential-project-reverse .residential-project-image{order:1}
  .residential-project-reverse .residential-project-content{order:2}
  .residential-capability-content{gap:50px}
  .residential-cta .cta-container{gap:40px}
  .catalog-grid{grid-template-columns:1fr}
}
@media (max-width:768px){
  .residential-hero{min-height:660px}.residential-hero-container{min-height:660px}
  .residential-hero-content{max-width:100%}
  .residential-hero-subtitle{font-size:.68rem;letter-spacing:.16em}
  .residential-hero-content h1{font-size:46px;letter-spacing:-.5px}
  .residential-hero-description{font-size:16px;line-height:1.7}
  .residential-hero-buttons{flex-direction:column;align-items:stretch;width:100%;max-width:300px}
  .residential-hero-buttons .btn{width:100%}
  .residential-intro,.residential-projects-section,.catalog-section{padding:80px 0}
  .residential-intro .section-heading{margin-bottom:45px}
  .residential-intro-stats{grid-template-columns:1fr;max-width:100%}
  .residential-stat{min-height:auto;padding:25px;border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}
  .residential-stat:last-child{border-bottom:0}
  .residential-stat strong{font-size:38px}
  .residential-projects-section .section-heading{margin-bottom:45px}
  .residential-projects-list{gap:45px}
  .residential-project,.residential-project-reverse{display:flex;flex-direction:column;min-height:auto}
  .residential-project-image,.residential-project-reverse .residential-project-image{order:1;width:100%;min-height:300px;height:300px}
  .residential-project-content,.residential-project-reverse .residential-project-content{order:2;padding:35px 28px 40px}
  .residential-project-content h3{font-size:28px}
  .project-description{font-size:14px;line-height:1.8}
  .residential-capability{padding:75px 0}
  .residential-capability-content{grid-template-columns:1fr;gap:30px}
  .residential-approach-heading h2{font-size:34px}
  .residential-approach-description{padding-left:18px}
  .residential-approach-description p{font-size:15px;line-height:1.8}
  .qr-card{flex-direction:column;text-align:center;padding:34px 26px}
  .qr-text .section-label{justify-content:center}
  .catalog-card{padding:38px 28px}
  .residential-cta .cta-container{flex-direction:column;align-items:flex-start;gap:30px}
  .residential-cta .cta-content{width:100%;max-width:100%}
  .residential-cta .cta-button{width:100%;justify-content:flex-start}
  .residential-cta .cta-button .btn{width:auto;min-width:160px}
}
@media (max-width:480px){
  .residential-hero{min-height:620px}.residential-hero-container{min-height:620px}
  .residential-hero-content h1{font-size:38px}
  .residential-hero-description{font-size:15px}
  .residential-hero-buttons{max-width:280px}
  .residential-intro,.residential-projects-section{padding:70px 0}
  .residential-stat{padding:22px}
  .residential-stat strong{font-size:34px}
  .residential-projects-list{gap:35px}
  .residential-project-image,.residential-project-reverse .residential-project-image{min-height:250px;height:250px}
  .residential-project-content,.residential-project-reverse .residential-project-content{padding:30px 24px 35px}
  .project-category{font-size:10px;letter-spacing:1.5px}
  .residential-project-content h3{font-size:24px}
  .project-location{font-size:13px}
  .residential-capability{padding:65px 0}
  .residential-approach-heading h2{font-size:30px}
  .qr-frame{width:180px;height:180px}
  .catalog-card h2{font-size:28px}
  .residential-cta .cta-container{gap:25px}
  .residential-cta .cta-button .btn{width:100%;min-width:0}
}

/* 10. REDUCED MOTION */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
