/* ============================================
   SOLIDBUILD CONSTRUCTION — Industrial Design
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1a252c;       /* Heavy Navy Blue */
  --primary-light: #2c3e50;
  --secondary: #f1c40f;     /* Construction Yellow */
  --secondary-hover: #f39c12;
  --accent: #7f8c8d;        /* Steel Grey */
  --bg-white: #ffffff;
  --bg-light: #f4f5f7;      /* Concrete Grey */
  --text-dark: #2c3e50;
  --text-body: #555555;
  
  --line-green: #06C755;
  --glow-line: rgba(6, 199, 85, 0.4);

  --font-en: 'Roboto', sans-serif;
  --font-th: 'Prompt', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  --shadow-sm: 0 5px 15px rgba(26, 37, 44, 0.08); /* heavy shadow */
  --shadow-md: 0 10px 30px rgba(26, 37, 44, 0.15);
  
  --radius-none: 0px;       /* Industrial rigid feel */
  --radius-sm: 4px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-th);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--text-dark); font-weight: 700; line-height: 1.3; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-sm); }
.section { padding: var(--space-xl) 0; }
.text-center { text-align: center; }

/* Buttons - Blocky and Geometric */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 35px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: var(--font-th);
}

.btn-yellow { background: var(--secondary); color: #111; }
.btn-yellow:hover { background: var(--secondary-hover); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(241, 196, 15, 0.4); }

.btn-outline-white { background: transparent; color: var(--bg-white); border: 2px solid var(--bg-white); }
.btn-outline-white:hover { background: var(--bg-white); color: var(--primary); transform: translateY(-3px); }

.title-accent {
  display: inline-block;
  color: var(--secondary);
  background: var(--primary);
  padding: 4px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header { position: sticky; top: 0; z-index: 1000; background: var(--bg-white); box-shadow: var(--shadow-sm); }

.top-bar { background: var(--primary); color: var(--bg-white); padding: 10px 0; font-size: 0.95rem; font-weight: 500; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-contact { display: flex; gap: 24px; align-items: center; }
.top-contact a { display: flex; align-items: center; gap: 8px; }
.top-contact a:hover { color: var(--secondary); }
.top-contact svg { width: 16px; height: 16px; fill: currentColor; }

.badge-trust { color: var(--secondary); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }

.main-nav { padding: 15px 0; border-bottom: 4px solid var(--secondary); }
.main-nav .container { display: flex; justify-content: space-between; align-items: center; }

.brand-logo { color: var(--primary); font-family: var(--font-en); font-size: 1.8rem; font-weight: 900; display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px; text-transform: uppercase; }
.brand-logo svg { width: 36px; height: 36px; fill: var(--secondary); }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { font-weight: 700; color: var(--text-dark); text-transform: uppercase; font-family: var(--font-en); font-size: 0.95rem; letter-spacing: 0.5px; }
.nav-links a:hover { color: var(--secondary); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 30px; height: 4px; background: var(--primary); border-radius: 2px; }

/* ============================================
   HERO BANNER
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 37, 44, 0.95) 0%, rgba(26, 37, 44, 0.7) 60%, rgba(26, 37, 44, 0.2) 100%);
  z-index: 2;
}

.hero .container { position: relative; z-index: 3; }

.hero-content { max-width: 650px; padding: 40px 0; border-left: 8px solid var(--secondary); padding-left: 30px; animation: slideIn 1s ease-out; }

@keyframes slideIn { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }

.hero-title { font-size: clamp(2.2rem, 4.5vw, 3.8rem); color: var(--bg-white); margin-bottom: 20px; line-height: 1.15; font-weight: 700; }
.hero-subtitle { font-size: 1.15rem; color: #cbd5e0; margin-bottom: 40px; font-weight: 400; border-left: 2px solid rgba(255,255,255,0.2); padding-left: 15px; }

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* ============================================
   WHY CHOOSE US
   ============================================ */
.trust-section { background: var(--bg-white); padding-block: 80px 40px; border-bottom: 1px solid #e2e8f0; }

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }

.trust-item { padding: 30px 20px; text-align: center; position: relative; }
.trust-item::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background: var(--secondary); }

.trust-icon { width: 80px; height: 80px; background: var(--bg-light); border: 2px solid var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; transform: rotate(45deg); transition: all 0.4s; }
.trust-icon svg { width: 40px; height: 40px; fill: currentColor; transform: rotate(-45deg); transition: fill 0.4s; }
.trust-item:hover .trust-icon { background: var(--primary); border-color: var(--secondary); color: var(--secondary); transform: rotate(0deg); }
.trust-item:hover .trust-icon svg { transform: rotate(0deg); }

.trust-item h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--text-dark); font-weight: 700; }
.trust-item p { font-size: 0.95rem; color: var(--text-body); }

/* ============================================
   OUR SERVICES
   ============================================ */
.services-section { background: var(--bg-light); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }

.service-card { background: var(--bg-white); box-shadow: var(--shadow-sm); overflow: hidden; transition: all 0.3s; border-bottom: 5px solid transparent; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--secondary); }

