/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette (HSL for consistency and harmony) */
  --navy-deep: hsl(215, 45%, 10%);       /* Deep ocean background */
  --navy-medium: hsl(215, 35%, 16%);     /* Dark sections / Card backgrounds */
  --navy-light: hsl(215, 25%, 24%);      /* Borders / Accents */
  
  --gold-primary: hsl(36, 47%, 55%);      /* Warm gold/brass accent */
  --gold-hover: hsl(36, 57%, 45%);        /* Hover state for gold elements */
  --gold-light: hsl(36, 45%, 90%);        /* Soft tint of gold */
  
  --wood-teak: hsl(26, 46%, 32%);        /* Teak/Mahogany inspired tone */
  --wood-warm: hsl(26, 36%, 48%);
  
  --bg-cream: hsl(30, 25%, 97%);         /* Soft light background */
  --bg-white: hsl(0, 0%, 100%);
  
  --text-dark: hsl(215, 30%, 12%);       /* Dark text for light bg */
  --text-muted: hsl(215, 12%, 40%);      /* Muted secondary text */
  --text-light: hsl(0, 0%, 98%);         /* Light text for dark bg */
  --text-light-muted: hsl(215, 15%, 75%);

  /* Header & Navigation Variables (Always Light Theme) */
  --header-bg: rgba(250, 248, 245, 0.95);
  --header-border: rgba(0, 0, 0, 0.08);
  --header-link-color: rgba(14, 23, 37, 0.85);
  --header-link-hover: hsl(215, 30%, 12%);
  
  --burger-bg: rgba(0, 0, 0, 0.05);
  --burger-border: rgba(0, 0, 0, 0.15);
  --burger-bar-color: hsl(215, 30%, 12%);

  /* Hero Overlay Variables */
  --hero-overlay-1: rgba(10, 20, 30, 0.65);
  --hero-overlay-2: rgba(10, 20, 30, 0.8);
  --hero-text-color: hsl(0, 0%, 98%);

  /* Elements & Borders */
  --card-border: rgba(255, 255, 255, 0.05);
  --filter-btn-border: rgba(0, 0, 0, 0.08);
  --input-border: rgba(0, 0, 0, 0.1);

  --footer-border: rgba(255, 255, 255, 0.05);
  --social-bg: rgba(255, 255, 255, 0.05);
  --social-border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Design Details */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}



/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button, input, textarea, select {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Utility Classes */
.text-center { text-align: center; }
.section-padding { padding: var(--space-xl) 0; }
.bg-dark { background-color: var(--navy-deep); color: var(--text-light); }
.bg-light { background-color: var(--bg-cream); color: var(--text-dark); }

/* Section Header styling */
.section-header {
  margin-bottom: var(--space-lg);
  max-width: 700px;
}
.section-header h2 {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  position: relative;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--gold-primary);
  margin-top: var(--space-sm);
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
}
.section-header.center h2::after {
  margin-left: auto;
  margin-right: auto;
}
.subtitle {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--gold-primary);
  color: var(--text-light);
}
.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}
.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background-color: transparent;
  color: var(--text-dark);
  border-color: rgba(0, 0, 0, 0.2);
}
.btn-outline-dark:hover {
  border-color: var(--navy-deep);
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--box-shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  transition: var(--transition-smooth);
}
header.scrolled .nav-container {
  padding: 0.6rem 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  margin-left: 20px; /* Sposta il logo verso destra */
}
.logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}
header.scrolled .logo-img {
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--header-link-color);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-primary);
  transition: var(--transition-smooth);
}
.nav-link:hover {
  color: var(--header-link-hover);
}
.nav-link:hover::after {
  width: 100%;
}
header.scrolled .nav-link {
  color: var(--header-link-color);
}
header.scrolled .nav-link:hover {
  color: var(--header-link-hover);
}



