/* ============================================================
   GT Construction — BASE.CSS (Luxury Refined)
   Single source of truth for header, footer, nav & helpers.
   ============================================================ */

/* ── RESET & ROOT ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --red:          #c40000;
  --red-dark:     #a30000;
  --red-dim:      rgba(196, 0, 0, 0.1);
  --black:        #0a0a0a;
  --white:        #ffffff;
  
  /* Neutral Tones */
  --grey-bg:      #f9f9f9;
  --grey-border:  rgba(0, 0, 0, 0.08);
  --grey-text:    #575757; /* Improved contrast for accessibility */
  --grey-light:   #aaaaaa;

  /* UI Specs */
  --nav-height:   85px;
  --shadow-sm:    0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg:    0 20px 40px rgba(0, 0, 0, 0.12);
  --transition:   0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { 
  background: var(--white); 
  color: var(--black); 
  font-family: 'Poppins', "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden; 
}

/* ── HEADER (Glassmorphism) ────────────────────────────────── */
header {
  position: fixed; top: 0; width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); /* Luxury glass effect */
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--grey-border);
  transition: var(--transition);
}

nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 6%; 
  height: var(--nav-height);
  max-width: 1440px; margin: 0 auto;
}

.brand {
  display: flex; align-items: center;
  transition: var(--transition);
}
.brand img { 
  height: 50px; 
  width: auto; 
  object-fit: contain;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; 
  font-size: 14px;
  font-weight: 500; 
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

/* Luxury Underline */
.nav-links a::after {
  content: '';
  position: absolute; bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger (mobile) */
.hamburger {
  display: none; flex-direction: column; gap: 6px;
  cursor: pointer; background: none; border: none; padding: 10px;
}
.hamburger span {
  display: block; width: 28px; height: 2px;
  background: var(--black); transition: var(--transition);
}

/* ── PAGE WRAPPER ──────────────────────────────────────────── */
.page-content {
  padding-top: var(--nav-height);
  min-height: calc(100vh - 400px);
}

/* ── SECTION HELPERS ───────────────────────────────────────── */
section { padding: 100px 6%; }
h2 { 
  text-align: center; font-size: clamp(30px, 4vw, 42px); 
  margin-bottom: 15px; font-weight: 700; 
}
.sub { 
  text-align: center; color: var(--grey-text); 
  margin-bottom: 60px; font-size: 16px; font-weight: 300;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-red {
  background: var(--red); color: var(--white);
  padding: 16px 36px; font-size: 14px; font-weight: 600;
  border-radius: 4px; /* Slightly squarer for professional look */
  text-transform: uppercase; letter-spacing: 1.5px;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; display: inline-block;
  border: 1px solid var(--red);
}
.btn-red:hover { 
  background: transparent; 
  color: var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--black); color: var(--white);
  padding: 80px 6% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px; margin-bottom: 60px;
  max-width: 1440px; margin-left: auto; margin-right: auto;
}

.footer-col h4 {
  font-size: 15px; font-weight: 600; color: var(--white);
  margin-bottom: 25px; text-transform: uppercase; letter-spacing: 2px;
}
.footer-col p { color: var(--grey-light); font-size: 14px; margin-bottom: 20px; }
.footer-col a {
  display: block; color: var(--grey-light); font-size: 14px;
  margin-bottom: 12px; text-decoration: none; transition: var(--transition);
}
.footer-col a:hover { color: var(--red); transform: translateX(5px); }

/* Social Icons (Refined) */
.social-links { display: flex; gap: 15px; }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.05); transition: var(--transition);
}
.social-btn:hover {
  background: var(--red); transform: translateY(-5px);
}
.social-btn svg { width: 18px; height: 18px; fill: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  color: #666; font-size: 13px;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: fixed; top: var(--nav-height); right: -100%;
    width: 80%; height: 100vh;
    flex-direction: column; background: var(--white);
    padding: 60px 10%; gap: 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    transition: var(--transition);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  
  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
  section { padding: 60px 6%; }
}