/* ======================== */
/* ===== ROOT & RESET ===== */
/* ======================== */
:root{
  --font-head:"Marcellus",serif;
  --font-body:"Manrope",sans-serif;

  --bg:#F7F3ED;        /* Fantasy */
  --surface:#EFD8D6;   /* Vanilla Ice */
  --muted:#C2C6B9;     /* Silver Sand */
  --accent:#DBA1A2;    /* Rose */
  --ink:#422B23;       /* Tobago */
}

*{margin:0;padding:0;box-sizing:border-box}

body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}

a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

/* ======================== */
/* ===== HEADER & NAV ===== */
/* ======================== */
.site-header{
  background:var(--bg);
  color:var(--ink);
  min-height:160px;
  display:flex; align-items:center;
  padding:.5rem 0;
}

.header-flex{
  display:flex; justify-content:space-between; align-items:center;
  width:90%; max-width:1200px; margin:0 auto; position:relative;
}

.header-logo img{
  max-height:140px; width:auto; object-fit:contain; margin-top:0;
}

.navbar ul{ display:flex; gap:1rem; list-style:none }

.navbar a{
  color:var(--ink);
  padding:.4rem .8rem;
  border:2px solid var(--accent);
  border-radius:14px;
  transition:all .3s ease;
  font-weight:600; font-size:.85rem; position:relative; top:0;
}
.navbar a:hover,
.navbar a.active{
  background:var(--accent);
  color:var(--ink);
  border-color:var(--accent);
}

/* toggle hidden on desktop */
.menu-toggle{
  display:none; background:none; border:none; color:var(--ink);
  font-size:1.8rem; cursor:pointer; line-height:1;
}

/* ======================== */
/* ===== GALLERY HERO ===== */
/* ======================== */
.gallery-hero{
  position:relative; isolation:isolate;
  background: url('plane.jpg') center/cover no-repeat, var(--surface);
  color:var(--ink);
  padding:0 1rem; text-align:center;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:35vh;
  box-shadow:0 4px 12px rgba(66,43,35,.15);
}
.gallery-hero::before{
  content:""; position:absolute; inset:0; z-index:0;
  background:var(--surface); opacity:.65; /* surface tint over image */
}
.gallery-hero > *{ position:relative; z-index:1 }

.gallery-hero h1{
  margin-bottom:.5rem; font-size:2.5rem; text-align:center; font-family:var(--font-head);
}

/* ======================== */
/* ===== GALLERY GRID ===== */
/* ======================== */
.gallery-section{ padding:4rem 1rem; text-align:center }

.gallery-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem; max-width:1400px; margin:3rem 2rem; padding:2rem;
}

.gallery-card{
  border-radius:14px; overflow:hidden;
  box-shadow:0 6px 16px rgba(66,43,35,.15);
  transition:transform .3s ease, box-shadow .3s ease;
}
.gallery-card:hover{ transform:scale(1.03); box-shadow:0 10px 24px rgba(66,43,35,.2) }
.gallery-card img{ width:100%; height:320px; object-fit:cover; display:block }

/* ======================== */
/* ===== CTA SECTION ====== */
/* ======================== */
.cta{
  position:relative; isolation:isolate;
  background:url('plane.jpg') center/cover no-repeat, var(--surface);
  padding:4rem 1rem; text-align:center; border-radius:12px;
  margin:4rem auto 0; max-width:1000px;
  box-shadow:0 4px 12px rgba(66,43,35,.10);
}
.cta::before{
  content:""; position:absolute; inset:0; z-index:0;
  background:var(--surface); opacity:.65;
}
.cta > *{ position:relative; z-index:1 }

.final-hero-content{ max-width:700px; margin:0 auto }
.cta h2{ font-size:2rem; color:var(--ink); margin-bottom:1rem; font-family:var(--font-head) }
.cta p{ font-size:1.1rem; color:var(--ink); margin-bottom:2rem }

.btn-primary{
  display:inline-block; padding:.75rem 1.5rem;
  background:var(--ink); color:var(--bg);
  border-radius:8px; font-weight:600; font-size:1rem; transition:background .3s ease;
}
.btn-primary:hover{ background:var(--accent); color:var(--ink) }

/* ======================== */
/* ===== FOOTER ===== */
/* ======================== */
.site-footer{ background:var(--bg); color:var(--ink); padding:3rem 0 .8rem; font-size:.9rem }

.footer-grid{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:2rem;
  align-items:flex-start; width:90%; max-width:1200px; margin:0 auto;
}

.footer-about{ flex:1 1 220px }
.footer-logo{ height:180px; margin-bottom:.2rem }

.footer-address{ color:var(--accent); font-size:.95rem; line-height:1.6 }
.footer-address h1, .footer-address h3{ color:var(--ink); font-size:1.2rem; margin-bottom:.5rem; font-family:var(--font-head) }

