/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Variables */
:root {
  /* Corporate Colors */
  --color-dark-bg: #050a10;
  --color-primary: #0a1320;
  --color-primary-light: #162438;
  --color-secondary: #c5a86d; /* Subtle Gold */
  --color-secondary-hover: #e0c890;
  --color-text-light: #fdfdfd;
  --color-text-muted: #a0aec0;
  --color-text-dark: #121c2e;
  --color-bg-light: #fcfcfd;
  --color-bg-alt: #f3f5f8;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-dark: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-subhead: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Utilities */
  --shadow-subtle: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-strong: 0 20px 40px rgba(0,0,0,0.2);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary-hover);
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  background-image: 
    radial-gradient(at 0% 0%, rgba(197, 168, 109, 0.08) 0px, transparent 60%),
    radial-gradient(at 100% 0%, rgba(10, 19, 32, 0.08) 0px, transparent 60%),
    radial-gradient(at 50% 100%, rgba(197, 168, 109, 0.08) 0px, transparent 60%);
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: gradientBG 15s ease infinite;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* Modern Typography Scales */
.display-1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.1; letter-spacing: -1.5px; font-weight: 700; font-family: var(--font-heading); }
.display-2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.1; letter-spacing: -1px; font-weight: 600; font-family: var(--font-heading); }
.display-3 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -0.5px; font-weight: 600; font-family: var(--font-heading); }
.text-sup { font-size: 0.9rem; letter-spacing: 5px; text-transform: uppercase; color: var(--color-secondary); font-family: var(--font-subhead); font-weight: 600; }
.text-italic-accent { font-style: italic; font-weight: 300; }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 6rem 0;
}

/* Theme Classes */
.bg-dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.bg-dark-alt {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light);
}

.bg-light {
  background-color: var(--color-bg-alt);
}

.text-gold {
  color: var(--color-secondary);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-hover));
  color: var(--color-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(197, 168, 109, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.6s ease;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(197, 168, 109, 0.4);
}
.btn-gold:hover::before {
  left: 100%;
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline-gold:hover {
  background-color: var(--color-secondary);
  color: var(--color-dark-bg);
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 19, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.main-header .container.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  padding: 0 3%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: white;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  color: white;
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.desktop-nav a:not(.btn) {
  position: relative;
  transition: var(--transition);
}
.desktop-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}
.desktop-nav a:not(.btn):hover::after,
.desktop-nav a.active::after {
  width: 100%;
}
.desktop-nav a:not(.btn):hover,
.desktop-nav a.active {
  color: var(--color-secondary);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-family: var(--font-subhead);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.lang-dropdown-btn:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background-color: rgba(10, 19, 32, 0.95);
  min-width: 60px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  z-index: 1005;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.lang-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 1rem;
}

.lang-dropdown:hover .lang-dropdown-content {
  display: flex;
  flex-direction: column;
}

.lang-dropdown-content a {
  color: white;
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-subhead);
  transition: var(--transition);
  text-align: center;
  opacity: 0.7;
}

.lang-dropdown-content a:hover {
  background-color: rgba(255,255,255,0.05);
  opacity: 1;
  color: var(--color-secondary);
}

.lang-dropdown-content a.active {
  opacity: 1;
  font-weight: bold;
  color: var(--color-secondary);
  background-color: rgba(197, 168, 109, 0.1);
}

/* Shared Hero Header for Internal Pages */
.page-hero {
  height: 60vh;
  min-height: 400px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

.page-hero.about-bg { background: linear-gradient(135deg, rgba(10,19,32,0.9), rgba(10,19,32,0.8)), url('../img/office.webp') center/cover; }
.page-hero.portfolio-bg { background: linear-gradient(135deg, rgba(10,19,32,0.9), rgba(10,19,32,0.8)), url('../img/hero.webp') center/cover; }
.page-hero.method-bg { background: linear-gradient(135deg, rgba(10,19,32,0.9), rgba(10,19,32,0.8)), url('../img/remodel.webp') center/cover; }
.page-hero.contact-bg { background: linear-gradient(135deg, rgba(10,19,32,0.9), rgba(10,19,32,0.8)), url('../img/contact.webp') center/cover; }
.page-hero.memo-bg { background: linear-gradient(135deg, rgba(10,19,32,0.9), rgba(10,19,32,0.8)), url('../img/memorandum.webp') center/cover; }
.page-hero.legal-bg { background: linear-gradient(135deg, rgba(10,19,32,0.4), rgba(10,19,32,0.2)), url('../img/hero-legal.webp') center bottom/cover; }

.page-hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-family: var(--font-subhead);
  font-size: 1.1rem;
  color: var(--color-secondary);
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* Dynamic Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

/* Cards Institutional */
.inst-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  transition: var(--transition);
  height: 100%;
}

.inst-card:hover {
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.9);
}

.inst-card i {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.inst-card h3 {
  font-family: var(--font-subhead);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* Data / Metric Typography */
.metric-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

/* Animations & Micro-interactions */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
.float-element { animation: float 7s ease-in-out infinite; }
.asymmetric-up { transform: translateY(-40px); }
.asymmetric-down { transform: translateY(40px); }

/* Overriding AOS for smoother reveal */
[data-aos] { transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important; }

/* Footer Corporate */
.corporate-footer {
  background-color: #03060a;
  color: white;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-links h3, .footer-contact h3 {
  font-family: var(--font-subhead);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { font-size: 0.9rem; color: var(--color-text-muted); }
.footer-links a:hover { color: white; }

.footer-contact p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-confidential {
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: var(--font-subhead);
  letter-spacing: 1px;
}

/* Forms */
.form-control {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(197, 168, 109, 0.2), inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Hamburger Menu */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-hero h1 { font-size: 3rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .asymmetric-up, .asymmetric-down { transform: none; margin-top: 2rem; }
}

@media (max-width: 768px) {
  .main-header .container.nav-container { flex-wrap: wrap; justify-content: space-between; }
  .hamburger-btn { display: block; position: relative; z-index: 1002; }
  .logo { position: relative; z-index: 1002; }
  
  .desktop-nav { 
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 19, 32, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 2.5rem; 
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 0; 
    margin: 0; 
    border: none;
  }
  
  .desktop-nav.active {
    opacity: 1;
    visibility: visible;
  }

  .desktop-nav a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }
  
  .desktop-nav.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .desktop-nav.active a:nth-child(1) { transition-delay: 0.1s; }
  .desktop-nav.active a:nth-child(2) { transition-delay: 0.15s; }
  .desktop-nav.active a:nth-child(3) { transition-delay: 0.2s; }
  .desktop-nav.active a:nth-child(4) { transition-delay: 0.25s; }
  .desktop-nav.active a:nth-child(5) { transition-delay: 0.3s; }
  .desktop-nav.active a:nth-child(6) { transition-delay: 0.35s; }

  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 30px;
  }
}