.sc-img { width: 100%; aspect-ratio: 4/3; background: #ddd; overflow: hidden; position: relative; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .sc-img img { transform: scale(1.05); }

.sc-info { padding: 25px 20px; }
.sc-info h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 700; }
.sc-info p { font-size: 0.95rem; margin-bottom: 0; border-left: 3px solid var(--primary); padding-left: 10px; color: var(--accent); }

/* ============================================
   PROJECT PORTFOLIO
   ============================================ */
.portfolio { background: var(--bg-white); }

.port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }

.port-item { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #333; cursor: pointer; }
.port-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s, transform 0.8s; opacity: 0.9; }
.port-item:hover img { transform: scale(1.1); opacity: 0.4; }

.port-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s; background: rgba(26, 37, 44, 0.5); padding: 20px; text-align: center; }
.port-item:hover .port-overlay { opacity: 1; }
.port-overlay h3 { color: var(--secondary); font-size: 1.3rem; margin-bottom: 10px; }
.port-overlay span { color: var(--bg-white); font-size: 0.95rem; }

.ba-badge { position: absolute; top: 15px; left: 15px; background: var(--secondary); color: #111; padding: 4px 12px; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; z-index: 2; }

/* ============================================
   OUR PROCESS
   ============================================ */
.process { background: var(--primary); color: var(--bg-white); padding-block: 80px; }

.process-timeline { display: flex; justify-content: space-between; position: relative; margin-top: 60px; max-width: 1000px; margin-inline: auto; }
.process-timeline::before { content: ''; position: absolute; top: 30px; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,0.1); z-index: 1; }
.process-timeline::after { content: ''; position: absolute; top: 30px; left: 0; width: 100%; height: 4px; background: var(--secondary); z-index: 2; transform: scaleX(0); transform-origin: left; transition: transform 1.5s ease; }
.process.visible .process-timeline::after { transform: scaleX(1); }

.step { text-align: center; position: relative; z-index: 3; width: 25%; padding: 0 15px; }
.step-num { width: 64px; height: 64px; background: var(--primary); border: 4px solid var(--secondary); color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; margin: 0 auto 20px; font-family: var(--font-en); box-shadow: 0 0 0 8px var(--primary); transition: all 0.3s; }
.step:hover .step-num { background: var(--secondary); color: var(--primary); transform: scale(1.1); }
.step h3 { color: var(--bg-white); font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ============================================
   LOCATION & CONTACT (FOOTER)
   ============================================ */
.footer { background: var(--bg-light); color: var(--text-body); padding: var(--space-xl) 0 0; }

.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 50px; }

.f-box { background: var(--bg-white); padding: 40px; box-shadow: var(--shadow-sm); border-top: 5px solid var(--primary); }
.f-box h3 { font-size: 1.5rem; margin-bottom: 25px; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.f-box h3 svg { width: 28px; height: 28px; fill: var(--secondary); }

.reg-num { margin-top: 20px; display: inline-block; background: rgba(241, 196, 15, 0.15); border: 1px solid var(--secondary); padding: 10px 15px; font-weight: 600; color: var(--text-dark); border-radius: var(--radius-sm); }

.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: center; gap: 15px; font-size: 1.15rem; font-weight: 700; color: var(--text-dark); border-bottom: 1px solid #eee; padding-bottom: 15px; }
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.c-icon { width: 45px; height: 45px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.c-icon svg { width: 22px; height: 22px; fill: currentColor; }

.footer-bottom { background: var(--primary); text-align: center; padding: 25px 0; color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ============================================
   MANDATORY MASSIVE LINE CTA
   ============================================ */
.float-line-huge {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--line-green); color: var(--bg-white);
  font-size: 1.3rem; font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius-none);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 0 35px var(--glow-line), 0 10px 20px rgba(0,0,0,0.25);
  border: 4px solid var(--bg-white);
  z-index: 9999;
  animation: pulse-construct 1.8s infinite;
}

.float-line-huge svg { width: 34px; height: 34px; fill: currentColor; }

@keyframes pulse-construct {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(6, 199, 85, 0.4), 0 5px 15px rgba(0,0,0,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(6, 199, 85, 0.7), 0 15px 30px rgba(0,0,0,0.3); border-color: var(--secondary); color: var(--bg-white); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-content { background: rgba(26, 37, 44, 0.85); border-left: none; border-bottom: 8px solid var(--secondary); padding: 30px; margin: 0 20px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .float-line-huge { font-size: 1.15rem; padding: 14px 28px; border-width: 3px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .main-nav .btn-yellow { display: none; }
  
  .hero-title { font-size: 2.2rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  
  .process-timeline { flex-direction: column; gap: 40px; margin-top: 40px; }
  .process-timeline::before { top: 0; left: 30px; width: 4px; height: 100%; }
  .process-timeline::after { top: 0; left: 30px; width: 4px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .process.visible .process-timeline::after { transform: scaleY(1); }
  .step { width: 100%; align-items: flex-start; text-align: left; display: flex; gap: 20px; }
  .step-num { margin: 0; flex-shrink: 0; }
  
  .f-box { padding: 25px; }
  
  .float-line-huge { font-size: 1rem; padding: 12px 20px; bottom: 15px; right: 15px; border-width: 2px; border-radius: 4px; }
  .float-line-huge svg { width: 28px; height: 28px; }
}
