/* =====================================================
   DREAM PAINTERS — PREMIUM DESIGN SYSTEM v2
   Inspired by editorial luxury · Warm earth tones · Cinematic motion
   ===================================================== */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --max: 1200px;
  --accent: #1a1a1a;
  --accent-mid: #8B6914;
  --accent-light: #C4A35A;
  --accent-glow: rgba(196, 163, 90, 0.25);
  --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 40%, #2a2218 70%, #1a1a1a 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(255,255,255,0.92));
  --muted: #6b7f86;
  --text: #1e2d33;
  --bg: #D9E6EA;
  --bg-alt: #CBDCE1;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.07);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.10);
  --shadow-glow: 0 6px 24px rgba(139, 105, 20, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  display: flex;
  justify-content: center;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
ul, ol { padding-left: 1.4em; }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: 100%; animation: pageIn 0.8s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ---------- SCROLL REVEAL — Cinematic staggered fade ---------- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger children inside grids */
.services-grid .reveal:nth-child(2),
.blog-grid .reveal:nth-child(2),
.color-combos-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3),
.blog-grid .reveal:nth-child(3),
.color-combos-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.stats-grid .stat-item:nth-child(1) { animation-delay: 0s; }
.stats-grid .stat-item:nth-child(2) { animation-delay: 0.1s; }
.stats-grid .stat-item:nth-child(3) { animation-delay: 0.2s; }
.stats-grid .stat-item:nth-child(4) { animation-delay: 0.3s; }

/* ---------- GLASSMORPHISM UTILITY ---------- */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 14px 40px;
  background: rgba(217, 230, 234, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow var(--transition);
  max-width: 100%;
}
header.scrolled { box-shadow: var(--shadow-sm); }

.logo { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; transition: transform var(--transition); }
.logo img:hover { transform: scale(1.06); }

/* ---------- NAV ---------- */
nav.nav-menu {
  flex: 1;
  display: flex;
  gap: 4px;
  justify-content: center;
  font-weight: 500;
  font-size: 13px;
  align-items: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
nav a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: all var(--transition);
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--accent-mid);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
nav a:hover { color: var(--accent-mid); background: transparent; }
nav a:hover::after { width: 60%; }
nav a.active { color: var(--accent-mid); font-weight: 600; background: transparent; }
nav a.active::after { width: 60%; }
nav a.active:hover { color: var(--accent-light); }

/* ---------- HAMBURGER ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--bg-alt); }

/* ---------- DIVIDERS ---------- */
hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(139,105,20,0.15), transparent); }
hr.thin-hr { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent); }
hr.blog-hr { margin: 40px 0; }

/* =====================================================
   HOME HERO
   ===================================================== */
.hero-section {
  background: var(--gradient-hero);
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196,163,90,0.12) 0%, transparent 70%);
  top: -250px;
  right: -150px;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,105,20,0.08) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  position: relative;
  animation: heroSlideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-left img { width: 100%; height: 520px; object-fit: cover; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-left:hover img { transform: scale(1.05); }
.hero-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.5) 100%);
  pointer-events: none;
  border-radius: var(--radius);
}

.hero-right { padding-right: 0; }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1;
  margin: 0 0 12px;
  font-weight: 700;
  color: #fff;
  animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}
.hero-title span {
  background: linear-gradient(135deg, #e8d5a3, #c4a35a, #8b6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  margin: 0 0 32px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-divider {
  width: 50px;
  height: 2px;
  background: var(--accent-mid);
  border-radius: 2px;
  margin-bottom: 28px;
  border: none;
  animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-desc {
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 12px;
  animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 15px 36px;
  background: var(--accent-mid);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
  animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}
.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(139,105,20,0.35);
  background: var(--accent-light);
  color: #fff;
}

/* ---------- CONTACT CARD (HOME) ---------- */
.contact-card-wrap {
  margin-top: 32px;
  animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
}

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
.contact-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 22px 26px;
  border-radius: var(--radius);
  max-width: 440px;
  transition: all var(--transition);
}
.contact-card:hover { background: rgba(255,255,255,0.10); transform: translateY(-2px); }
.contact-card p { margin: 0; padding: 8px 0; font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.contact-card strong { font-weight: 600; color: var(--accent-light); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar { background: var(--accent); padding: 56px 0; backdrop-filter: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--accent-light);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item p { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; }

/* =====================================================
   SERVICES GRID (HOME)
   ===================================================== */
.services-preview { padding: 96px 0; background: var(--bg); }

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-mid);
  margin-bottom: 10px;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}
