/* Trường Thành Land — Landing styles */
:root {
  --color-navy: #0c1a2e;
  --color-navy-mid: #152a45;
  --color-navy-light: #1e3a5f;
  --color-white: #ffffff;
  --color-cream: #f6f4ef;
  --color-muted: #5c6570;
  --color-gold: #c9a227;
  --color-gold-dark: #a8861f;
  --color-gold-soft: rgba(201, 162, 39, 0.12);
  --color-cta-red: #c41e1e;
  --color-cta-red-dark: #9a1818;
  --color-cta-red-bright: #e02424;
  --shadow-soft: 0 12px 40px rgba(12, 26, 46, 0.08);
  --shadow-card: 0 8px 32px rgba(12, 26, 46, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --font-body: "Be Vietnam Pro", Arial, sans-serif;
  --font-display: "Be Vietnam Pro", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-navy);
  background: var(--color-white);
  padding-bottom: max(5.5rem, env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  body {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-navy-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-navy);
  color: var(--color-white);
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(12, 26, 46, 0.06);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--color-gold-dark);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-navy);
}

.btn--primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-navy);
  text-decoration: none;
}

.btn--ghost {
  background: var(--color-gold-soft);
  color: var(--color-navy-mid);
}

.btn--ghost:hover {
  background: rgba(201, 162, 39, 0.22);
  text-decoration: none;
}

/* Nổi bật CTA — đỏ + hiệu ứng (tắt khi prefers-reduced-motion) */
.btn--cta-red {
  background: linear-gradient(180deg, var(--color-cta-red-bright) 0%, var(--color-cta-red) 55%, var(--color-cta-red-dark) 100%);
  color: #fff !important;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(196, 30, 30, 0.45);
  animation: cta-pulse-glow 2.2s ease-in-out infinite;
}

.btn--cta-red:hover {
  filter: brightness(1.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--cta-red:focus-visible {
  outline-color: #fff;
}

@keyframes cta-pulse-glow {
  0%,
  100% {
    box-shadow: 0 4px 18px rgba(196, 30, 30, 0.45), 0 0 0 0 rgba(224, 36, 36, 0.45);
  }
  50% {
    box-shadow: 0 6px 28px rgba(196, 30, 30, 0.55), 0 0 0 10px rgba(224, 36, 36, 0);
  }
}

@keyframes cta-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.btn--cta-red.btn--shimmer {
  background-image: linear-gradient(
    105deg,
    var(--color-cta-red-dark) 0%,
    var(--color-cta-red-bright) 40%,
    #ff6b6b 50%,
    var(--color-cta-red-bright) 60%,
    var(--color-cta-red-dark) 100%
  );
  background-size: 200% 100%;
  animation: cta-shimmer 3.5s linear infinite, cta-pulse-glow 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .btn--cta-red,
  .btn--cta-red.btn--shimmer {
    animation: none;
  }
}

.cta-strip {
  background: linear-gradient(90deg, #3a0a0a 0%, var(--color-cta-red-dark) 35%, var(--color-cta-red) 100%);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

.cta-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .cta-strip .container {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
  }
}

.cta-strip p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 36rem;
  opacity: 0.95;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}

.cta-row--center {
  justify-content: center;
}

.project-card__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section--projects-top {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-navy);
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--color-white);
  border-bottom: 1px solid rgba(12, 26, 46, 0.08);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 26, 46, 0.06);
}

.nav-mobile .btn {
  margin-top: 0.75rem;
  justify-content: center;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  color: var(--color-white);
  background-color: var(--color-navy);
  background-image: linear-gradient(
      105deg,
      rgba(12, 26, 46, 0.92) 0%,
      rgba(12, 26, 46, 0.75) 45%,
      rgba(12, 26, 46, 0.55) 100%
    ),
    url("https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=1920&q=75");
  background-size: cover;
  background-position: center;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.hero .hero-heading,
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 36rem;
  opacity: 0.92;
  margin: 0 0 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.75;
  max-width: 32rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--cream {
  background: var(--color-cream);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-navy);
}

.section-intro {
  color: var(--color-muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.disclosure-banner {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-gold);
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 26, 46, 0.06);
}

/* Benefits */
.benefits-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(12, 26, 46, 0.08);
  box-shadow: var(--shadow-soft);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-gold-soft);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.benefit h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.benefit p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Projects */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }

  .project-card--featured {
    grid-column: 1 / -1;
  }
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(12, 26, 46, 0.08);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.project-card--featured {
  border: 2px solid var(--color-gold);
  box-shadow: 0 16px 48px rgba(201, 162, 39, 0.18);
}

@media (min-width: 900px) {
  .project-card--featured {
    flex-direction: row;
    min-height: 320px;
  }

  .project-card--featured .project-card__media {
    flex: 1.1;
    min-height: 320px;
    aspect-ratio: auto;
  }

  .project-card--featured .project-card__body {
    flex: 1;
    justify-content: center;
    padding: 2rem 2.25rem;
  }
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-navy);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.project-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.project-meta strong {
  color: var(--color-navy);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  flex: 1;
}

/* Contact form */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 1rem;
}

.contact-card p {
  margin: 0 0 1rem;
  opacity: 0.88;
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--color-gold);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.form-panel {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 26, 46, 0.1);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(12, 26, 46, 0.15);
  border-radius: 8px;
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-soft);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-error {
  font-size: 0.8rem;
  color: #b42318;
  margin-top: 0.25rem;
  display: none;
}

.form-group.is-invalid .form-error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: #b42318;
}

.form-actions {
  margin-top: 1.25rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(34, 139, 34, 0.12);
  color: #1a4d1a;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer .brand-name {
  color: var(--color-white);
}

.site-footer .brand-tag {
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

.footer-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Inner pages */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  color: var(--color-white);
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  opacity: 0.85;
  max-width: 40rem;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose p,
.prose li {
  color: var(--color-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--color-gold);
}

/* Hotline trong header (desktop) */
.header-tel {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 0.5rem;
  text-decoration: none;
  color: var(--color-navy);
  line-height: 1.2;
}

.header-tel:hover {
  text-decoration: none;
  color: var(--color-cta-red);
}

.header-tel__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-weight: 600;
}

.header-tel__number {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .header-tel {
    display: flex;
  }
}

.nav-mobile-tel {
  margin: 0 0 0.5rem;
  justify-content: center;
  text-align: center;
}

@media (min-width: 900px) {
  .nav-mobile-tel {
    display: none !important;
  }
}

.hotline-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(196, 30, 30, 0.08);
  border: 1px solid rgba(196, 30, 30, 0.2);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.hotline-inline strong {
  color: var(--color-navy);
}

/* Nút nổi Gọi + Zalo — góc trái dưới */
.float-actions {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.float-actions__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, filter 0.15s;
}

.float-actions__btn:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
  text-decoration: none;
}

.float-actions__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.float-actions__btn--call {
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
  animation: float-call-pulse 2s ease-in-out infinite;
}

.float-actions__btn--zalo {
  background: linear-gradient(180deg, #0091ea 0%, #0068ff 100%);
}

@keyframes float-call-pulse {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(46, 125, 50, 0.45);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(46, 125, 50, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-actions__btn--call {
    animation: none;
  }
}

.float-actions__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.float-actions__btn--zalo .float-actions__icon {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Ẩn nút đăng ký tư vấn trên mobile */
@media (max-width: 899px) {
  .header-consult-btn {
    display: none !important;
  }
}