:root {
  --primary: #313359;
  --secondary: #d9d5d2;
  --dark: #171a26;
  --white: #ffffff;
  --accent-1: #3f4359;
  --accent-2: #4f5873;
  --line: #06c755;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
address { font-style: normal; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== Navbar ========== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(49, 51, 89, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(23, 26, 38, 0.15);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo-svg {
  width: 38px;
  height: 38px;
  fill: var(--white);
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--white);
}

.logo-text span { color: var(--secondary); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--secondary); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 80px 24px;
  overflow: hidden;
  background-image: url('images/portfolio-01.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 26, 38, 0.78) 0%, rgba(49, 51, 89, 0.7) 60%, rgba(79, 88, 115, 0.55) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 880px; }

.hero .tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(217, 213, 210, 0.18);
  border: 1px solid rgba(217, 213, 210, 0.35);
  border-radius: 50px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  margin-bottom: 22px;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(15px, 1.7vw, 19px);
  color: var(--secondary);
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover { background: var(--white); color: var(--primary); }

.btn-line {
  background: var(--line);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.btn-line:hover { background: #05a847; color: var(--white); }

/* ========== Sections ========== */
section { padding: 90px 24px; }

.section-title { text-align: center; margin-bottom: 50px; }

.section-title h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-title .line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 18px;
  border-radius: 4px;
}

.section-title p {
  color: var(--accent-2);
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
}

/* ========== About ========== */
.about { background: var(--secondary); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.about-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 12px;
  border-top: 4px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(49, 51, 89, 0.15);
}

.about-card .icon {
  width: 52px; height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  margin-bottom: 18px;
}

.about-card h3 {
  color: var(--primary);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-card p { color: var(--accent-1); font-size: 15px; }

/* ========== Gallery ========== */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: var(--secondary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  background: rgba(49, 51, 89, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255, 255, 255, 0);
  transition: all 0.3s;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item:hover::after {
  background: rgba(49, 51, 89, 0.45);
  color: rgba(255, 255, 255, 1);
}

/* ========== Lightbox ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 26, 38, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92%;
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 300;
}

/* ========== Renovation services ========== */
.renovate { background: var(--secondary); }

.renovate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.reno-item {
  padding: 24px 22px;
  background: var(--white);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: background 0.25s, transform 0.25s;
}

.reno-item:hover {
  background: var(--primary);
  transform: translateX(4px);
}

.reno-item:hover .reno-text,
.reno-item:hover .check { color: var(--white); }

.check {
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
  transition: color 0.25s;
}

.reno-text {
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.25s;
}

/* ========== Contract steps ========== */
.contract { background: var(--primary); color: var(--white); }

.contract .section-title h2 { color: var(--white); }
.contract .section-title .line { background: var(--secondary); }
.contract .section-title p { color: var(--secondary); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
  list-style: none;
}

.step {
  background: var(--accent-1);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
}

.step:hover { transform: translateY(-6px); }

.step-num {
  width: 56px; height: 56px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
  margin: 0 auto 18px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.step p { color: var(--secondary); font-size: 14px; }

/* ========== Buy section ========== */
.buy { background: var(--secondary); }

.buy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.buy-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 18px;
}

.buy-text p {
  color: var(--accent-1);
  margin-bottom: 24px;
  font-size: 16px;
}

.buy-list { list-style: none; }

.buy-list li {
  background: var(--white);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.buy-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
}

.buy-cta {
  background: var(--primary);
  color: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
}

.buy-cta h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
}

.buy-cta p {
  color: var(--secondary);
  margin-bottom: 24px;
}

/* ========== Contact + LINE QR ========== */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 30px;
}

.contact-info h3 {
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.contact-en {
  color: var(--accent-2);
  font-size: 14px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--secondary);
}

.contact-list strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.contact-list span {
  color: var(--accent-1);
  font-size: 15px;
  line-height: 1.6;
}

.qr-card {
  background: linear-gradient(145deg, var(--primary) 0%, var(--accent-2) 100%);
  color: var(--white);
  padding: 36px 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(49, 51, 89, 0.25);
}

.qr-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.line-icon {
  width: 28px;
  height: 28px;
  color: var(--line);
  background: var(--white);
  border-radius: 6px;
  padding: 3px;
}

.qr-card h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
}

.qr-card p {
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 22px;
}

.qr-image-wrap {
  background: var(--white);
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========== Footer ========== */
footer {
  background: var(--dark);
  color: var(--secondary);
  padding: 60px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-grid p,
.footer-grid a,
.footer-grid address {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.9;
  text-decoration: none;
  display: block;
}

.footer-grid a:hover { color: var(--white); }

.footer-logo {
  width: 56px;
  height: 56px;
  fill: var(--white);
  margin-bottom: 14px;
}

.footer-brand .brand-name {
  color: var(--white);
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.copyright {
  border-top: 1px solid var(--accent-1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--accent-2);
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    border-top: 1px solid var(--accent-1);
  }

  .nav-links.open { display: flex; }

  .buy-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  section { padding: 60px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 17px; }
  .logo-svg { width: 32px; height: 32px; }
  .hero { min-height: 80vh; }
  .qr-image-wrap { width: 200px; height: 200px; }
}
