/* --- UNIFIED COZY INFRA STYLES --- */
:root {
  --color-primary: #9A5B38;
  --color-secondary: #2F3E46;
  --color-accent: #BFA57D;
  --header-bg: #151515;
  --header-height: 100px; 
  --bg-light: #F8F6F1;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset and Body Adjustment */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--color-secondary);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  /* FIX: Apply padding-top equal to header-height for sub-pages */
  padding-top: var(--header-height); 
  scroll-behavior: smooth;
}

/* Home Page specific fix - Hero should start at the very top */
body.home-page {
  padding-top: 0;
}

/* Ensure the hero section covers the top behind the transparent header area if needed */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex; 
  align-items: center; 
  justify-content: center;
  text-align: center; 
  color: white;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('Images/Building1.png');
  background-size: cover; 
  background-position: center;
  background-attachment: fixed;
}

/* Adding a spacer for sub-pages if body padding isn't enough */
.container { 
  width: 90%; 
  max-width: 1200px; 
  margin: 2rem auto 5rem auto; /* Added margin-top to clear the header further */
}

body.no-scroll { overflow: hidden; }

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }

/* --- HEADER & BRANDING --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  z-index: 1100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  width: 95%; 
  max-width: 1200px;
  margin: 0 auto;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  position: relative;
}

.brand-area {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  gap: 12px;
}

.logo-container {
  width: 75px;      
  height: 75px;     
  overflow: hidden; 
  display: flex;
  justify-content: center;
  align-items: flex-start; 
}

.logo-container img {
  width: 135px;     
  height: auto;
  margin-top: -8px; 
  display: block;
}

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

.brand-text b {
  font-size: 1.2rem;
  line-height: 1;
  color: #ffffff !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--color-accent) !important;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* --- DESKTOP NAVIGATION --- */
.desktop-nav ul { 
  display: flex; 
  gap: 2.2rem; 
  list-style: none; 
}

