/* =========================================================
   DELECON® DESIGN CO. — INDEX PAGE MASTER CSS
   Source-matched to new-index-test.html
   NO JS DEPENDENCY · NO GLOBAL LEAKS
   ========================================================= */

/* =========================
   ROOT & RESET
   ========================= */
:root{
  --brand:#0D4AA0;
  --ink:#0b0b0b;
  --muted:#6b7280;
  --bg:#ffffff;
  --soft:#f6f7fb;
  --line:#e5e7eb;
  --radius:16px;
  --shadow:0 10px 26px rgba(0,0,0,.10);
}

*,*::before,*::after{box-sizing:border-box}

html,body{margin:0;padding:0;width:100%}
html{scroll-behavior:auto}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.55;
  color:var(--ink);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}

/* =========================
   WRAPPER
   ========================= */
.wrap{
  max-width:1200px;
  margin-inline:auto;
  padding:clamp(14px,2vw,22px);
}

main{display:block}

/* =========================================================
   DELECON® — HEADER CTA (FINAL · LOCKED · NO SPHERE)
   ========================================================= */

/* Header base */
.dcc-header{
  width:100%;
  background:#ffffff;
  border-bottom:1px solid var(--line);
  z-index:50;
}

.dcc-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* Brand */
.dcc-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.dcc-logo{
  width:90px;
  height:auto;
}

.dcc-brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.dcc-brand-name{
  font-size:1.45rem;
  font-weight:800;
  letter-spacing:.03em;
  color:#0a1d4d;
}

.dcc-brand-tagline{
  font-size:.85rem;
  color:#475569;
}

/* CTA group */
.dcc-cta-group{
  display:flex;
  align-items:center;
  gap:12px;
}

/* CTA base */
.dcc-cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:0 18px;
  border-radius:12px;
  font-size:.82rem;
  font-weight:600;
  border:1.5px solid #dfe6f3;
  background:#ffffff;
  color:#0f172a;
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease;
}

.dcc-cta:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(15,23,42,.15);
}

/* CTA text */
.dcc-cta-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.dcc-cta-text small{
  font-size:.68rem;
  opacity:.75;
}

.dcc-cta-text strong{
  font-size:.82rem;
  white-space:nowrap;
}

/* ===============================
   ICON — HARD RESET (NO SPHERE)
   =============================== */
.dcc-cta-icon{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:none !important;
  border:none !important;
  box-shadow:none !important;
  filter:none !important;
  opacity:1 !important;
}

/* FontAwesome cleanup */
.dcc-cta-icon i,
.dcc-cta-icon svg{
  color:inherit;
  fill:currentColor;
}

/* ===============================
   PRIMARY CTA (APPOINTMENT)
   =============================== */
.dcc-cta--primary{
  background:linear-gradient(90deg,#3db7ff,#005eff);
  border:none;
  color:#ffffff;
}

/* Force icon to visually disappear into gradient */
.dcc-cta--primary .dcc-cta-icon{
  background:transparent !important;
  box-shadow:none !important;
  color:#ffffff !important;
}

.dcc-cta--primary .dcc-cta-icon i,
.dcc-cta--primary .dcc-cta-icon svg{
  color:#ffffff !important;
  fill:#ffffff !important;
}

/* ===============================
   DIAMOND SHINE EFFECT (FINAL)
   =============================== */
.dcc-cta--primary::before{
  content:"";
  position:absolute;
  top:-60%;
  left:-140%;
  width:60%;
  height:220%;
  background:linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.45) 50%,
    transparent 100%
  );
  transform:skewX(-20deg);
  animation:dccDiamondShine 3.2s ease-in-out infinite;
  pointer-events:none;
}

@keyframes dccDiamondShine{
  0%{left:-140%}
  40%{left:140%}
  100%{left:140%}
}

/* ===============================
   MOBILE BEHAVIOR — LOCKED
   =============================== */
@media(max-width:768px){
  .dcc-header-inner{
    flex-direction:column;
    align-items:stretch;
  }

  .dcc-cta-group{
    width:100%;
  }

  .dcc-cta{
    flex:1;
    justify-content:center;
  }
}
/* =========================
   ICON NAV
   ========================= */
.nav-icons{
  display:grid;
  grid-template-columns:repeat(12,minmax(70px,1fr));
  gap:10px;
  max-width:1200px;
  margin:10px auto 20px;
  padding:0 12px;
}

