/* ============================================
   GLOBAL.CSS — Reset, Base, Shared Components
   Interior Design Website | Black & Gold Theme
   ============================================ */

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

/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: inherit;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.container--sm {
  max-width: var(--container-sm);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

/* ── SECTION ── */
.section {
  padding-block: var(--section-py);
}

.section--dark    { background-color: #ffffff; }
.section--surface { background-color: var(--black-rich); }
.section--card    { background-color: var(--black-card); }

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--sp-4);
  position: relative;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--grad-gold-subtle);
}
.section-eyebrow::before { right: calc(100% + 0.75rem); }
.section-eyebrow::after  { left:  calc(100% + 0.75rem); }

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  letter-spacing: var(--tracking-tight);
}

.section-title span,
.section-title em {
  font-style: italic;
  color: var(--gold-primary);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
  line-height: var(--leading-loose);
  font-weight: var(--weight-light);
}

/* ── GOLD DIVIDER ── */
.gold-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grad-gold-subtle);
  opacity: 0.4;
}

.gold-divider-icon {
  color: var(--gold-primary);
  font-size: var(--text-lg);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.btn:hover::before { opacity: 1; }

/* Primary — Red Fill */
.btn-primary {
  background: var(--grad-gold);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--gold-glow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow-lg);
}

.btn-primary:active { transform: translateY(0); }

/* Secondary — Gold Outline */
.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* btn-secondary-dark — for light section backgrounds */
.btn-secondary-dark {
  background: transparent;
  color: var(--gold-primary);
  border: var(--border-gold-md);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 2rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: all var(--trans-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary-dark:hover {
  background: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Ghost — White outline (used on dark hero photos) */
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.55);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.85);
  color: #ffffff;
}

/* Ghost dark — for use on light beige page sections */
.btn-ghost-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--black-muted);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 2rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: all var(--trans-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost-dark:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--gold-glow);
}

/* WhatsApp CTA - Gold gradient style matching homepage */
.btn-whatsapp {
  background: linear-gradient(135deg, #c0392b 0%, #e8846a 55%, #c0392b 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(192,57,43,0.4);
  border-radius: 50px;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,57,43,0.6);
  filter: brightness(1.05);
}

.btn-whatsapp svg, .btn-whatsapp i {
  font-size: 1.1em;
}

/* Sizes */
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }
.btn-lg { padding: 1rem 2.5rem;    font-size: var(--text-base); }
.btn-xl { padding: 1.1rem 3rem;    font-size: var(--text-md); }

/* ── CARDS ── */
.card {
  background: var(--grad-card);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans-base);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(145deg, rgba(192,57,43,0.15), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--trans-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

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

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.card:hover .card-image { transform: scale(1.05); }

.card-image-wrap {
  overflow: hidden;
  position: relative;
}

.card-body {
  padding: var(--sp-6);
}

.card-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--sp-3);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--sp-3);
  line-height: var(--leading-snug);
}

.card-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--sp-5);
}

.card-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.badge-gold {
  background: var(--gold-glow);
  color: var(--gold-bright);
  border: 1px solid rgba(192,57,43,0.3);
}

.badge-dark {
  background: var(--black-surface);
  color: var(--text-secondary);
  border: var(--border-thin);
}

/* ── GOLD LINE DECORATION ── */
.gold-line {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--grad-gold);
  margin-bottom: var(--sp-5);
}

.gold-line--center { margin-inline: auto; }

/* ── OVERLAY ── */
.overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}

/* ── FLOATING BUTTONS (WhatsApp + Scroll Top) ── */
.fab-group {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-6);
  z-index: var(--z-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.fab-scroll-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  order: 2;
  background: var(--black-surface);
  border: var(--border-gold);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--trans-base);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.fab-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.fab-scroll-top:hover {
  background: var(--gold-glow);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.fab-whatsapp {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c0392b 0%, #e8846a 50%, #c0392b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(192,57,43,0.45);
  transition: all var(--trans-base);
  position: relative;
  order: 1;
}

.fab-whatsapp:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(192,57,43,0.65);
}

