/* style.css - Premium Design System for Navilia Spaces */

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

:root {
  --primary: #2C2620;        /* Deep Bronze Charcoal */
  --primary-light: #4A3F35;  /* Warm Bronze */
  --secondary: #F3EFE9;      /* Champagne Cream */
  --accent: #D4AF37;         /* Antique Gold */
  --accent-hover: #C59F28;   /* Darker Gold */
  --dark: #1E1A16;           /* Midnight Ash */
  --light: #FAF8F5;          /* Ivory / Alabaster */
  --white: #FFFFFF;
  --text: #3D352E;           /* Earthy Charcoal Text */
  --text-muted: #8E8276;     /* Warm Taupe Text */
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 20px rgba(44,38,32,0.05);
  --shadow-lg: 0 20px 40px rgba(44,38,32,0.1);
  
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 600;
  line-height: 1.25;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 24px 0;
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(44, 38, 32, 0.98);
  box-shadow: var(--shadow-md);
  padding: 16px 0;
}

header.scrolled .logo-text {
  color: var(--white);
}

header.scrolled nav a {
  color: rgba(255, 255, 255, 0.8);
}

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

header.scrolled .btn-nav {
  background-color: var(--accent);
  color: var(--white);
  border-color: transparent;
}

header.scrolled .btn-nav:hover {
  background-color: var(--accent-hover);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-gold {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}

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

.btn-nav {
  background-color: var(--primary);
  color: var(--white);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

/* --- Hero Sections --- */
.hero {
  padding: 160px 0 100px 0;
  background-color: var(--secondary);
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

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

/* --- Section Formatting --- */
section {
  padding: 100px 0;
}

.section-bg {
  background-color: var(--secondary);
}

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

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
}

/* --- Grid Systems --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Cards & Features --- */
.card {
  background-color: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(44, 38, 32, 0.03);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.2);
}

.card-icon {
  width: 64px;
  height: 64px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Team Component --- */
.team-card {
  text-align: center;
}

.team-img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.team-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition);
}

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

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Journey / Timeline Component --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  opacity: 0.15;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--white);
  border: 4px solid var(--accent);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -8px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--white);
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 8px;
}

/* --- Portfolio Page Filter and Grid --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid rgba(44, 38, 32, 0.1);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portfolio-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img-container {
  position: relative;
  overflow: hidden;
  height: 280px;
}

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

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
}

.portfolio-details {
  padding: 24px;
}

.portfolio-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-item-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Stats Stats Section --- */
.stats-bar {
  display: flex;
  justify-content: space-around;
  text-align: center;
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 40px;
  border-radius: var(--radius-md);
  margin-top: 40px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Contact Page Components --- */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
}

.contact-card {
  background-color: var(--white);
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(44, 38, 32, 0.1);
  border-radius: var(--radius-sm);
  background-color: var(--light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--white);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--secondary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.info-val {
  font-size: 1rem;
  color: var(--text);
}

/* --- Floating Whatsapp Widget --- */
.whatsapp-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* --- Footer --- */
footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-desc {
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Alert Messages --- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(37, 211, 102, 0.1);
  color: #1e7e34;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.alert-error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #bd2130;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* --- Mobile Menu Trigger --- */
@media (max-width: 992px) {
  .grid-3, .grid-4, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .portfolio-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  header {
    background-color: var(--secondary);
    padding: 16px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 20px;
  }
  
  nav.active {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 23px;
  }
  
  .right {
    left: 0%;
  }
  
  .stats-bar {
    flex-direction: column;
    gap: 32px;
  }
}
