/* ===================================================================
   HY Home Design — stylesheet
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --font-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --color-bg: #ffffff;
  --color-bg-soft: #f5f6f8;
  --color-bg-soft-2: #eceef2;
  --color-ink: #14181f;
  --color-ink-soft: #4c5566;
  --color-ink-faint: #8a92a3;
  --color-border: #e3e6ec;
  --color-border-soft: #edeff3;

  /* Brand: navy/charcoal is the primary identity colour. Blue is an accent
     used only for CTAs, links and small highlights, never as a fill colour. */
  --color-navy: #10182a;
  --color-navy-soft: #1b2436;
  --color-accent: #1877f2;
  --color-accent-dark: #0f5fd1;

  --radius-btn: 8px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(16, 24, 42, 0.08);
  --shadow-md: 0 10px 28px rgba(16, 24, 42, 0.09);
  --shadow-lg: 0 20px 48px rgba(16, 24, 42, 0.14);

  --container-w: 1200px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container { padding: 0 32px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 40px; }
}

section { position: relative; }

.section {
  padding: 88px 0;
}
@media (max-width: 900px) {
  .section { padding: 64px 0; }
}

.section-soft { background: var(--color-bg-soft); }
.section-dark { background: var(--color-navy); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }

h2.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-ink-soft);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-navy); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-white {
  background: #fff;
  color: var(--color-navy);
}
.btn-white:hover { background: var(--color-bg-soft); }

.btn-lg { padding: 18px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}
.site-header.is-scrolled {
  height: 72px;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  color: var(--color-ink);
  flex-shrink: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.brand-name { line-height: 1.1; }
.brand-name span { display: block; font-size: 11px; font-weight: 600; color: var(--color-ink-faint); letter-spacing: 0.04em; text-transform: uppercase; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { color: var(--color-ink); background: var(--color-bg-soft); }
.site-nav a.is-active { color: var(--color-navy); background: var(--color-bg-soft); font-weight: 800; }
.nav-cta { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-ink);
}
.header-call svg { width: 18px; height: 18px; color: var(--color-accent); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle::before, .nav-toggle::after { position: absolute; }
.nav-toggle::before { transform: translateY(-7px); }
.nav-toggle::after { transform: translateY(7px); }
body.nav-open .nav-toggle span { opacity: 0; }
body.nav-open .nav-toggle::before { transform: translateY(0) rotate(45deg); }
body.nav-open .nav-toggle::after { transform: translateY(0) rotate(-45deg); }

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  body.nav-open .site-nav { transform: translateX(0); }
  .site-nav a { padding: 16px 18px; font-size: 17px; border-bottom: 1px solid var(--color-border-soft); border-radius: 0; }
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-scrolled { height: var(--header-h); }
  .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 16px 28px;
    border-radius: var(--radius-btn);
    background: var(--color-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    border-bottom: none !important;
  }
  .nav-cta svg { width: 20px; height: 20px; }
}

/* ---------- Hero (full-bleed photo) ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 45%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,12,22,0.92) 0%, rgba(8,12,22,0.8) 32%, rgba(8,12,22,0.5) 60%, rgba(8,12,22,0.28) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 620px; }

.hero-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-btn);
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}
.hero-logo-badge img { width: 30px; height: 30px; border-radius: 6px; }

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em;
  color: #fff;
}
.hero h1 .accent { color: #6ba6ff; }
.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.hero-meta-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.88); }
.hero-meta-item svg { width: 20px; height: 20px; color: rgba(255,255,255,0.88); flex-shrink: 0; }

@media (max-width: 640px) {
  .hero { min-height: 560px; }
}

/* ---------- Category / icon grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-border); }
.cat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-card h3 { font-size: 17px; font-weight: 700; }
.cat-card p { font-size: 14px; color: var(--color-ink-soft); line-height: 1.55; font-weight: 500; }
.cat-card .cat-link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--color-accent); display: inline-flex; align-items: center; gap: 6px; }
.cat-card .cat-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.cat-card:hover .cat-link svg { transform: translateX(3px); }

@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card { padding: 8px 4px; }
.why-num {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--color-navy);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { color: var(--color-ink-soft); line-height: 1.6; font-weight: 500; font-size: 15px; }

@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Portfolio / gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-soft-2);
  border: 1px solid var(--color-border);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(16,24,42,0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Service sections (services page) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-block:last-child { border-bottom: none; }
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 30px; height: 30px; }
.service-content h3 { font-size: 22px; margin-bottom: 10px; }
.service-content p { color: var(--color-ink-soft); line-height: 1.65; font-weight: 500; font-size: 15.5px; max-width: 640px; }
.service-content .btn { margin-top: 18px; }

@media (max-width: 640px) {
  .service-block { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  position: relative;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.75); font-weight: 500; font-size: 15.5px; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

@media (max-width: 800px) {
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}

/* ---------- About page ---------- */
.about-hero {
  padding: calc(var(--header-h) + 56px) 0 72px;
  background: var(--color-bg-soft);
}
.about-hero .section-head { max-width: 760px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3.2;
  background: var(--color-bg-soft-2);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 18px; }
.split-text p { color: var(--color-ink-soft); line-height: 1.7; font-weight: 500; font-size: 16px; margin-bottom: 16px; }
.split-text p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-img { order: -1; }
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill-list span {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 28px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 14.5px; color: var(--color-ink-soft); font-weight: 500; line-height: 1.6; }
.contact-info-item a:hover { color: var(--color-accent); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/11;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-btn:hover { background: var(--color-navy); color: #fff; }
.social-btn svg { width: 20px; height: 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--color-ink); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-soft);
  font-size: 15px;
  color: var(--color-ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--color-ink-faint); margin-top: 14px; font-weight: 500; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.68);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 42px; height: 42px; border-radius: var(--radius-sm); }
.footer-brand span { font-weight: 800; font-size: 18px; color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 18px; letter-spacing: 0.03em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col p { font-size: 14.5px; font-weight: 500; }
.footer-col a:hover { color: #fff; }
.footer-desc { font-size: 14.5px; line-height: 1.65; max-width: 320px; font-weight: 500; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--color-accent); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 400;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Reveal (JS-driven via GSAP, this is just a safe fallback) ---------- */
[data-reveal], [data-reveal-item] { will-change: transform, opacity; }
.no-js [data-reveal], .no-js [data-reveal-item] { opacity: 1 !important; transform: none !important; }