.footer-links{ flex:1 1 200px }
.footer-links h3{ margin-bottom:.5rem; color:var(--ink); font-family:var(--font-head) }
.footer-links ul{ list-style:none; padding:0 }
.footer-links ul li{ margin-bottom:1.5rem }
.footer-links ul a{ color:var(--accent) }

.footer-social-section{ flex:1 1 200px; text-align:right; margin-right:12rem }
.footer-social{ display:flex; justify-content:flex-end; gap:1.3rem; padding-right:2rem; margin-bottom:1.5rem }

.back-to-top{
  position:fixed; bottom:30px; right:30px;
  background:var(--bg); color:var(--ink);
  padding:8px 10px; border-radius:30%; font-size:1.2rem; cursor:pointer;
  border:2px solid var(--ink);
  z-index:1000; transition:transform .3s ease, opacity .3s ease, background .2s, color .2s;
}
.back-to-top:hover{ transform:translateY(-5px); background:var(--ink); color:var(--bg) }

.footer-bottom{
  text-align:center; margin-top:2rem; border-top:1px solid var(--muted);
  padding-top:1rem; font-size:.85rem;
}

/* ======================== */
/* ===== ANIMATIONS ======= */
/* ======================== */
@keyframes menuDown{
  from{opacity:0;transform:scale(.98) translateY(-6px)}
  to{opacity:1;transform:scale(1) translateY(0)}
}

/* ======================================= */
/* ===== RESPONSIVE: HEADER & NAV ======== */
/* ======================================= */
@media (max-width:768px){
  .header-flex{ flex-direction:row; justify-content:space-between; align-items:center; gap:.5rem; padding:.5rem 1rem }
  .header-logo img{ max-height:140px; margin-top:0 }

  .menu-toggle{
    display:block; position:absolute; top:50%; right:15px; transform:translateY(-50%);
    z-index:1001; color:var(--ink);
  }

  .navbar{ position:static }
  .navbar ul{
    display:none; flex-direction:column; position:absolute; top:4rem; right:-1rem;
    width:160px; padding:1rem; background:rgba(66,43,35,.95);
    border-radius:8px; text-align:right; gap:1rem; z-index:1000;
    animation:menuDown .2s ease-out both;
  }
  .navbar ul.show{ display:flex }

  .navbar a{
    top:0; padding:.4rem; font-size:.95rem; color:#fff; border:none; background:transparent; font-weight:500;
  }
  .navbar a:hover, .navbar a.active{
    background:rgba(255,255,255,.15); color:#fff;
  }
}

/* ========================= */
/* == 786px RESPONSIVE ==   */
/* ========================= */
@media (max-width:786px){
    .gallery-hero {
    height: 140px !important;     /* set the actual height */
    min-height: 0 !important;      /* kill earlier 35vh (or similar) */
    padding: 12px 8px !important;  /* reduce internal space */
    display: flex;
    align-items: center;           /* keep text vertically centered */
    justify-content: center;
    overflow: hidden;              /* clip if content is taller */
  }
    .gallery-hero h1 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0;
  }
  .gallery-section{ padding:1rem ; text-align:center }

  .gallery-grid{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:1.5rem; max-width:1100px; margin:1rem; padding:0.2rem; height: 40rem;
  }

  .gallery-card{
    border-radius:8px;
    box-shadow:0 4px 12px rgba(66,43,35,.12);
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .gallery-card:hover{ transform:scale(1.01); box-shadow:0 6px 16px rgba(66,43,35,.16) }
  .gallery-card img{ height:260px; object-fit:cover }

  .cta{
    padding:1rem; margin:1rem; border-radius:8px; background-position:center;
  }
  .final-hero-content{ max-width:100%; margin:0 auto }
  .cta h2{ font-size:1.4rem; color:var(--ink); margin-bottom:.75rem }
  .cta p{ font-size:1rem; line-height:1.6; color:var(--ink); margin-bottom:1.25rem }

  .btn-primary{
    width:60%; max-width:480px; padding:.5rem 0.5rem; font-size:.9rem; border-radius:8px;
  }
}

/* ===== Footer responsive ===== */
@media (max-width:992px){
  .footer-grid{ gap:1.5rem }
  .footer-social-section{ margin-right:0; text-align:center }
  .footer-social{ justify-content:center; padding-right:0 }
}
@media (max-width:768px){
  .footer-grid{ flex-direction:column; align-items:center; text-align:center }
  .footer-about, .footer-links, .footer-social-section{ flex:1 1 100%; max-width:100% }
  .footer-logo{ height:120px }
}
@media (max-width:480px){
  .footer-address h1, .footer-address h3, .footer-links h3{ font-size:1rem }
  .footer-address p, .footer-links ul li a{ font-size:.85rem }
  .back-to-top{ font-size:1rem; padding:6px 8px; bottom:20px; right:20px }
}
