/* ===================================================
   ROYAL HOME INTERIORS — Global Design System
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97D;
  --gold-dark:   #9A7A2E;
  --beige:       #F5EFE6;
  --beige-dark:  #E8DDD0;
  --cream:       #FDFAF6;
  --dark:        #1A1A1A;
  --dark-2:      #2D2D2D;
  --dark-3:      #3F3F3F;
  --grey:        #6B6B6B;
  --grey-light:  #9E9E9E;
  --white:       #FFFFFF;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.18);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.3);
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
  --radius:      12px;
  --radius-lg:   20px;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Inter', -apple-system, sans-serif;
  --max-w:       1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a  { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ---------- Utility ---------- */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Section Headers ---------- */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title span { color: var(--gold); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

/* ---------- Gold Divider ---------- */
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px auto 0;
}
.gold-divider.left { margin-left: 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(26,26,26,0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo .logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.nav-logo .logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-logo .logo-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-logo .logo-tagline {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.12);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-call {
  display: flex; align-items: center; gap: 8px;
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50px;
  transition: all var(--transition);
}
.nav-call:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  color: var(--gold);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(26,26,26,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 100vh;
    backdrop-filter: blur(16px);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-hamburger { display: flex; z-index: 1001; }
  .nav-call { display: none; }
  .nav-cta .btn { display: none; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--white); transform: translateY(-3px); }
.footer-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-links a::before { content: '›'; color: var(--gold); font-size: 1.1rem; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.88rem; margin-bottom: 16px;
}
.footer-contact-item .icon {
  width: 32px; height: 32px; min-width: 32px;
  background: rgba(201,168,76,0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.85rem;
}
.footer-contact-item a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--gold-light); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  display: flex; align-items: center; gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 14px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: all var(--transition);
  animation: floatPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }
.whatsapp-float .wa-icon { font-size: 1.4rem; }
.whatsapp-float .wa-text { display: inline; }

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,0.65); }
}

/* ---------- Mobile Call Bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 901;
  background: linear-gradient(90deg, var(--dark-2), var(--dark));
  border-top: 1px solid rgba(201,168,76,0.3);
}
.mobile-call-bar .bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.mobile-call-bar a.btn-wa { color: #25D366; }
.mobile-call-bar a:hover { background: rgba(201,168,76,0.12); }
@media (max-width: 768px) {
  .mobile-call-bar { display: block; }
  .whatsapp-float .wa-text { display: none; }
  .whatsapp-float { padding: 14px; border-radius: 50%; bottom: 84px; }
  body { padding-bottom: 52px; }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2a1f0e 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero.png') center/cover no-repeat;
  opacity: 0.15;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-title { color: var(--white); }
.page-hero .section-subtitle { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 20px;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.page-hero .breadcrumb a { color: var(--gold-light); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb span { color: var(--gold); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.fade-up   { animation: fadeUp   0.7s ease both; }
.fade-in   { animation: fadeIn   0.7s ease both; }
.slide-right { animation: slideRight 0.7s ease both; }
.delay-1   { animation-delay: 0.15s; }
.delay-2   { animation-delay: 0.3s; }
.delay-3   { animation-delay: 0.45s; }
.delay-4   { animation-delay: 0.6s; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Section Spacing ---------- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-beige { background: var(--beige); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ---------- Testimonial ---------- */
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }

/* ---------- Form Styles ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-3);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
