/* ==========================================================================
   ROXY Interiors — Global Design System
   Aesthetic: Editorial Spatial (Architectural Digest)
   ========================================================================== */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --color-primary: #1a1a1a;
  --color-secondary: #8c7b6b;
  --color-tertiary: #c4a882;
  --color-background: #f5f0eb;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #8c7b6b;
  --color-border: rgba(140, 123, 107, 0.25);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Layout */
  --max-width: 1440px;
  --nav-height: 80px;
  --border-radius: 6px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  padding-top: 38px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---------- Typography Scale ---------- */
.display-lg {
  font-family: var(--font-heading);
  font-size: clamp(32px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-md {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.headline-lg {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.headline-md {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
}

/* Breakpoint helper to handle linebreaks on desktop only */
br.br-desktop {
  display: none;
}
@media (min-width: 769px) {
  br.br-desktop {
    display: inline;
  }
}

.title-lg {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.label-md {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--sm {
  padding: var(--space-xl) 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-secondary);
}

/* ---------- Gold Divider ---------- */
.gold-rule {
  border: none;
  height: 1px;
  background-color: var(--color-tertiary);
  width: 80px;
  margin: var(--space-lg) auto;
}

.gold-rule--wide {
  width: 160px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
/* ---------- Announcement Bar ---------- */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background-color: var(--color-primary);
  color: var(--color-background);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1001;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-bar.scrolled {
  transform: translateY(-100%);
}

.announcement-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

.announcement-bar strong {
  color: var(--color-tertiary);
  font-weight: 600;
}

.announcement-bar__link {
  color: var(--color-tertiary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
}

.announcement-bar__link:hover {
  border-color: var(--color-tertiary);
  opacity: 0.9;
}

@media (max-width: 600px) {
  .announcement-bar {
    font-size: 9px;
  }
  .announcement-bar__inner {
    padding: 0 16px;
  }
}

.navbar {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(245, 240, 235, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-tertiary);
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1), background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(26, 26, 26, 0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__logo span {
  color: var(--color-tertiary);
}

.navbar__logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.navbar__logo-img:hover {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .navbar__logo-img {
    height: 44px;
  }
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  position: relative;
  padding: 8px 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-tertiary);
  transition: width var(--transition-base);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__link.active {
  color: var(--color-tertiary);
}

/* Services Dropdown */
.navbar__dropdown-wrap {
  position: relative;
}

.navbar__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.navbar__dropdown-toggle svg {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
  fill: currentColor;
}

@media (min-width: 769px) {
  .navbar__dropdown-wrap:hover .navbar__dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .navbar__dropdown-wrap:hover .navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.navbar__dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 240px;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--color-tertiary);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.1);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  pointer-events: none;
}

.navbar__dropdown-item {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-primary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar__dropdown-item:hover {
  background: rgba(140, 123, 107, 0.08);
  color: var(--color-tertiary);
}

/* Mobile Nav Toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-surface);
  border: 1px solid var(--color-primary);
}

.btn--primary:hover {
  border-color: var(--color-tertiary);
  box-shadow: 0 4px 20px rgba(196, 168, 130, 0.25);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.08);
}

.card__image-wrap {
  position: relative;
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image {
  transform: scale(1.03);
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  transition: opacity var(--transition-base);
}

.card:hover .card__overlay {
  opacity: 1;
}

.card__overlay-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-surface);
  margin-bottom: 4px;
}

.card__overlay-cat {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tertiary);
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  background: var(--color-background);
}

.page-header__label {
  margin-bottom: var(--space-sm);
}

.page-header__title {
  margin-bottom: var(--space-md);
}

.page-header__subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--color-primary);
  border-top: 1px solid var(--color-tertiary);
  padding: var(--space-xl) 0 var(--space-lg);
  color: rgba(245, 240, 235, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: var(--space-xl);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-surface);
  margin-bottom: var(--space-sm);
}

.footer__brand-name span {
  color: var(--color-tertiary);
}

.footer__logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--space-md);
  display: block;
  filter: brightness(1.2) contrast(1.1);
  transition: opacity var(--transition-base);
}

.footer__logo-img:hover {
  opacity: 0.85;
}

.footer__brand-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  color: rgba(245, 240, 235, 0.6);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tertiary);
  margin-bottom: var(--space-md);
}

.footer__list {
  font-size: 14px;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__list a {
  color: rgba(245, 240, 235, 0.6);
  transition: color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--color-tertiary);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer__contact-icon {
  width: 18px;
  height: 18px;
  color: var(--color-tertiary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(196, 168, 130, 0.2);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(245, 240, 235, 0.4);
}

.footer__developer {
  font-size: 13px;
  color: rgba(245, 240, 235, 0.6);
  margin-top: 8px;
}

.footer__developer a {
  color: var(--color-tertiary);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.footer__developer a:hover {
  border-color: var(--color-tertiary);
}

.footer__socials {
  display: flex;
  gap: 20px;
}

.footer__social-link {
  color: rgba(245, 240, 235, 0.5);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-tertiary);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   ANIMATION UTILITIES (Lightweight CSS Only)
   ========================================================================== */
.animate-fade-in {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.animate-fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered delays */
.animate-delay-1 { transition-delay: 0.15s; }
.animate-delay-2 { transition-delay: 0.3s; }
.animate-delay-3 { transition-delay: 0.45s; }
.animate-delay-4 { transition-delay: 0.6s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-xl: 56px;
    --space-2xl: 80px;
  }

  /* Mobile Nav */
  .navbar__toggle {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--color-surface);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-lg) var(--space-md);
    gap: 20px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto; /* Enable scroll if dropdown is open */
  }

  .navbar__links.open {
    transform: translateX(0);
  }

  .navbar__link {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 15px; /* slightly larger for readability on list */
  }

  .navbar__dropdown-toggle {
    justify-content: space-between;
  }

  .navbar__dropdown-wrap.open .navbar__dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .navbar__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-tertiary);
    padding: 4px 0 12px 16px;
    pointer-events: auto;
    display: none;
  }

  .navbar__dropdown-wrap.open .navbar__dropdown {
    display: block;
  }

  .navbar__dropdown-item {
    padding: 10px 0;
    font-size: 15px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__logo-img {
    height: 52px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 14px 32px;
    font-size: 13px;
  }
}

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Premium Glowing Pulse Animation */
.floating-cta::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 100px;
  border: 2px solid #25D366;
  opacity: 0;
  animation: whatsapp-pulse 2s infinite ease-out;
  pointer-events: none;
  z-index: -1;
  transition: border-radius 0.3s ease;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.15, 1.3);
    opacity: 0;
  }
}

.floating-cta:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #2ae771, #149c8c);
  color: #ffffff;
}

.floating-cta svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  aspect-ratio: 1 / 1;
  fill: currentColor;
  flex-shrink: 0;
  display: block;
  transition: transform 0.3s ease;
}

.floating-cta:hover svg {
  transform: scale(1.1) rotate(10deg);
}

@media (max-width: 768px) {
  .floating-cta {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  
  .floating-cta::before {
    border-radius: 50%;
  }
  
  @keyframes whatsapp-pulse {
    0% {
      transform: scale(1);
      opacity: 0.6;
    }
    50% {
      opacity: 0.3;
    }
    100% {
      transform: scale(1.3);
      opacity: 0;
    }
  }

  .floating-cta span {
    display: none;
  }

  .floating-cta svg {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    margin: 0;
  }
}

/* ---------- Page Reveal Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--color-primary);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader.loaded {
  transform: translateY(-100%);
}

.preloader__logo {
  max-height: 120px;
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader__line-wrap {
  width: 120px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}

.preloader__line {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: var(--color-tertiary);
  transform: scaleX(0);
  transform-origin: left;
  animation: preloaderProgress 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderProgress {
  to {
    transform: scaleX(1);
  }
}