.desktop-nav a { 
  color: white !important; 
  text-decoration: none !important; 
  font-weight: 500; 
  font-size: 0.85rem; 
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cta { 
  background: var(--color-accent); 
  color: white !important; 
  padding: 12px 28px; 
  border-radius: 50px; 
  font-weight: 700;
  text-decoration: none !important;
  display: inline-block;
  transition: var(--transition);
}

/* --- MOBILE HAMBURGER & DRAWER --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3000;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-overlay {
  position: fixed;
  top: 0; right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(21, 21, 21, 0.98);
  backdrop-filter: blur(10px);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  padding: 120px 40px;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-overlay.active { right: 0; }

.menu-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: all 0.5s ease;
  z-index: 2400;
}

.menu-backdrop.active { opacity: 1; visibility: visible; }

.mobile-overlay li { list-style: none; margin-bottom: 25px; }
.mobile-overlay a {
  color: #fff !important;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
}

/* --- HERO SECTION (FULL SCREEN) --- */
.hero-section {
  position: relative;
  height: 100vh; /* Removes white gap at bottom */
  display: flex; 
  align-items: center; 
  justify-content: center;
  text-align: center; 
  color: white;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('Images/Building1.png');
  background-size: cover; 
  background-position: center;
  background-attachment: fixed;
}

.hero-content h1 { font-size: 4rem; color: var(--color-accent); margin-bottom: 1rem; }
.hero-content p { max-width: 700px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* --- CONTENT & CARDS --- */
.container { width: 90%; max-width: 1200px; margin: 5rem auto; }
.section-title { text-align: center; margin-bottom: 4rem; }

.project-card-h {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border-radius: 20px; overflow: hidden;
  margin-bottom: 4rem; box-shadow: 0 15px 45px rgba(0,0,0,0.07);
}

.card-media-full { min-height: 450px; background-size: cover; background-position: center; }
.card-info { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card-v {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-media-v { height: 250px; background-size: cover; background-position: center; }

footer { background: var(--header-bg); color: white; padding: 0.9rem 0; text-align: center; }

footer h3 {
  color: var(--color-accent);
  margin-bottom: 0.5rem; /* Tighter spacing */
  letter-spacing: 2px;
  font-size: 1.1rem; /* Slightly smaller font */
}

footer p {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Adjust the global container margin for the footer specifically */
footer .container {
  margin: 0 auto; /* Removes the 5rem vertical margin from the footer area */
  padding: 0;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
  .desktop-nav, .desktop-only { display: none !important; }
  .hamburger-btn { display: flex; position: absolute; right: 0; }
  
  /* Centering Brand Text */
  .brand-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
  /* Ensure logo stays left on mobile while brand text is centered */
  .brand-area { justify-content: flex-start; width: 100%; }

  .logo-container { width: 60px; height: 60px; }
  .logo-container img { width: 110px; }
  .brand-text b { font-size: 1.5rem;letter-spacing: 1px; }
  .brand-text span { font-size: 0.65rem;letter-spacing: 3px; }

  .hero-section { height: 100vh; background-attachment: scroll; }
  .hero-content h1 { font-size: 2.5rem; }
  .project-card-h { grid-template-columns: 1fr; }
}


/* --- CONTACT PAGE MOBILE FIX --- */
@media (max-width: 900px) {
  /* This forces the contact grid to stack vertically on mobile */
  .project-card-h {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr; 
  }

  .card-info {
    padding: 2rem 1.5rem; /* Better padding for mobile screens */
    width: 100%;
  }

  /* Ensures the contact text doesn't hit the edges */
  .card-info p, .card-info h3 {
    word-wrap: break-word;
  }
}


/* Add these specific styles to your existing styles.css */

.table-responsive {
  overflow-x: auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table th {
  background: var(--color-secondary);
  color: white;
  padding: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eee;
  color: var(--color-secondary);
  font-size: 0.95rem;
}

.specs-section {
  margin-top: 4rem;
  background: #fff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.spec-item h4 {
  color: var(--color-primary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.spec-item ul {
  list-style: none;
  padding: 0;
}

.spec-item li {
  font-size: 0.9rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.spec-item li::before {
  content: "•";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.trust-banner {
  margin-top: 3rem;
  text-align: center;
  padding: 2.5rem;
  border: 2px dashed var(--color-accent);
  border-radius: 20px;
  background: rgba(191, 165, 125, 0.05);
}

.trust-banner h4 {
  color: var(--color-secondary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

footer .developer-tag {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 15px;
  line-height: 1.4;
}

/* Mobile Fixes */
@media (max-width: 900px) {
  .specs-section {
    padding: 2rem 1.5rem;
  }
  
  table th, table td {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

/* --- ACTIVE PAGE HIGHLIGHT --- */

/* Desktop Highlight */
.desktop-nav a.active {
  color: var(--color-accent) !important;
  position: relative;
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* Mobile Highlight */
.mobile-overlay a.active {
  color: var(--color-accent) !important;
  padding-left: 10px;
  border-left: 3px solid var(--color-accent);
  display: block;
}


/* --- FLOATING CONTACT BUTTONS --- */
.floating-contact-wrap {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.float-btn img {
  width: 32px;
  height: 32px;
}

.float-btn.whatsapp { background-color: #25D366; }
.float-btn.phone { background-color: var(--color-primary); }

.float-btn:hover { transform: scale(1.1) translateY(-5px); }

/* PC Tooltip Style */
.phone-tooltip {
  position: absolute;
  right: 70px;
  background: var(--header-bg);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.phone-tooltip.show {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .floating-contact-wrap {
      bottom: 20px;
      right: 20px;
      gap: 10px;
  }
  .float-btn {
      width: 50px;
      height: 50px;
  }
  .float-btn img {
      width: 26px;
  }
}

/* --- FLOATING CONTACT BUTTONS --- */
.floating-contact-wrap {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  text-decoration: none !important;
  border: none;
  outline: none;
}

/* Ensure no text (like "Pho") shows up */
.float-btn svg {
  display: block;
}

.float-btn.whatsapp { background-color: #25D366; }
.float-btn.phone { background: #9A5B38; } /* Using your primary brand color */
.float-btn.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }

.float-btn:hover { 
  transform: scale(1.1) translateY(-5px); 
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* Tooltip for PC */
.phone-tooltip {
  position: absolute;
  right: 80px;
  background: #151515;
  color: #BFA57D;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  border: 1px solid #BFA57D;
}

.phone-tooltip.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  .floating-contact-wrap { bottom: 20px; right: 20px; }
  .float-btn { width: 55px; height: 55px; }
}