/* ============================================================
   RASHMI CONSTRUCTIONS — main.css
   Core variables, reset, nav, footer, shared components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --red:        #C0392B;
  --red-dark:   #922B21;
  --red-deeper: #641E16;
  --red-light:  #F1948A;
  --red-pale:   #FDEDEC;
  --white:      #FFFFFF;
  --off-white:  #FDF9F9;
  --gray-light: #F5F5F5;
  --gray-mid:   #999;
  --gray-dark:  #333;
  --black:      #1a1a1a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   0.3s ease;
}

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  cursor: url('../assets/images/rc-pointer.svg') 5 3, auto;
}

img { max-width: 100%; height: auto; }
button, a { touch-action: manipulation; cursor: url('../assets/images/rc-pointer.svg') 5 3, pointer; }

::selection      { background: var(--red); color: white; }
::-moz-selection { background: var(--red); color: white; }

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 2px solid var(--red);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
  box-shadow: 0 2px 20px rgba(192,57,43,0.08);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 4px 30px rgba(192,57,43,0.18); }

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 72px; width: auto; object-fit: contain; }
.nav-brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--red-dark); line-height: 1.1; }
.nav-brand small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 400; color: var(--gray-mid); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--gray-dark); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 4px;
  transition: color var(--transition); position: relative; letter-spacing: 0.3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--red); }

.nav-cta { background: var(--red) !important; color: white !important; border-radius: 4px !important; padding: 8px 20px !important; }
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-cta::after { display: none !important; }

#hamburger-btn {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none;
}
#hamburger-btn span { display: block; width: 24px; height: 2px; background: var(--red); transition: all var(--transition); }

/* ── SHARED SECTION STYLES ── */
section { padding: 80px 5%; }
section {
  position: relative;
  isolation: isolate;
}
section::before {
  content: none;
}

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600;
  margin-bottom: 16px;
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-label::before { content: ''; width: 30px; height: 2px; background: var(--red); }
.section-label.visible { opacity: 1; transform: translateX(0); }

h2.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px);
  font-weight: 700; color: var(--black); line-height: 1.15; margin-bottom: 16px;
}
.section-subtitle { font-size: 17px; color: var(--gray-mid); max-width: 560px; line-height: 1.7; margin-bottom: 56px; }

.btn-primary {
  background: var(--red); color: white; border: none;
  padding: 16px 36px; font-size: 15px; font-weight: 600;
  border-radius: 4px; cursor: pointer; text-decoration: none;
  display: inline-block; transition: all var(--transition); letter-spacing: 0.5px;
  position: relative; overflow: hidden;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(192,57,43,0.4); }

.btn-outline {
  background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3);
  padding: 16px 36px; font-size: 15px; font-weight: 500;
  border-radius: 4px; cursor: pointer; text-decoration: none;
  display: inline-block; transition: all var(--transition);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ── PAGE HERO (shared across inner pages) ── */
.page-hero {
  background: var(--black); padding: 130px 5% 70px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: 5%;
  bottom: -38px;
  width: min(260px, 42vw);
  height: 120px;
  border-top: 2px solid rgba(192,57,43,.5);
  border-left: 2px solid rgba(192,57,43,.22);
  transform: skewX(-18deg);
  pointer-events: none;
}
.page-hero-pattern {
  position: absolute; inset: 0; opacity: 0.05;
  background-image:
    repeating-linear-gradient(0deg, var(--red) 0, var(--red) 1px, transparent 0, transparent 40px),
    repeating-linear-gradient(90deg, var(--red) 0, var(--red) 1px, transparent 0, transparent 40px);
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px);
  font-weight: 900; color: white; position: relative; z-index: 1;
}
.page-hero h1::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--red); margin-top: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.55); font-size: 16px; max-width: 500px; margin-top: 12px;
  position: relative; z-index: 1;
}
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  position: relative; z-index: 1; margin-bottom: 20px;
}
.breadcrumb span { font-size: 13px; color: rgba(255,255,255,0.4); }
.breadcrumb span:last-child { color: var(--red-light); }
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 13px; }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }

/* ── SCROLL PROGRESS BAR ── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--red), #ff6b5b);
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(192,57,43,0.5);
}

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed; bottom: 90px; right: 24px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(192,57,43,0.4);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  font-size: 18px;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ── WHATSAPP ── */
#whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
#whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
#whatsapp-btn svg { width: 28px; height: 28px; fill: white; }

/* ── PAGE LOADER ── */
#page-loader {
  position: fixed; inset: 0; background: white; z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { animation: loaderPulse 1s ease-in-out infinite alternate; }
.loader-bar { width: 160px; height: 3px; background: #f0f0f0; border-radius: 2px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--red); border-radius: 2px; animation: loaderFill 1.2s ease forwards; }

/* ── FOOTER ── */
footer { background: #111; color: rgba(255,255,255,0.6); padding: 60px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--red-light); font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 10px; padding-left: 0; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-col a:hover { padding-left: 8px; color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; }

/* ── REVEAL ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1), filter .85s ease;
  filter: none;
}
.reveal.visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── PRINT ── */
@media print {
  nav, #back-to-top, #whatsapp-btn, #progress-bar, #page-loader { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: none; }
}