@media(max-width:1024px){.nav-icons{grid-template-columns:repeat(6,1fr)}}
@media(max-width:600px){.nav-icons{grid-template-columns:repeat(3,1fr)}}

.nav-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:82px;
  border-radius:14px;
  font-size:13px;
  font-weight:600;
  color:#fff;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.nav-btn i{font-size:18px;margin-bottom:6px}
.nav-btn span{font-size:12px;line-height:1.1}

.nav-btn.home{background:linear-gradient(135deg,#34c759,#28a745)}
.nav-btn.office{background:linear-gradient(135deg,#00c6ff,#0072ff)}
.nav-btn.portfolio{background:linear-gradient(135deg,#ff9966,#ff5e62)}
.nav-btn.videos{background:linear-gradient(135deg,#a18cd1,#fbc2eb)}
.nav-btn.tips{background:linear-gradient(135deg,#f6d365,#fda085)}
.nav-btn.vastu{background:linear-gradient(135deg,#43cea2,#185a9d)}
.nav-btn.blog{background:linear-gradient(135deg,#84fab0,#8fd3f4)}
.nav-btn.brochure{background:linear-gradient(135deg,#00dbde,#0073e6)}
.nav-btn.happy{background:linear-gradient(135deg,#fbd786,#f7797d)}
.nav-btn.about{background:linear-gradient(135deg,#00c3ff,#ffff1c);color:#07224a}
.nav-btn.career{background:linear-gradient(135deg,#f093fb,#f5576c)}
.nav-btn.contact{background:linear-gradient(135deg,#667eea,#764ba2)}

/* =========================
   HERO
   ========================= */
.hero{padding:clamp(28px,6vw,70px) 0}

.h-tag{
  display:inline-block;
  padding:6px 14px;
  border-radius:999px;
  background:#eef4ff;
  color:var(--brand);
  font-size:13px;
  font-weight:600;
}

.hero h1{
  font-size:clamp(26px,4vw,44px);
  line-height:1.1;
  margin:14px 0;
}

.muted{color:var(--muted)}

.cta{display:flex;flex-wrap:wrap;gap:10px}

.btn{
  display:inline-block;
  padding:12px 22px;
  border-radius:999px;
  font-weight:600;
}

.btn--primary{background:var(--brand);color:#fff}
.btn--ghost{background:#fff;border:1px solid var(--brand);color:var(--brand)}

/* =========================
   SECTIONS & GRIDS
   ========================= */
.section{padding:40px 0;border-top:1px solid var(--line)}

.grid{display:grid;gap:18px}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}

@media(max-width:1024px){
  .grid--3,.grid--4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .grid--3,.grid--4{grid-template-columns:1fr}
}

/* =========================
   CARDS
   ========================= */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}

/* =========================
   SERVICES / CALCULATORS
   ========================= */
.services{
  background:var(--soft);
  padding:40px 0;
  border-top:1px solid var(--line);
}

.services h2{text-align:center;margin-bottom:18px}

.svc-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(4,1fr);
  max-width:1100px;
  margin:0 auto;
}

@media(max-width:1024px){.svc-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){.svc-grid{grid-template-columns:repeat(2,1fr)}}

.svc-card{
  background:#fff;
  border-radius:14px;
  padding:16px 12px;
  text-align:center;
  border:1px solid var(--line);
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}

.svc-icon{font-size:22px;margin-bottom:8px}
.svc-title{font-weight:600;font-size:14px}
.svc-note{font-size:12px;color:var(--muted)}

.svc--office{background:linear-gradient(135deg,#00c6ff,#0072ff);color:#fff;border:0}
.svc--home{background:linear-gradient(135deg,#34c759,#28a745);color:#fff;border:0}
.svc--kitchen{background:linear-gradient(135deg,#f6d365,#fda085);border:0}
.svc--furniture{background:linear-gradient(135deg,#a18cd1,#fbc2eb);border:0}

/* =========================
   PORTFOLIO (FINAL · SAFE)
   ========================= */

.tile{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 10px 20px rgba(0,0,0,.06);
}

/* Landscape images */
.tile img{
  width:100%;
  height:220px;          /* desktop */
  object-fit:cover;
  display:block;
}

.tile .muted{
  padding:10px;
  font-size:14px;
}

/* Tablet */
@media (max-width:1024px){
  .tile img{
    height:200px;
  }
}

/* Mobile */
@media (max-width:600px){

  /* Landscape height */
  .tile img{
    height:180px;
  }

  /* 🔑 FIX: prevent edge touching */
  .wrap.section[aria-label="Portfolio highlights"]{
    padding-left:8px;   /* ~2mm visual gap */
    padding-right:8px;
  }

  .wrap.section[aria-label="Portfolio highlights"] .grid{
    gap:12px;
  }
}
/* =========================
   YOUTUBE — FINAL (SAFE & PREMIUM)
   ========================= */

/* Outer grid */
.yt-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); /* BIGGER cards */
  gap:22px;

  max-width:1200px;
  margin:30px auto 0;

  padding:0 14px;                 /* 🔑 prevents screen touch */
}

/* Video card */
.yt-card{
  position:relative;
  aspect-ratio:16 / 9;
  border-radius:18px;
  overflow:hidden;
  background:#000;
  box-shadow:0 10px 26px rgba(0,0,0,.14);
}

/* Thumbnail */
.yt-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Play overlay */
.yt-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

/* Play circle */
.yt-play::before{
  content:"";
  width:64px;
  height:64px;
  background:rgba(0,0,0,.55);
  border-radius:50%;
  box-shadow:0 6px 16px rgba(0,0,0,.4);
}

/* Play triangle */
.yt-play::after{
  content:"";
  position:absolute;
  margin-left:4px;
  border-left:18px solid #fff;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
}

/* =========================
   RESPONSIVE REFINEMENT
   ========================= */

/* Laptop & large screens → premium look */
@media (min-width: 1024px){
  .yt-grid{
    gap:26px;
  }
}

/* Mobile — no edge touch, still bold */
@media (max-width: 600px){
  .yt-grid{
    grid-template-columns:1fr;
    padding:0 12px;              /* clean breathing space */
  }

  .yt-card{
    border-radius:16px;
  }

  .yt-play::before{
    width:54px;
    height:54px;
  }

  .yt-play::after{
    border-left-width:15px;
    border-top-width:10px;
    border-bottom-width:10px;
  }
}
/* =========================
   TESTIMONIALS — FINAL SAFE
   NO JS · NO GLITCH
   ========================= */

.clients{
  background:#fafafa;
  padding:50px 0;
  text-align:center;
  border-top:1px solid var(--line);
}

/* Container */
.testimonial-slider{
  max-width:900px;
  margin:0 auto 40px;
}

/* EACH SLIDE — NORMAL FLOW */
.slide{
  display:none;                 /* hide by default */
  max-width:100%;
  margin:0 auto;
}

/* ONLY ACTIVE ONE SHOWS */
.slide.active{
  display:block;
}

/* LOGO */
.slide img{
  max-width:160px;
  height:auto;
  margin:0 auto 14px;
  object-fit:contain;
  display:block;
}

/* QUOTE */
.slide p{
  max-width:720px;
  margin:0 auto 10px;
  font-style:italic;
  font-size:16px;
  line-height:1.6;
}

/* AUTHOR */
.slide h4{
  margin:0;
  font-size:14px;
  font-weight:600;
}

/* CLIENT LOGOS GRID */
.client-logos{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:18px;
  align-items:center;
  max-width:1100px;
  margin:30px auto 0;
  padding:0 12px;
}

.client-logos img{
  width:100%;
  max-width:150px;
  height:70px;
  object-fit:contain;
  margin:0 auto;
  filter:grayscale(100%);
  opacity:.9;
}

/* MOBILE */
@media (max-width:600px){
  .slide img{max-width:140px;}
  .slide p{font-size:15px;}
}
/* =========================
   VIRTUAL (FINAL · LOCKED)
   ========================= */

.virtual{
  padding:50px 0;
  text-align:center;
  border-top:1px solid var(--line);
}

/* GRID — DEFAULT (DESKTOP/LAPTOP) */
.virtual-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:18px;
  max-width:1100px;
  margin:0 auto;
  padding:0 12px;
}

/* CARD */
.vcard{
  background:#fff;
  border:2px solid #FFD700;
  border-radius:16px;
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:600;
  color:#004AAD;
  padding:10px;
}

/* LABEL — KEEP WORDS TOGETHER */
.vcard .label{
  display:block;
  font-size:14px;
  line-height:1.2;
  white-space:normal;
  word-break:keep-all;      /* 🔑 prevents DELECON / s split */
}

/* =========================
   MOBILE — FORCE 3 PER ROW
   ========================= */
@media (max-width:600px){

  .virtual{
    padding:40px 0;
  }

  .virtual-grid{
    grid-template-columns:repeat(3,1fr);   /* 🔑 EXACTLY 3 PER ROW */
    gap:12px;
    padding:0 14px;                         /* edge safety */
  }

  .vcard{
    min-height:95px;
    padding:8px;
  }

  .vcard .label{
    font-size:13px;
    line-height:1.15;
  }
}
/* =========================
   SEO
   ========================= */
.seo-text{
  max-width:1000px;
  margin:30px auto;
  padding:0 15px;
}

.seo-text p{text-align:justify}

/* =========================
   FOOTER (FINAL · SAFE)
   ========================= */

.foot{
  padding:26px 0;
  border-top:1px solid var(--line);
  font-size:14px;
}

/* QUICK LINKS GRID — DEFAULT */
.foot .grid{
  gap:12px;
}

/* FOOTER CARDS */
.foot .card{
  text-align:center;
  padding:12px 10px;
  border-radius:12px;
  font-weight:600;
}

/* REGISTERED OFFICE BLOCK */
.footer-block{
  text-align:center;
  max-width:520px;
  margin:25px auto 0;
}

.footer-block img{
  display:block;
  margin:0 auto;
}

/* =========================
   MOBILE — FORCE 3 PER ROW
   ========================= */
@media (max-width:600px){

  .foot .grid{
    grid-template-columns:repeat(3,1fr);   /* 🔑 exactly 3 buttons */
    gap:10px;
  }

  .foot .card{
    font-size:13px;
    padding:10px 6px;
  }
}
/* =========================
   AWARDS — FINAL PERFECT (FOR ALL CARDS)
   ========================= */

#awards{
  background:linear-gradient(135deg,#0D4AA0,#112B5E);
  padding:34px 0;
  color:#fff;
}

/* grid spacing */
#awards .grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

/* tile/card */
#awards .tile{
  background:#fff;
  border-radius:22px;
  overflow:hidden; /* 🔒 makes rounding compulsory */
  box-shadow:0 14px 34px rgba(0,0,0,.18);
  border:0;
}

/* normalize ANY first inner wrapper (your inline div) */
#awards .tile > div{
  border-radius:0 !important;   /* don't fight outer rounding */
  overflow:hidden !important;
  padding:0 !important;         /* removes unwanted gap */
  margin:0 !important;
  background:#fff !important;
}

/* image – always full width, no side gap, rounded forced */
#awards .tile img{
  width:100% !important;
  height:auto !important;          /* no crop */
  display:block !important;
  margin:0 !important;             /* removes gap */
  padding:0 !important;            /* removes gap */
  border:0 !important;
  border-radius:0 !important;      /* outer tile controls rounding */
  object-fit:cover;                /* fills like your perfect SS2 */
}

/* bottom title */
#awards .tile .muted{
  padding:14px 10px !important;
  text-align:center;
  font-size:16px;
  font-weight:700;
  color:#0D4AA0 !important;
  background:#fff !important;
  margin:0 !important;
}

/* ===== responsive ===== */
@media (max-width:1024px){
  #awards .grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:600px){
  #awards{padding:26px 0;}
  #awards .grid{
    grid-template-columns:1fr;
    padding:0 12px;
    gap:18px;
  }
}
/* =========================
   HOUZZ BADGE — HARD FIX
   ========================= */

.houzz-badge {
  display: block !important;          /* KILL flex row inheritance */
  width: 100%;
  text-align: center;
  margin: 30px auto;
}

.houzz-badge a {
  display: block;                     /* force new line */
}

.houzz-badge img {
  display: block;                     /* center image */
  margin: 0 auto;
  width: 125px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.12);
}

.houzz-note {
  display: block;                     /* force below image */
  margin-top: 10px;
  font-size: 14px;
  color: #777;
  line-height: 1.4;
  text-align: center;
  white-space: normal;                /* prevent side flow */
}