/* Burger Menu Mobile */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1001;
  border-radius: 50%;
  background-color: var(--burger-bg);
  border: 1px solid var(--burger-border);
  transition: var(--transition-smooth);
  gap: 5px;
}
.burger-menu:hover {
  background-color: var(--burger-border);
  border-color: var(--gold-primary);
}
.burger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--burger-bar-color);
  transition: var(--transition-smooth);
  transform-origin: center;
}

/* Burger Animation to 'X' */
.burger-menu.open .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-menu.open .burger-bar:nth-child(2) {
  opacity: 0;
}
.burger-menu.open .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--hero-text-color);
  overflow: hidden;
  background-color: var(--navy-deep);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--hero-overlay-1), var(--hero-overlay-2)), url('assets/portfolio/nautica/yacht_interior.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: zoomBg 15s ease-out forwards;
}

@keyframes zoomBg {
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

.hero-content h1 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--gold-primary);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-light-muted);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.9s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   CHI SIAMO (ABOUT)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.highlight-item {
  border-left: 2px solid var(--gold-primary);
  padding-left: var(--space-sm);
}

.highlight-item h4 {
  font-size: 1.8rem;
  color: var(--navy-deep);
  margin-bottom: 0.2rem;
}

.highlight-item p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  font-weight: 600;
}

.about-image-wrapper {
  position: relative;
  padding-bottom: 30px;
}
.about-img-decor {
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-lg);
  overflow: hidden;
}
.about-image-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: -20px;
  width: 70%;
  height: 80%;
  border: 1px solid var(--gold-primary);
  z-index: -1;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}
.about-image-wrapper:hover::before {
  transform: translate(-10px, -10px);
}

/* ==========================================================================
   SETTORI (SECTORS)
   ========================================================================== */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.sector-card {
  position: relative;
  height: 500px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  box-shadow: var(--box-shadow-md);
  transition: var(--transition-smooth);
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
  z-index: 1;
}

.sector-nautico::before {
  background-image: linear-gradient(rgba(10, 20, 30, 0.15), rgba(10, 20, 30, 0.85)), url('assets/portfolio/nautica/nautical_furniture.png');
}

.sector-casa::before {
  background-image: linear-gradient(rgba(10, 20, 30, 0.15), rgba(10, 20, 30, 0.85)), url('assets/portfolio/residenziale/home_furniture.png');
}

.sector-card-content {
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.sector-card h3 {
  font-size: 2.5rem;
  color: hsl(0, 0%, 98%); /* Always light on image background */
  margin-bottom: var(--space-sm);
}

.sector-card p {
  color: hsl(215, 15%, 75%); /* Always light muted on image background */
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  max-width: 450px;
  opacity: 0.9;
}

.sector-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--gold-primary);
  font-weight: 500;
  font-size: 0.95rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.sector-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sector-features li::before {
  content: '✦';
  font-size: 0.8rem;
}

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

.sector-card:hover::before {
  transform: scale(1.05);
}

.sector-card:hover .sector-features {
  max-height: 150px;
  opacity: 1;
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   PORTFOLIO / GALLERIA
   ========================================================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--filter-btn-border);
  transition: var(--transition-smooth);
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  transition: var(--transition-smooth);
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 350px;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-smooth);
}

.portfolio-item.hidden {
  display: none;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(10, 20, 30, 0.1), rgba(10, 20, 30, 0.95));
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  transition: var(--transition-smooth);
  z-index: 2;
}

.portfolio-overlay h4 {
  color: hsl(0, 0%, 98%); /* Always light on image background */
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.portfolio-overlay span {
  color: var(--gold-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

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

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

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* ==========================================================================
   IL METODO (METHOD)
   ========================================================================== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.method-card {
  background-color: var(--navy-medium);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--card-border);
  position: relative;
  transition: var(--transition-smooth);
}

.method-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-sm);
  transition: var(--transition-smooth);
}

.method-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--text-light);
}

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

.method-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
}

.method-card:hover .method-number {
  opacity: 0.7;
  transform: translateY(-3px);
}

