/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Luxury & Minimalist */
  --color-primary: #6B7F6A;
  /* Sage Green */
  --color-primary-dark: #5A6B59;
  --color-secondary: #EAEBDC;
  /* Cream/Beige */
  --color-accent: #D4AF37;
  /* Gold/Brass */

  --color-text-dark: #1A1A1A;
  /* Deep Charcoal */
  --color-text-body: #4A4A4A;
  --color-text-light: #F9F9F9;

  --color-white: #FFFFFF;
  --color-bg-light: #FAFAFA;
  --color-surface: #F5F5F0;

  --color-border: #E0E0E0;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 2rem;
  /* 32px */
  --space-lg: 4rem;
  /* 64px */
  --space-xl: 8rem;
  /* 128px */
  --space-2xl: 12rem;
  /* 192px */

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-long: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Utility */
.glass {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(20, 20, 20, 0.7);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-white);
}

/* Modern Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.text-hero {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.text-h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.text-h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.text-body {
  font-size: 1rem;
  color: #555;
}

.text-small {
  font-size: 0.875rem;
  color: #777;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  /* Increased from sm for better mobile spacing */
}

.section {
  padding: var(--space-lg) 0;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

/* Component Styles */

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  /* Slightly more transparent for glass effect */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: all var(--transition-smooth);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height var(--transition-smooth);
}

.header.scrolled .nav-container {
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
  position: relative;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--color-primary-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-dark);
}

/* Buttons */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  /* Pill shape for luxury feel */
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(107, 127, 106, 0.25);
}

.btn-outline {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  /* Note: Ensure background image path is correct */
  background-image: url('assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-top: var(--space-md);
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.5s;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
}

.hero-content p {
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
  max-width: 600px;
}

.services-preview {
  position: relative;
  margin-top: var(--space-md);
  /* Below the hero */
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  color: var(--color-text-dark);
  transition: transform var(--transition-smooth);
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  /* Stronger shadow for lift */
}

.services-preview:hover {
  transform: translateY(-5px);
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.service-tag {
  background: rgba(107, 127, 106, 0.1);
  color: var(--color-primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.learn-more-link {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.learn-more-link:hover {
  gap: 8px;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro / Features Section */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  align-items: center;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-body);
  margin-bottom: var(--space-md);
}

.feature-box {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--color-text-dark);
}

.feature-list .icon {
  color: var(--color-primary);
  font-weight: bold;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-dark {
  color: var(--color-text-dark) !important;
  border-color: var(--color-text-dark) !important;
}

.text-dark:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-dark) !important;
}

/* Footer */
.footer {
  background-color: var(--color-text-dark);
  color: var(--color-secondary);
  padding: var(--space-lg) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

/* Masonry Layout */
.masonry-grid {
  column-count: 3;
  column-gap: var(--space-md);
}

@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
}

.project-card {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-secondary);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-long);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  padding: var(--space-md);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 60%;
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-primary);
  /* Use brand color for accent */
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
  display: inline-block;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--space-lg);
}

/* About Page Specifics */
.about-image {
  width: 100%;
  height: 480px;
  /* Taller */
  background-color: var(--color-secondary);
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1200');
  background-size: cover;
  background-position: center;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  position: relative;
}

.value-card {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  background: var(--color-white);
  height: 100%;
}

.value-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Contact Page Specifics */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.contact-info-box {
  background-color: var(--color-text-dark);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-info-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.info-item {
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.info-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.info-item p {
  font-size: 1.1rem;
  font-weight: 300;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #FAFAFA;
  transition: all var(--transition-fast);
  color: var(--color-text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(107, 127, 106, 0.1);
}

.whatsapp-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: var(--space-sm);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.whatsapp-btn-large:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.page-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 120px 0 60px;
  /* More padding for fixed header */
  text-align: center;
  text-align: center;
  position: relative;
}

.page-header .text-body {
  color: rgba(255, 255, 255, 0.9);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

/* Service Cards / Generic Cards */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  /* Need to define or use lg */
  transform: translateY(-8px);
  border-color: var(--color-primary);
  /* Slight border highlight */
}

.service-img {
  height: 240px;
  /* Taller image */
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover .service-img::after {
  opacity: 1;
}

.service-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-list {
  margin-top: var(--space-sm);
  padding-left: 1.2rem;
  list-style-type: none;
  /* Custom bullets look better */
  color: var(--color-text-body);
}

.service-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 0.5rem;
}

.service-list li::before {
  content: '•';
  color: var(--color-primary);
  position: absolute;
  left: -1rem;
  font-weight: bold;
}

/* Footer */
.footer {
  background-color: var(--color-text-dark);
  color: var(--color-secondary);
  padding: var(--space-xl) 0 var(--space-md);
  font-size: 0.95rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}

.footer-link {
  display: block;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.footer-link:hover {
  color: var(--color-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Hide by default on mobile, handled by JS */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .text-hero {
    font-size: 2.5rem;
  }
}

/* Projects Grid Layout */
.projects-grid {
  display: grid;
  /* Reduced min-width for smaller cards */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
  /* Reduced gap slightly */
  margin-bottom: var(--space-2xl);
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  position: relative;
  /* For absolute positioning of category */
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107, 127, 106, 0.2);
}

/* Card Media / Collage */
.card-media {
  display: grid;
  gap: 2px;
  /* Reduced height for smaller cards */
  height: 260px;
  width: 100%;
  background: var(--color-surface);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.media-item {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .media-item img {
  transform: scale(1.05);
}

/* Collage Layouts */

/* Layout 1: Single Full Image */
.collage-layout-1 {
  grid-template-columns: 1fr;
}

/* Layout 2: Split Vertical */
.collage-layout-2 {
  grid-template-columns: 1fr 1fr;
}

/* Layout 3: Main Left, Two Stacked Right */
.collage-layout-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "main side-top"
    "main side-bottom";
}

.collage-layout-3 .main {
  grid-area: main;
}

.collage-layout-3 .side-top {
  grid-area: side-top;
}

.collage-layout-3 .side-bottom {
  grid-area: side-bottom;
}

/* Layout 4: 2x2 Grid (for future safety) */
.collage-layout-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* Card Info */
.card-info {
  padding: 1.25rem;
}

.card-header-row {
  margin-bottom: var(--space-xs);
  /* Since category is moved, this wraps title */
}

/* Overlay Status/Category */
.card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  /* Let clicks pass through to card */
  backdrop-filter: blur(4px);
}

.card-title {
  font-size: 1.25rem;
  /* Slightly smaller title for smaller card */
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-details {
  font-size: 0.9rem;
  /* Slightly smaller body */
  color: var(--color-text-body);
  margin-bottom: 4px;
  display: block;
}

.card-location {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .card-media {
    height: 280px;
    /* Slightly taller on mobile for visibility */
  }
}