/* ==========================================================================
   RK CONSTRUCTION — stylesheet
   ========================================================================== */

:root{
  --navy-deep:#0b1c24;
  --navy:#122c37;
  --navy-soft:#173947;
  --gold:#c9a15a;
  --gold-dark:#a9803e;
  --green:#1f4a3d;
  --green-deep:#153328;
  --green-light:#7fdb9c;
  --cream:#f3efe6;
  --cream-2:#eae5d8;
  --ink:#181a17;
  --ink-soft:#4d564f;
  --white:#ffffff;

  --font-head:'Poppins', sans-serif;
  --font-body:'Inter', sans-serif;

  --radius:10px;
  --shadow-soft:0 20px 45px -20px rgba(11,28,36,.35);
  --ease:cubic-bezier(.19,1,.22,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
h1,h2,h3,h4{ font-family:var(--font-head); margin:0; line-height:1.15; color:var(--ink); }
p{ margin:0; }

.container{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  padding:0 28px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- shared type ---------- */
.eyebrow{
  font-family:var(--font-body);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--green);
  margin:0 0 10px;
}
.eyebrow-light{ color:var(--green-light); }
.text-green{ color:var(--green-light); }
.text-light{ color:var(--white); }
.divider{ display:block; width:52px; height:3px; background:var(--gold); margin:14px 0 18px; border-radius:2px; }
.arrow{ display:inline-block; transition:transform .3s var(--ease); }
a:hover .arrow, button:hover .arrow{ transform:translateX(4px); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:15px 30px;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  border-radius:6px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-3px); }
.btn-gold{ background:var(--gold); color:var(--navy-deep); box-shadow:0 14px 30px -12px rgba(201,161,90,.6); }
.btn-gold:hover{ background:var(--gold-dark); }
.btn-outline-light{ border:1.5px solid rgba(255,255,255,.6); color:var(--white); }
.btn-outline-light:hover{ background:rgba(255,255,255,.12); border-color:var(--white); }
.btn-green{ background:var(--green); color:var(--white); box-shadow:0 14px 30px -14px rgba(21,51,40,.65); }
.btn-green:hover{ background:var(--green-deep); }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader{
  position:fixed; inset:0; z-index:9999;
  background:var(--navy-deep);
  display:flex; align-items:center; justify-content:center;
  transition:opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader-mark{
  font-family:var(--font-head); font-weight:800; color:var(--gold);
  font-size:2rem; letter-spacing:.1em;
  animation:pulseMark 1.1s ease-in-out infinite;
}
@keyframes pulseMark{ 0%,100%{ opacity:.4; transform:scale(.9);} 50%{ opacity:1; transform:scale(1);} }
.preloader.done{ opacity:0; visibility:hidden; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:500;
  padding:20px 0;
  background:transparent;
  transition:background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled{
  background:rgba(11,28,36,.94);
  backdrop-filter:blur(10px);
  padding:12px 0;
  box-shadow:0 10px 30px -18px rgba(0,0,0,.6);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; }

.logo{ display:flex; align-items:center; gap:12px; }
.logo-mark{
  font-family:var(--font-head); font-weight:800; font-size:1.5rem;
  color:var(--gold); border:2px solid var(--gold); border-radius:8px;
  padding:4px 10px; line-height:1;
}
.logo-text{ display:flex; flex-direction:column; color:var(--white); }
.logo-text strong{ font-family:var(--font-head); font-size:1.02rem; letter-spacing:.04em; }
.logo-text small{ font-size:.65rem; letter-spacing:.08em; color:var(--gold); text-transform:uppercase; }

.main-nav ul{ display:flex; gap:34px; }
.nav-link{
  font-size:.85rem; font-weight:600; color:rgba(255,255,255,.85);
  text-transform:uppercase; letter-spacing:.03em;
  position:relative; padding-bottom:6px;
}
.nav-link::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px;
  background:var(--gold); transition:width .3s var(--ease);
}
.nav-link:hover, .nav-link.active{ color:var(--gold); }
.nav-link:hover::after, .nav-link.active::after{ width:100%; }

.header-cta{ flex-shrink:0; padding:12px 24px; }

.hamburger{ display:none; flex-direction:column; gap:5px; width:30px; }
.hamburger span{ height:2px; background:var(--white); border-radius:2px; transition:transform .3s, opacity .3s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{ position:relative; min-height:100vh; display:flex; flex-direction:column; justify-content:center; color:var(--white); }
.hero-bg{ position:absolute; inset:0; z-index:1; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(9,22,28,.94) 8%, rgba(9,22,28,.62) 46%, rgba(9,22,28,.28) 78%),
             linear-gradient(0deg, rgba(9,22,28,.85), rgba(9,22,28,.1) 55%);
}
.hero-content{ position:relative; z-index:2; padding-top:160px; padding-bottom:80px; max-width:760px; }
.hero-title{ font-size:clamp(2.4rem, 5.4vw, 4rem); font-weight:800; letter-spacing:-.01em; margin:14px 0 22px; }
.hero-sub{ font-size:1.05rem; line-height:1.7; color:rgba(255,255,255,.82); max-width:540px; margin-bottom:36px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; }

.stats-bar{ position:relative; z-index:2; margin-top:auto; }
.stats-grid{
  display:grid; grid-template-columns:repeat(4,1fr);
  background:rgba(11,28,36,.72); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.12); border-radius:14px;
  padding:26px 10px; margin-bottom:-1px;
  transform:translateY(46px);
}
.stat-item{ display:flex; align-items:center; gap:14px; justify-content:center; padding:6px 12px; border-right:1px solid rgba(255,255,255,.14); }
.stat-item:last-child{ border-right:none; }
.stat-icon{ width:34px; height:34px; color:var(--gold); flex-shrink:0; }
.stat-num{ font-family:var(--font-head); font-size:1.7rem; font-weight:800; }
.stat-plus{ font-family:var(--font-head); font-size:1.7rem; font-weight:800; color:var(--gold); }
.stat-item p{ font-size:.72rem; letter-spacing:.05em; text-transform:uppercase; color:rgba(255,255,255,.72); margin-top:2px; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about{ background:var(--cream); padding:150px 0 100px; }
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
.about-text h2{ font-size:clamp(1.9rem, 3vw, 2.6rem); }
.about-copy{ color:var(--ink-soft); line-height:1.75; margin-bottom:20px; max-width:480px; }
.about-points{ margin-bottom:30px; display:flex; flex-direction:column; gap:10px; }
.about-points li{ position:relative; padding-left:26px; color:var(--ink-soft); font-size:.95rem; }
.about-points li::before{ content:'✓'; position:absolute; left:0; color:var(--gold); font-weight:700; }

.about-media{ position:relative; }
.about-media img{ border-radius:var(--radius); box-shadow:var(--shadow-soft); width:100%; height:420px; object-fit:cover; }
.about-badge{
  position:absolute; right:-24px; bottom:-24px;
  background:var(--green-deep); color:var(--white);
  padding:22px 24px; border-radius:var(--radius);
  display:flex; align-items:center; gap:14px; max-width:230px;
  box-shadow:0 20px 40px -16px rgba(21,51,40,.6);
}
.about-badge svg{ width:30px; height:30px; color:var(--green-light); flex-shrink:0; }
.about-badge p{ font-family:var(--font-head); font-weight:700; font-size:.86rem; line-height:1.5; }

/* ==========================================================================
   SECTION HEAD (shared)
   ========================================================================== */
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:46px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(1.9rem, 3vw, 2.5rem); }
.section-head.center{ flex-direction:column; align-items:center; text-align:center; }
.view-all{ font-weight:700; font-size:.85rem; letter-spacing:.03em; color:var(--gold); text-transform:uppercase; }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects{ background:var(--navy-deep); padding:110px 0; }
.project-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.project-card{
  background:var(--cream); border-radius:var(--radius); overflow:hidden;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-card:hover{ transform:translateY(-8px); box-shadow:0 26px 48px -20px rgba(0,0,0,.55); }
.project-img{ height:190px; overflow:hidden; }
.project-img img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.project-card:hover .project-img img{ transform:scale(1.08); }
.project-body{ padding:22px 20px 24px; }
.project-body h3{ font-size:1.08rem; margin-bottom:6px; }
.project-loc{ font-size:.8rem; color:var(--gold-dark); font-weight:600; margin-bottom:4px; }
.project-type{ font-size:.8rem; color:var(--ink-soft); margin-bottom:14px; }
.project-link{ font-size:.78rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--green); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services{ background:var(--cream); padding:110px 0; }
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(24,26,23,.08); border:1px solid rgba(24,26,23,.08); border-radius:var(--radius); overflow:hidden; }
.service-card{ background:var(--cream); padding:38px 32px; transition:background .3s; }
.service-card:hover{ background:var(--white); }
.service-icon{ width:42px; height:42px; color:var(--green); margin-bottom:18px; }
.service-card h3{ font-size:1.05rem; margin-bottom:8px; }
.service-card p{ color:var(--ink-soft); font-size:.9rem; line-height:1.6; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process{ background:var(--navy); padding:100px 0; color:var(--white); }
.process-track{ display:flex; align-items:flex-start; gap:10px; overflow-x:auto; padding-bottom:6px; }
.process-step{ flex:1; min-width:150px; text-align:left; }
.step-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background:var(--green); color:var(--green-light);
  font-family:var(--font-head); font-weight:700; font-size:.85rem;
  margin-bottom:16px;
}
.process-step h4{ font-size:1.02rem; color:var(--white); margin-bottom:8px; }
.process-step p{ font-size:.85rem; color:rgba(255,255,255,.65); line-height:1.6; }
.step-arrow{ color:var(--gold); font-size:1.3rem; padding-top:8px; flex-shrink:0; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery{ background:var(--white); padding:110px 0; }
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.gallery-item{ border-radius:var(--radius); overflow:hidden; height:260px; position:relative; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.gallery-item:hover img{ transform:scale(1.1); }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner{ position:relative; padding:110px 0; overflow:hidden; }
.cta-bg{ position:absolute; inset:0; z-index:1; }
.cta-bg img{ width:100%; height:100%; object-fit:cover; }
.cta-overlay{ position:absolute; inset:0; background:linear-gradient(90deg, rgba(9,22,28,.92), rgba(9,22,28,.68)); }
.cta-content{ position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; color:var(--white); }
.cta-content h2{ color:var(--white); font-size:clamp(1.7rem, 3vw, 2.3rem); margin-bottom:10px; }
.cta-content p{ color:rgba(255,255,255,.78); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact{ background:var(--cream-2); padding:110px 0; }
.contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:70px; }
.contact-copy{ color:var(--ink-soft); line-height:1.7; margin:16px 0 28px; max-width:420px; }
.contact-list{ display:flex; flex-direction:column; gap:16px; }
.contact-list li{ display:flex; align-items:center; gap:12px; font-weight:600; font-size:.95rem; }
.contact-ico{ width:38px; height:38px; border-radius:50%; background:var(--green); color:var(--green-light); display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; font-size:.9rem; }

.contact-form{ background:var(--white); border-radius:var(--radius); padding:36px; box-shadow:var(--shadow-soft); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-field{ margin-bottom:18px; display:flex; flex-direction:column; }
.form-field label{ font-size:.78rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:8px; }
.form-field input, .form-field select, .form-field textarea{
  border:1.5px solid #dcd6c8; border-radius:6px; padding:13px 14px;
  font-family:inherit; font-size:.92rem; color:var(--ink); background:var(--cream);
  transition:border-color .25s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ outline:none; border-color:var(--green); }
.form-field textarea{ resize:vertical; }
.form-error{ display:none; color:#b3432f; font-size:.76rem; margin-top:6px; }
.form-field.error input, .form-field.error select{ border-color:#b3432f; }
.form-field.error .form-error{ display:block; }
.form-submit{ width:100%; justify-content:center; margin-top:6px; }
.form-success{ display:none; text-align:center; color:var(--green); font-weight:600; margin-top:16px; font-size:.9rem; }
.form-success.show{ display:block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,.75); padding-top:80px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:40px; padding-bottom:60px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-about p{ margin:18px 0 20px; font-size:.9rem; line-height:1.7; max-width:300px; }
.social-row{ display:flex; gap:10px; }
.social-row a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:700;
  transition:background .3s, border-color .3s;
}
.social-row a:hover{ background:var(--gold); border-color:var(--gold); color:var(--navy-deep); }
.footer-links h4, .footer-contact h4{ color:var(--white); font-family:var(--font-head); font-size:.95rem; margin-bottom:20px; }
.footer-links ul{ display:flex; flex-direction:column; gap:12px; }
.footer-links a{ font-size:.88rem; transition:color .25s; }
.footer-links a:hover{ color:var(--gold); }
.footer-contact p{ font-size:.88rem; margin-bottom:14px; line-height:1.5; }
.footer-bottom-inner{ display:flex; justify-content:space-between; align-items:center; padding:22px 0; flex-wrap:wrap; gap:10px; font-size:.82rem; }
.footer-legal a{ transition:color .25s; }
.footer-legal a:hover{ color:var(--gold); }

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay{
  position:fixed; inset:0; z-index:1000;
  background:rgba(9,22,28,.72);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; visibility:hidden; transition:opacity .35s var(--ease), visibility .35s var(--ease);
}
.modal-overlay.open{ opacity:1; visibility:visible; }
.modal-box{
  background:var(--white); border-radius:14px; padding:40px; max-width:460px; width:100%;
  position:relative; max-height:88vh; overflow-y:auto;
  transform:translateY(24px) scale(.97); transition:transform .4s var(--ease);
}
.modal-overlay.open .modal-box{ transform:translateY(0) scale(1); }
.modal-close{
  position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%;
  background:var(--cream); font-size:1.3rem; line-height:1; color:var(--ink);
  display:flex; align-items:center; justify-content:center; transition:background .25s;
}
.modal-close:hover{ background:var(--cream-2); }
.modal-sub{ color:var(--ink-soft); font-size:.9rem; margin:6px 0 24px; }
.modal-box h3{ font-size:1.4rem; }

.project-modal-box img{ width:100%; height:200px; object-fit:cover; border-radius:10px; margin-bottom:20px; }
.project-modal-loc{ color:var(--gold-dark); font-weight:600; font-size:.85rem; margin:6px 0 14px; }
.project-modal-box p#projectModalDesc{ color:var(--ink-soft); line-height:1.7; margin-bottom:22px; }

/* ==========================================================================
   SCROLL TOP
   ========================================================================== */
.scroll-top{
  position:fixed; right:24px; bottom:24px; z-index:400;
  width:46px; height:46px; border-radius:50%;
  background:var(--green); color:var(--white); font-size:1.1rem;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .3s, visibility .3s, transform .3s, background .3s;
  box-shadow:0 14px 28px -14px rgba(0,0,0,.5);
}
.scroll-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.scroll-top:hover{ background:var(--green-deep); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal]{ opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in-view{ opacity:1; transform:translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1080px){
  .about-grid{ grid-template-columns:1fr; gap:50px; }
  .about-media img{ height:340px; }
  .project-grid{ grid-template-columns:repeat(2,1fr); }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:860px){
  .main-nav{
    position:fixed; top:0; right:0; height:100vh; width:min(320px,80%);
    background:var(--navy-deep); padding:110px 32px 40px;
    transform:translateX(100%); transition:transform .45s var(--ease);
    z-index:400;
  }
  .main-nav.open{ transform:translateX(0); }
  .main-nav ul{ flex-direction:column; gap:26px; }
  .header-cta{ display:none; }
  .hamburger{ display:flex; }
  .hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2){ opacity:0; }
  .hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  .stats-grid{ grid-template-columns:repeat(2,1fr); gap:20px 0; transform:translateY(30px); }
  .stat-item{ border-right:none; border-bottom:1px solid rgba(255,255,255,.14); padding-bottom:16px; }
  .hero-content{ padding-top:130px; }

  .project-grid{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr 1fr; }
  .process-track{ flex-direction:column; }
  .step-arrow{ display:none; }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .about-badge{ position:static; margin-top:16px; max-width:none; }
}

@media (max-width:520px){
  .gallery-grid{ grid-template-columns:1fr; }
  .cta-content{ flex-direction:column; align-items:flex-start; }
}