.section-desc { color: var(--muted); max-width: 560px; font-size: 15px; margin-bottom: 56px; line-height: 1.8; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service-card {
  background: linear-gradient(160deg, #0f1624, #1a1f35, #141a2e);
  border: none;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: conic-gradient(from var(--card-angle, 0deg), #71797E, #C0C0C0, #E8E8E8, #A9A9A9, #71797E, #D3D3D3, #71797E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 4s linear infinite; pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}
.service-card::after {
  content: '';
  position: absolute; inset: -1px; border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
}
@property --card-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes borderSpin {
  to { --card-angle: 360deg; }
}
.service-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 60px rgba(99,102,241,0.12); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }

.service-icon { font-size: 2rem; margin-bottom: 18px; display: block; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; color: #C4A35A; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* =====================================================
   PAGE HERO (INNER PAGES)
   ===================================================== */
.page-hero {
  background: var(--gradient-hero);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196,163,90,0.1) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  margin-bottom: 14px;
  font-weight: 700;
  position: relative;
}
.page-hero p { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 560px; margin: 0 auto; position: relative; }

/* =====================================================
   CONTENT SECTIONS
   ===================================================== */
.content-section { padding: 72px 0; }
.content-section h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--accent); margin-bottom: 16px; font-weight: 700; }
.content-section h3 { font-size: 1.1rem; color: var(--accent-mid); margin-top: 28px; margin-bottom: 8px; font-weight: 600; }
.content-section p { color: #555; margin-bottom: 14px; line-height: 1.8; }

/* =====================================================
   ABOUT CARDS (CAROUSEL)
   ===================================================== */
.about-cards { padding: 72px 0; }
.cards-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 36px; color: var(--accent); }
.cards-wrapper { position: relative; padding: 0 56px; }
.cards-container { display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; padding: 8px 0 16px; -ms-overflow-style: none; scrollbar-width: none; }
.cards-container::-webkit-scrollbar { display: none; }

.about-card {
  min-width: 300px; flex-shrink: 0;
  background: linear-gradient(160deg, #0f1624, #1a1f35, #141a2e);
  border: none; border-radius: var(--radius); padding: 20px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: conic-gradient(from var(--card-angle, 0deg), #71797E, #C0C0C0, #E8E8E8, #A9A9A9, #71797E, #D3D3D3, #71797E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 4s linear infinite; pointer-events: none;
  opacity: 0.3; transition: opacity 0.5s ease;
}
.about-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(99,102,241,0.12); }
.about-card:hover::before { opacity: 1; }
.about-card img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 16px; background: var(--bg-alt); }
.about-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: #C4A35A; }
.about-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

.card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.card-nav:hover { background: var(--accent-mid); transform: translateY(-50%) scale(1.08); }
.card-nav.left { left: 0; }
.card-nav.right { right: 0; }

/* =====================================================
   BLOG
   ===================================================== */
.blog-content { padding: 72px 0; }
.blog1-title { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--accent); margin-bottom: 24px; font-weight: 700; line-height: 1.3; }
.blog-content h2 { font-family: 'Playfair Display', serif; margin-top: 48px; color: var(--accent); font-size: 1.5rem; font-weight: 700; }
.blog-content h3 { color: var(--accent-mid); margin-top: 12px; font-weight: 600; }
.blog-content h4 { margin-top: 16px; color: #555; font-weight: 600; }
.blog-content p { color: #555; line-height: 1.8; margin-bottom: 12px; }
.blog-content ul, .blog-content ol { margin-bottom: 12px; }
.blog-content li { margin-bottom: 6px; color: #555; }
.list-items-main { margin-bottom: 48px; }

/* =====================================================
   AUTH (LOGIN / REGISTER)
   ===================================================== */
.auth-section { padding: 72px 0; display: flex; justify-content: center; }
.auth-container {
  width: 100%; max-width: 420px;
  background: linear-gradient(160deg, #0f1624, #1a1f35, #141a2e);
  padding: 44px 36px;
  border-radius: var(--radius); border: none; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.auth-container::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: conic-gradient(from var(--card-angle, 0deg), #71797E, #C0C0C0, #E8E8E8, #A9A9A9, #71797E, #D3D3D3, #71797E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 4s linear infinite; pointer-events: none;
  opacity: 0.4;
}
.auth-toggle { display: flex; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 28px; }
.auth-toggle button {
  flex: 1; padding: 12px 0; background: transparent; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.3s ease;
  text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.5);
}
.auth-toggle button.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.auth-form { display: flex; flex-direction: column; }
.auth-form h2 { text-align: center; margin-bottom: 24px; font-size: 22px; font-weight: 600; color: #C4A35A; }
.auth-form input {
  padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1); font-size: 14px; font-family: inherit;
  background: rgba(255,255,255,0.06); transition: all 0.3s ease; color: #fff;
}
.auth-form input::placeholder { color: rgba(255,255,255,0.35); }
.auth-form input:focus { outline: none; border-color: var(--accent-light); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 3px rgba(196,163,90,0.15); }
.auth-form button[type="submit"] {
  margin-top: 8px; padding: 14px; background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.5px;
}
.auth-form button[type="submit"]:hover { transform: translateY(-2px); background: var(--accent-mid); box-shadow: var(--shadow-glow); }
#welcomeBox { text-align: center; }
#welcomeBox h2 { font-size: 24px; margin-bottom: 10px; color: #fff; }
#welcomeBox p { color: rgba(255,255,255,0.6); margin-bottom: 20px; }
#welcomeBox button { padding: 12px 24px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all var(--transition); }
#welcomeBox button:hover { background: var(--accent-mid); }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-sidebar { position: sticky; top: 100px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon { font-size: 1.4rem; flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: var(--radius-sm); }
.contact-detail strong { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-mid); display: block; margin-bottom: 2px; }
.contact-detail p { margin: 0; font-size: 15px; color: var(--text); line-height: 1.5; }

.contact-info-card { background: var(--bg); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); transition: all var(--transition); }
.contact-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-info-card p { padding: 12px 0; font-size: 16px; color: #444; border-bottom: 1px solid rgba(0,0,0,0.04); }
.contact-info-card p:last-child { border-bottom: none; }
.contact-info-card strong { color: var(--accent-mid); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

/* =====================================================
   COLOR SWATCHES
   ===================================================== */
.color-combos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.color-combo-card { border-radius: var(--radius); overflow: hidden; border: none; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); background: linear-gradient(160deg, #0f1624, #1a1f35, #141a2e); position: relative; }
.color-combo-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: conic-gradient(from var(--card-angle, 0deg), #71797E, #C0C0C0, #E8E8E8, #A9A9A9, #71797E, #D3D3D3, #71797E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 4s linear infinite; pointer-events: none;
  opacity: 0.3; transition: opacity 0.5s ease; z-index: 0;
}
.color-combo-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 60px rgba(99,102,241,0.12); }
.color-combo-card:hover::before { opacity: 1; }
.color-swatch { height: 140px; display: flex; }
.color-swatch span { flex: 1; }
.color-combo-card .card-body { padding: 22px; }
.color-combo-card h3 { font-size: 1rem; color: #C4A35A; margin-bottom: 6px; }
.color-combo-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* =====================================================
   FOOTER — EDITORIAL MULTI-COLUMN
   ===================================================== */
footer {
  background: var(--accent);
  color: rgba(255,255,255,0.5);
  padding: 64px 40px 32px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-brand p { color: rgba(255,255,255,0.45); line-height: 1.7; font-size: 13px; }
.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom strong { color: rgba(255,255,255,0.6); }

/* =====================================================
   PROJECTS GRID (legacy)
   ===================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: var(--bg); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); position: relative; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-img { position: relative; overflow: hidden; height: 220px; background: var(--bg-alt); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.5) 100%); pointer-events: none; }
.project-badge { position: absolute; top: 14px; left: 14px; padding: 5px 14px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: rgba(139,105,20,0.85); backdrop-filter: blur(8px); border-radius: 50px; z-index: 2; }
.project-body { padding: 22px 24px 26px; }
.project-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.project-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner { background: var(--gradient-hero); padding: 80px 0; margin-top: 16px; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(196,163,90,0.1) 0%, transparent 70%); top: -150px; right: -50px; pointer-events: none; }
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; margin-bottom: 12px; font-weight: 700; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 500px; margin: 0 auto; position: relative; }

/* =====================================================
   ESTIMATE FORM
   ===================================================== */
.estimate-form-card { max-width: 640px; margin: 0 auto; background: linear-gradient(160deg, #0f1624, #1a1f35, #141a2e); border: none; border-radius: var(--radius); padding: 44px 36px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.estimate-form-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: conic-gradient(from var(--card-angle, 0deg), #71797E, #C0C0C0, #E8E8E8, #A9A9A9, #71797E, #D3D3D3, #71797E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 4s linear infinite; pointer-events: none; opacity: 0.4;
}
.contact-layout .estimate-form-card { max-width: none; }
.estimate-form { display: flex; flex-direction: column; }
.estimate-form label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 6px; margin-top: 20px; text-transform: uppercase; letter-spacing: 1px; }
.estimate-form label:first-child { margin-top: 0; }
.label-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.estimate-form input, .estimate-form select {
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.1);
  font-size: 15px; font-family: inherit; background: rgba(255,255,255,0.06); transition: all 0.3s ease; color: #fff;
}
.estimate-form input:focus, .estimate-form select:focus { outline: none; border-color: var(--accent-light); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 3px rgba(196,163,90,0.15); }
.estimate-form input::placeholder { color: rgba(255,255,255,0.35); }
.estimate-form select { cursor: pointer; color: rgba(255,255,255,0.7); }
.estimate-form select option { background: #1a1f35; color: #fff; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; }
.chip input { display: none; }
.chip span { display: inline-block; padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.12); font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.04); transition: all 0.25s ease; user-select: none; }
.chip:hover span { border-color: var(--accent-light); }
.chip input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.estimate-form button[type="submit"] {
  margin-top: 28px; padding: 16px; background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.5px;
}
.estimate-form button[type="submit"]:hover { transform: translateY(-2px); background: var(--accent-mid); box-shadow: var(--shadow-glow); }

/* =====================================================
   UTILITIES
   ===================================================== */
.hidden { display: none; }

/* =====================================================
   PROJECTS — HORIZONTAL SCROLL NAME CARDS
   ===================================================== */
.project-scroller-wrap, .project-gallery-wrap {
  overflow-x: auto; overflow-y: hidden; padding: 0 40px 24px;
  scrollbar-width: thin; scrollbar-color: var(--accent-mid) var(--bg-alt);
}
.project-scroller-wrap::-webkit-scrollbar, .project-gallery-wrap::-webkit-scrollbar { height: 6px; }
.project-scroller-wrap::-webkit-scrollbar-track, .project-gallery-wrap::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 3px; }
.project-scroller-wrap::-webkit-scrollbar-thumb, .project-gallery-wrap::-webkit-scrollbar-thumb { background: var(--accent-mid); border-radius: 3px; }

.project-scroller, .project-gallery {
  display: flex; gap: 24px; padding: 8px 0 16px;
}
.project-scroller:hover, .project-gallery:hover { }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.proj-name-card { min-width: 270px; height: 200px; perspective: 800px; cursor: pointer; flex-shrink: 0; }
.proj-name-inner { position: relative; width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); transform-style: preserve-3d; }
.proj-name-card.flipped .proj-name-inner { transform: rotateY(180deg); }
.proj-name-front, .proj-name-back {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px; text-align: center;
}
.proj-name-front {
  background: linear-gradient(135deg, #1a1a1a, #2a2218, #3d2e0a);
  color: #fff; box-shadow: var(--shadow-md); transition: box-shadow 0.3s ease;
}
.proj-name-card:nth-child(3n+2) .proj-name-front { background: linear-gradient(135deg, #1a1a2e, #2d2b3d, #4a3f5c); }
.proj-name-card:nth-child(3n+3) .proj-name-front { background: linear-gradient(135deg, #0a1a1a, #1a3030, #2d4a3a); }
.proj-name-card:hover .proj-name-front { box-shadow: var(--shadow-lg), 0 0 40px rgba(196,163,90,0.1); }
.proj-name-front h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.proj-type-badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; background: rgba(255,255,255,0.12); backdrop-filter: blur(4px); padding: 4px 14px; border-radius: 50px; margin-bottom: 14px; }
.proj-name-back { background: var(--bg); border: 1px solid rgba(0,0,0,0.06); transform: rotateY(180deg); box-shadow: var(--shadow-md); }
.proj-name-back p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.gallery-item { min-width: 340px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-md); transition: transform var(--transition), box-shadow var(--transition); }
.gallery-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 18px; background: linear-gradient(transparent, rgba(10,10,10,0.7)); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

/* =====================================================
   BLOG GRID
   ===================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 8px; }
.blog-card {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #0f1624, #1a1f35, #141a2e);
  border: none; border-radius: var(--radius); padding: 32px 28px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: conic-gradient(from var(--card-angle, 0deg), #71797E, #C0C0C0, #E8E8E8, #A9A9A9, #71797E, #D3D3D3, #71797E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 4s linear infinite; pointer-events: none;
  opacity: 0.3; transition: opacity 0.5s ease;
}
.blog-card::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
}
.blog-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 60px rgba(99,102,241,0.12); }
.blog-card:hover::before { opacity: 1; }
.blog-card:hover::after { opacity: 1; }
.blog-card-icon { font-size: 2rem; margin-bottom: 12px; }
.blog-card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.blog-tag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; background: var(--accent); color: #fff; padding: 3px 12px; border-radius: 50px; }
.blog-date { font-size: 12px; color: var(--muted); }
.blog-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: #C4A35A; margin-bottom: 10px; font-weight: 700; line-height: 1.3; }
.blog-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; flex: 1; }
.blog-read-more { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent-light); transition: color 0.3s; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card:hover .blog-read-more { color: #fff; }
.blog-card-placeholder { opacity: 0.5; cursor: default; }
.blog-card-placeholder:hover { transform: none; box-shadow: none; }
.blog-card-placeholder::before { display: none; }
.blog-article-body { max-width: 800px; }

/* =====================================================
   PASSWORD FIELD
   ===================================================== */
.password-field { position: relative; margin-bottom: 14px; }
.password-field input { width: 100%; padding-right: 48px; margin-bottom: 0; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.2s; line-height: 1; }
.pw-toggle:hover { background: var(--bg-alt); }

/* =====================================================
   UPDATES & MEDIA SCROLLER (HOME)
   ===================================================== */
.updates-section { padding: 80px 0 64px; background: var(--bg-alt); }
.updates-scroller-wrap { overflow-x: auto; padding: 0 40px 20px; scrollbar-width: thin; scrollbar-color: var(--accent-mid) transparent; }
.updates-scroller-wrap::-webkit-scrollbar { height: 6px; }
.updates-scroller-wrap::-webkit-scrollbar-track { background: transparent; border-radius: 3px; }
.updates-scroller-wrap::-webkit-scrollbar-thumb { background: var(--accent-mid); border-radius: 3px; }
.updates-scroller { display: flex; gap: 24px; padding: 8px 0 8px; }
.update-card {
  min-width: 280px; max-width: 300px; flex-shrink: 0;
  background: linear-gradient(160deg, #0f1624, #1a1f35, #141a2e);
  border: none; border-radius: var(--radius); padding: 32px 26px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
}
.update-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: conic-gradient(from var(--card-angle, 0deg), #71797E, #C0C0C0, #E8E8E8, #A9A9A9, #71797E, #D3D3D3, #71797E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 4s linear infinite; pointer-events: none;
  opacity: 0.3; transition: opacity 0.5s ease;
}
.update-card::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
}
.update-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 60px rgba(99,102,241,0.12); }
.update-card:hover::before { opacity: 1; }
.update-card:hover::after { opacity: 1; }
.update-card-icon { font-size: 2rem; margin-bottom: 14px; }
.update-card h4 { font-size: 1rem; font-weight: 600; color: #C4A35A; margin-bottom: 8px; }
.update-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.update-tag { display: inline-block; margin-top: 16px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; background: rgba(255,255,255,0.08); color: var(--accent-light); padding: 4px 12px; border-radius: 50px; }

/* =====================================================
   RESPONSIVE — TABLET (≤980px)
   ===================================================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-left img { height: 380px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* =====================================================
   RESPONSIVE — MOBILE (≤768px)
   ===================================================== */
@media (max-width: 768px) {
  .section-inner { padding: 0 20px; }
  header { padding: 10px 20px; flex-wrap: wrap; justify-content: space-between; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  nav.nav-menu {
    display: none; flex-direction: column; width: 100%; gap: 0; margin-top: 12px;
    background: var(--bg); border-radius: var(--radius-sm); border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden; box-shadow: var(--shadow-md);
  }
  nav.nav-menu.active { display: flex; }
  nav.nav-menu a { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.04); width: 100%; text-align: center; border-radius: 0; }
  nav a::after { display: none; }
  nav a.active { border-radius: 0; background: var(--bg-alt); }

  .hero-section { padding: 56px 0 72px; }
  .hero-left img { height: 280px; }
  .hero-desc { font-size: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 56px 0; }
  .page-hero h1 { font-size: 1.8rem; }
  .cards-wrapper { padding: 0; }
  .card-nav { display: none; }
  .about-card { min-width: 260px; }
  .auth-container { padding: 28px 22px; }
  .estimate-form-card { padding: 28px 20px; }
  .chip span { font-size: 12px; padding: 6px 12px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-sidebar { position: static; }
  .color-combos-grid { grid-template-columns: 1fr; }

  .project-scroller-wrap, .project-gallery-wrap, .updates-scroller-wrap { padding: 0 20px 20px; }
  .proj-name-card { min-width: 220px; height: 180px; }
  .proj-name-front h3 { font-size: 1.3rem; }
  .gallery-item { min-width: 260px; }
  .gallery-item img { height: 200px; }
  .update-card { min-width: 240px; }
  .blog-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 48px 20px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* =====================================================
   RESPONSIVE — SMALL PHONE (≤480px)
   ===================================================== */
@media (max-width: 480px) {
  .hero-left img { height: 220px; }
  .hero-cta { width: 100%; justify-content: center; }
  .stat-item h3 { font-size: 2rem; }
  .about-card img { height: 180px; }
  .cards-title { font-size: 1.4rem; }
  .auth-form h2 { font-size: 20px; }
  .service-card { padding: 28px 22px; }
}
