/* ==========================================================================
   ATC HOME - KIẾN TRÚC & THIẾT KẾ XÂY DỰNG HIGH-END DESIGN SYSTEM
   Website: atchome.vn
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-navy: #0f172a;
  --secondary-navy: #1e293b;
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --accent-amber: #f59e0b;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   TOP BAR & NAVIGATION
   ========================================== */
.top-bar {
  background-color: var(--primary-navy);
  color: var(--text-light);
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar .flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  gap: 20px;
}

.top-info span i {
  color: var(--accent-amber);
  margin-right: 6px;
}

.navbar {
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-navy);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-header-quote {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-header-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 560px;
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('../images/hero_banner.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 60px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text h1 span {
  color: var(--accent-amber);
}

.hero-text p {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 90%;
}

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badge-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-item i {
  color: var(--accent-amber);
}

.hero-card-form {
  background: #ffffff;
  color: var(--text-dark);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.hero-card-form h3 {
  font-size: 20px;
  color: var(--primary-navy);
  margin-bottom: 6px;
  text-align: center;
}

.hero-card-form p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--secondary-navy);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--accent-gold-hover);
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
  background-color: var(--primary-navy);
  color: #fff;
  padding: 30px 0;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h2 {
  font-size: 32px;
  color: var(--accent-amber);
  font-weight: 800;
}

.stat-item p {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.subtitle {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 30px;
  color: var(--primary-navy);
  font-weight: 800;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.service-img {
  height: 190px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-body {
  padding: 20px;
}

.service-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-navy);
}

.service-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   CONSTRUCTION COST CALCULATOR WIDGET
   ========================================== */
.calculator-section {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 60px 0;
  border-radius: var(--radius-lg);
  margin: 40px 0;
}

.calc-box {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 30px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-form-grid .form-group {
  margin-bottom: 0;
}

.calc-form-grid label {
  color: #cbd5e1;
}

.calc-form-grid select,
.calc-form-grid input {
  background: #0f172a;
  color: #fff;
  border-color: #334155;
}

.calc-result-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-header h4 {
  color: var(--accent-amber);
  font-size: 16px;
  margin-bottom: 10px;
}

.result-total {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 15px 0;
}

.result-details {
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
}

.result-details div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* ==========================================
   PROJECTS GALLERY
   ========================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-navy);
  color: #fff;
  border-color: var(--primary-navy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}

.gallery-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-info {
  padding: 16px;
}

.gallery-info h4 {
  font-size: 16px;
  color: var(--primary-navy);
}

.gallery-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================
   COMMITMENTS & WORK PROCESS
   ========================================== */
.commitments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.commit-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent-gold);
}

.commit-card i {
  font-size: 28px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.commit-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--primary-navy);
}

.commit-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================
   FOOTER & FLOATING BAR
   ========================================== */
.footer {
  background-color: var(--primary-navy);
  color: #94a3b8;
  padding: 60px 0 20px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-col p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 12px;
}

.floating-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 10px 16px;
}

.action-flex {
  display: flex;
  gap: 10px;
}

.action-flex a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-call { background: #16a34a; }
.btn-zalo { background: #0284c7; }
.btn-quote { background: var(--accent-gold); }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .calc-form-grid { grid-template-columns: 1fr; }
  .floating-action-bar { display: block; }
  body { padding-bottom: 60px; }
}
