/* =========================================================================
   Danval Lionheart LLC — Construction & Renovation clone
   Design tokens sourced 1:1 from the reference theme.json
   (theme: "Construction And Renovation" by SuperbThemes)
   ========================================================================= */

:root {
  /* Palette (from theme.json) */
  --primary:        #ffbf43;   /* accent amber */
  --primary-hover:  #efb441;
  --mono-1:         #303030;   /* headings + body text */
  --mono-2:         #71717A;   /* muted text */
  --mono-3:         #d4d4d8;   /* borders */
  --mono-4:         #fafaf9;   /* light section background */
  --featured:       #44403c;   /* warm dark (footer) */
  --base:           #ffffff;
  --contrast-light: #ffffff;
  --contrast-dark:  #000000;

  --font:           "Instrument Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --content:        1200px;
  --radius-pill:    100px;
  --radius:         14px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mono-1);
  background: var(--base);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 500; line-height: 1.2; color: var(--mono-1); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--primary); color: var(--mono-1); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons (pill, per theme.json) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font); font-weight: 500; font-size: 15px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--contrast-light); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--mono-1); }
.btn--lg { padding: 16px 34px; font-size: 16px; }

/* ---------- Section headings ---------- */
.section-title { font-size: clamp(28px, 4vw, 44px); }
.section-sub { color: var(--mono-2); font-size: 18px; max-width: 720px; }
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--mono-3); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand {
  font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--mono-1);
  text-transform: uppercase; margin-right: auto;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 16px; color: var(--mono-1); position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--primary); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--mono-3);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--mono-1); transition: .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 8px; padding: 16px 24px 24px;
  background: #fff; border-bottom: 1px solid var(--mono-3);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--mono-4); font-size: 17px; }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding: 120px 0 80px; color: #fff; text-align: center;
  background: url("../assets/images/hero.jpg") center/cover no-repeat fixed;
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,20,15,.55), rgba(24,20,15,.72)); }
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero__title { color: #fff; font-size: clamp(38px, 7vw, 84px); font-weight: 700; letter-spacing: .01em; }
.hero__lead { color: rgba(255,255,255,.92); font-size: clamp(18px, 2.4vw, 26px); margin-bottom: 34px; }

/* ---------- About ---------- */
.about { padding: 100px 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; }
.about__subtitle { font-size: 22px; margin-top: 22px; }
.check-list { display: grid; gap: 12px; margin: 0 0 28px; }
.check-list li { position: relative; padding-left: 34px; color: var(--mono-1); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  background-color: var(--primary);
}

/* ---------- Services ---------- */
.services { padding: 100px 0; background: var(--mono-4); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service-card {
  background: #fff; border: 1px solid var(--mono-3); border-radius: var(--radius);
  padding: 36px 26px; text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card__icon { display: inline-flex; width: 84px; height: 84px; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-card__icon img { width: 84px; height: 84px; object-fit: contain; }
.service-card__title { font-size: 20px; }
.service-card__text { color: var(--mono-2); font-size: 15px; margin: 0; }

/* ---------- Testimonial (2 cột: chữ trái + ảnh phải) ---------- */
.testimonial { padding: 100px 0; background: var(--base); }
.testimonial__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.stars { display: flex; gap: 4px; font-size: 22px; color: var(--primary); margin-bottom: 20px; }
.testimonial__text { font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; color: var(--mono-1); line-height: 1.5; margin: 0 0 26px; }
.testimonial__person strong { display: block; font-size: 18px; color: var(--mono-1); }
.testimonial__person span { color: var(--mono-2); font-size: 14px; }
.testimonial__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery { padding: 100px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Commitment ---------- */
.commitment { padding: 100px 0; background: var(--mono-4); }
.commitment__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.commitment__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

/* ---------- Why choose (2 cột: ảnh trái + checklist phải) ---------- */
.why { padding: 100px 0; }
.why__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.why__media { position: relative; }
.why__media::before {
  content: ""; position: absolute; top: -26px; left: -26px; width: 55%; height: 60%;
  background: var(--mono-4); border-radius: var(--radius); z-index: 0;
}
.why__media img {
  position: relative; z-index: 1; width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-md); object-fit: cover;
}
.why__content .section-title { margin-bottom: 34px; }
.why-list { display: grid; gap: 26px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list__check {
  flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
}
.why-list__check::before {
  content: ""; width: 26px; height: 26px;
  background-color: var(--mono-1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/22px no-repeat;
}
.why-list h3 { font-size: 18px; margin: 0 0 4px; }
.why-list p { color: var(--mono-2); margin: 0; font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; padding: 120px 0; text-align: center; color: #fff;
  background: url("../assets/images/cta.jpg") center/cover no-repeat;
}
.cta__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,20,15,.6), rgba(24,20,15,.78)); }
.cta__inner { position: relative; z-index: 1; }
.cta__title { color: #fff; font-size: clamp(32px, 5vw, 56px); margin-bottom: 30px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--featured); color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.4fr; gap: 40px; padding: 72px 24px 48px; }
.footer-brand__name { color: #fff; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.footer-brand__desc { color: rgba(255,255,255,.72); font-size: 15px; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 18px; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.78); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact + .footer-contact { margin-top: 14px; }
.footer-contact__icon { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; margin-top: 2px; }
.footer-contact__icon--svg { display: inline-flex; align-items: center; justify-content: center; color: #fff; width: 30px; height: 30px; }
.footer-contact__icon--svg svg { width: 26px; height: 26px; }
.footer-contact p { font-size: 15px; margin: 0; }
.footer-contact a { color: rgba(255,255,255,.82); }
.footer-contact a:hover { color: var(--primary); }
.social-list { display: flex; gap: 12px; margin-top: 20px; }
.social-list a {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background .2s, color .2s;
}
.social-list a:hover { background: var(--primary); color: var(--mono-1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: 14px; color: rgba(255,255,255,.6); text-align: center; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 200; max-width: 420px;
  background: #fff; color: var(--mono-1); border: 1px solid var(--mono-3);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 22px 24px;
  transform: translateY(140%); opacity: 0; transition: transform .4s ease, opacity .4s ease;
}
.cookie.is-visible { transform: translateY(0); opacity: 1; }
.cookie h5 { font-size: 17px; }
.cookie p { font-size: 13.5px; color: var(--mono-2); }
.cookie__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cookie__link { background: none; border: none; color: var(--mono-2); font-family: var(--font); font-size: 14px; cursor: pointer; padding: 8px 4px; }
.cookie__link:hover { color: var(--mono-1); text-decoration: underline; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 150; width: 46px; height: 46px;
  border: none; border-radius: 50%; background: var(--primary); color: var(--mono-1);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; box-shadow: var(--shadow-md);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-hover); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; gap: 40px; }
  .why__media::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn--primary { display: none; }
  .about__grid, .commitment__grid, .testimonial__grid { grid-template-columns: 1fr; gap: 36px; }
  .commitment__media { order: -1; }
  .hero { background-attachment: scroll; min-height: 78vh; }
  .about, .services, .gallery, .commitment, .why, .testimonial { padding: 70px 0; }
}
@media (max-width: 560px) {
  .service-grid, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