.fab-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(192,57,43,0.5);
  animation: waPulse 2.2s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.4); opacity: 0;   }
  100% { transform: scale(1.4); opacity: 0;   }
}

/* ── WHATSAPP TOOLTIP ── */
.fab-whatsapp-wrap {
  position: relative;
}

.fab-whatsapp-wrap .fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 50%;
  transform: translateY(50%);
  background: var(--black-card);
  border: var(--border-gold);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-fast);
}

.fab-whatsapp-wrap:hover .fab-tooltip { opacity: 1; }

/* ── PAGE LOADER ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black-card);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 2px solid var(--black-border);
  border-top-color: var(--gold-primary);
  border-radius: var(--radius-full);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.breadcrumb a:hover { color: var(--gold-primary); }

.breadcrumb-sep {
  color: var(--gold-dim);
  font-size: 0.6rem;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-16);
  position: relative;
  overflow: hidden;
  background: var(--black-rich);
  padding-top: calc(var(--nav-height) + 2rem);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.75) 0%, rgba(44,24,16,0.1) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-4);
}

.page-hero-title em {
  font-style: italic;
  color: var(--gold-primary);
}

.page-hero-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  font-weight: var(--weight-light);
  max-width: 480px;
}

/* ── STAT ITEM ── */
.stat-item {
  text-align: center;
  padding: var(--sp-6);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

/* ── TAGS / FILTER PILLS ── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}

.filter-pill {
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  border: var(--border-gold);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: all var(--trans-base);
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--gold-glow);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

/* ── UTILITY ── */
.text-gold      { color: var(--gold-primary); }
.text-muted     { color: var(--text-secondary); }
.text-center    { text-align: center; }
.text-italic    { font-style: italic; }
.font-display   { font-family: var(--font-display); }

.mt-auto { margin-top: auto; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── RESPONSIVE GRID BREAKDOWNS ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .section-eyebrow::before,
  .section-eyebrow::after { display: none; }
}

@media (max-width: 480px) {
  :root {
    --section-py: 3rem;
    --section-px: 1rem;
  }

  .btn { padding: 0.7rem 1.5rem; }
  .btn-xl { padding: 0.9rem 2rem; }
}

/* ══════════════════════════════════════════
   MOBILE: 360px – 430px (Target Screen)
══════════════════════════════════════════ */

@media (max-width: 430px) {

  :root {
    --section-py: 2.5rem;
    --section-px: 1rem;
    --nav-height: 62px;
  }

  /* Navbar */
  .navbar-inner { padding-inline: 1rem; }
  .navbar-logo-sub { display: none; }
  .navbar-logo-name { font-size: 0.95rem; }
  .navbar-logo-mark { width: 34px; height: 34px; }
  .navbar-logo-img { height: 34px; }

  /* Buttons */
  .btn { padding: 0.65rem 1.25rem; font-size: 0.78rem; }
  .btn-xl, .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.82rem; }

  /* Section headers */
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 0.875rem; }

  /* Cards */
  .card-body { padding: 1rem; }
  .card-title { font-size: 1.1rem; }

  /* Grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }

  /* FAB group — keep right but slightly smaller */
  .fab-group { right: 0.85rem; bottom: 1rem; gap: 0.6rem; }
  .fab-whatsapp { width: 48px; height: 48px; font-size: 1.3rem; }
  .fab-scroll-top { width: 38px; height: 38px; font-size: 0.95rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.65rem; }

  /* Page hero */
  .page-hero { min-height: 36vh; padding-bottom: 2rem; }
  .page-hero-title { font-size: 1.7rem; }
  .page-hero-subtitle { font-size: 0.875rem; }

  /* Footer */
  .footer-top { gap: 1.5rem; }
  .footer-logo-name { font-size: 1rem; }
  .footer-bottom { gap: 0.75rem; }
  .footer-bottom-links { flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
}

@media (max-width: 390px) {
  :root { --section-px: 0.875rem; }
  .section-title { font-size: 1.45rem; }
  .navbar-logo-name { font-size: 0.875rem; }
}