/* ==========================================================================
   CONTATTI (CONTACTS)
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.info-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(193, 154, 107, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.1rem;
  color: var(--navy-deep);
  margin-bottom: 0.2rem;
}

.info-details p, .info-details a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background-color: var(--bg-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--input-border);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  padding: 0.8rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  display: none;
}
.form-status.success {
  background-color: hsl(120, 40%, 93%);
  color: hsl(120, 50%, 25%);
  border: 1px solid hsl(120, 40%, 80%);
  display: block;
}
.form-status.error {
  background-color: hsl(0, 50%, 95%);
  color: hsl(0, 60%, 30%);
  border: 1px solid hsl(0, 50%, 88%);
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--footer-border);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo .logo-img {
  height: 48px;
}

.footer-logo p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  max-width: 250px;
}

.footer-links h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 3px;
}

.footer-socials h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
}

.social-icon {
  width: 36px;
  height: 36px;
  background-color: var(--social-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--social-color);
  border: 1px solid var(--social-border);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--text-light); /* keep icon text white/light on hover gold */
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --space-xl: 6rem;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .about-grid, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .method-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
  }
  .burger-menu {
    display: flex;
  }
  
  /* Menu header initially hidden or positioned off screen */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--header-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  
  .sector-card {
    height: 400px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .method-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTACT MAP CONTAINER
   ========================================================================== */
.contact-map-container {
  position: relative;
  width: 100%;
  height: 450px;
  min-height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  border: 1px solid var(--card-border);
}
.contact-map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(10%) contrast(100%);
  transition: var(--transition-smooth);
}
.contact-map-container:hover iframe {
  filter: none;
}

/* ==========================================================================
   LIGHTBOX MODAL & GALLERY SLIDER
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 20, 30, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-modal.open {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox-modal.open .lightbox-content img {
  transform: scale(1);
}
.lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 1.2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 2100;
}
.lightbox-close:hover {
  color: var(--gold-primary);
  transform: scale(1.1);
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  transition: var(--transition-smooth);
  z-index: 2100;
  user-select: none;
}
.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--gold-primary);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
  left: 40px;
}
.lightbox-next {
  right: 40px;
}

@media (max-width: 768px) {
  .contact-map-container {
    height: 350px;
    min-height: 300px;
  }
  .lightbox-prev {
    left: 15px;
  }
  .lightbox-next {
    right: 15px;
  }
  .lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
  }
  .lightbox-content {
    max-width: 95%;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER OVERRIDES
   ========================================================================== */
#cookieChoiceInfo {
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 900px !important;
  background-color: var(--navy-deep) !important;
  color: var(--text-dark) !important;
  padding: 18px 25px !important;
  z-index: 10000 !important;
  text-align: center !important;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0 !important;
  box-shadow: 0 -5px 30px rgba(0,0,0,0.3) !important;
  border: 1px solid var(--gold-primary) !important;
  border-bottom: none !important;
  font-family: var(--font-sans) !important;
  font-size: 0.88rem !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
  line-height: 1.5 !important;
}
#cookieChoiceInfo span {
  text-align: left !important;
  color: #FFFFFF !important;
}
#cookieChoiceInfo a {
  color: var(--gold-primary) !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  transition: var(--transition-smooth) !important;
  white-space: nowrap !important;
}
#cookieChoiceInfo a:hover {
  color: var(--gold-hover) !important;
  text-decoration: none !important;
}
#cookieChoiceInfo #cookieChoiceDismiss {
  background-color: var(--gold-primary) !important;
  color: #FFFFFF !important;
  padding: 8px 18px !important;
  border-radius: var(--border-radius-sm) !important;
  text-decoration: none !important;
  margin-left: 10px !important;
  display: inline-block !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  transition: var(--transition-smooth) !important;
}
#cookieChoiceInfo #cookieChoiceDismiss:hover {
  background-color: var(--gold-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
  #cookieChoiceInfo {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 20px 15px !important;
  }
  #cookieChoiceInfo span {
    text-align: center !important;
  }
  #cookieChoiceInfo #cookieChoiceDismiss {
    margin-left: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
}
