/* ==========================================================
   AENIR STUDIO — MAIN CSS
   GLOBAL STRUCTURE FILE
   AENIR 33 STRUCTURAL REBUILD

   Purpose:
   Global layout + shared components
   Section-specific styles live in modular CSS files.

   Rules:
   • No component logic here
   • No redesign
   • Structural clarity only
========================================================== */


/* ==========================================================
   1 — GLOBAL RESET
========================================================== */

/* =========================================
   GLOBAL RESET — BOX MODEL FIX
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;

  background: #ECE9E4;
  background: var(--site-bg);

  font-family: "Segoe UI", Arial, sans-serif;
  color: #333;

  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 1rem;
}

/* Hide scrollbars visually but keep scroll functionality */

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}


/* ==========================================================
   2 — GLOBAL BASE ELEMENTS
========================================================== */

footer {
  background: var(--footer-bg);
}

.logo {
  color: var(--logo-color);
  font-family: var(--logo-font);
}


/* ==========================================================
   3 — GLOBAL LAYOUT CONTAINERS
========================================================== */

.page-container {
  max-width: 1200px;
  margin: 40px auto 0 auto;

  padding: 40px 0;   /* ✅ vertical only */

  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;

  padding: 0 1.75rem;  /* ✅ unified padding */

  box-sizing: border-box;
}


/* ==========================================================
   4 — HEADER
========================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 9999;

  background: #FAF8F4E6;
  backdrop-filter: blur(4px);

  border-bottom: 1px solid #ddd;
}

/* Logo */

.site-header .logo {
  margin: 0;
  padding: 0;
}

header .logo {
  font-family: var(--logo-font);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--logo-color);
  text-decoration: none;
}

/* Navigation */

nav {
  display: flex;
  gap: 28px;
}

/* Right side controls (flags + burger) */

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;     /* spacing between flags and burger */
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: #B45F36;
  text-decoration: underline;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}


/* ==========================================================
   BURGER MENU BUTTON
========================================================== */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.burger span {
  width: 28px;
  height: 2px;
  background: #333;
  display: block;
}

/* ==========================================================
   5 — HERO BANNER
========================================================== */

.hero-banner {
  width: 100%;
  height: 150px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.15)
  );
}

.hero-banner h1,
.hero-title {
  position: relative;
  z-index: 2;

  color: #fff;
  font-family: 'Pacifico', cursive;
  font-size: 2.4rem;
  line-height: 1.2;

  margin: 0;

  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}


/* ==========================================================
   6 — INTRO TEXT BLOCKS
========================================================== */

.intro-text {
  max-width: 780px;
  margin: 2rem auto 3rem auto;

  text-align: left;
  line-height: 1.6;
  font-size: 1.1rem;
}

.intro-text p:first-child {
  font-weight: 600;
}
/*
.intro-section {
  max-width: 900px;
  margin: 40px auto 30px;

  text-align: center;
  font-size: 1em;

  color: #444;
  line-height: 1.6;
}*/

.page-intro {
  max-width: 700px;
  margin: 0 auto 40px auto;

  font-size: 1.05rem;
  line-height: 1.75;

  color: #555;
  text-align: center;
}

/* iOS typography safety */

.intro-text,
.intro-section,
.page-intro,
.apropos-text,
.contact-text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================
   7 — HOME STRUCTURE
========================================================== */

.home-wrapper {
  padding: 0 0;
  text-align: center;
}

.home-gallery-title {
  margin-top: 40px;
  margin-bottom: 30px;

  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.home-section-title {
  text-align: center;

  margin-top: 40px;
  margin-bottom: 25px;

  font-size: 26px;
  font-weight: 700;
}





/* ==========================================================
   11 — ABOUT PAGE
========================================================== */

.apropos {
  /*max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;*/
  margin: 0 0;        /* keep vertical spacing */
  padding: 0;            /* remove horizontal padding */
  max-width: none;       /* remove width restriction */
}

.apropos-image img {
  width: 100%;
  max-width: 420px;

  height: auto;
  display: block;

  border-radius: 8px;
  margin: 0 auto;
}

.apropos-text {
  line-height: 1.6;
  font-size: 1em;
  color: #444;
}


/* ==========================================================
   12 — CONTACT PAGE
========================================================== */

.contact-page {
  max-width: 760px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form-container {
  margin-top: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 12px;

  font-size: 0.95rem;

  border-radius: 6px;
  border: 1px solid #ccc;

  font-family: inherit;

  transition: border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
  outline: none;
}


/* ==========================================================
   13 — THANK YOU PAGE
========================================================== */

.thankyou-page {
  max-width: 760px;
  margin: 0 auto;

  text-align: center;

  min-height: 60vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thankyou-page h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.thankyou-page p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.thankyou-back {
  display: inline-block;
  margin-top: 2rem;

  font-size: 0.9rem;
  color: #666;

  text-decoration: none;
}

.thankyou-back:hover {
  color: #000;
}


/* ==========================================================
   14 — FOOTER
========================================================== */

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid #ddd;

  padding: 20px 24px;

  font-size: 0.85rem;
  color: #5A3A2E;
}

.footer-inner {
  position: relative;
}

.footer-center {
  text-align: center;
  font-weight: 500;
}

.footer-email {
  color: inherit;
  text-decoration: underline;
}

.footer-right {
  position: absolute;
  right: 0;
  top: 50%;

  transform: translateY(-50%);

  opacity: 0.5;

  font-size: 0.75rem;
}


/* ==========================================================
   15 — UTILITIES
========================================================== */

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

/*
.hidden,
[hidden],
[aria-hidden="true"] {
  pointer-events: none !important;
}*/




/* ==========================================================
   16 — GLOBAL INTERACTION SAFETY
========================================================== */

/* Invisible elements NEVER capture clicks */
[hidden],
.hidden,
[aria-hidden="true"] {
  pointer-events: none !important;
}



/* ==============================
   GALLERY CAPTION — FIXED, STATIC
============================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.img-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #fff;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.25),
        transparent
    );

    opacity: 1;
    pointer-events: none;
}

/* ==========================================================
   BURGER BREAKPOINT
   Only responsive rule kept in main.css
   ========================================================== */

@media (max-width: 992px) {

  .site-header .inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
  }

  .burger {
  display: flex !important;
  justify-self: end;
  margin-right: 60px;
}
  .lang-switcher {
    justify-self: end;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    background: #F7F4EF;
    padding: 20px 0;
    z-index: 1000;
  }

  .site-header.nav-open nav {
    display: flex;
  }

}

/* ======================================
   BURGER NAV FORCE STATE
====================================== */

.site-header.nav-open nav {
  display: flex !important;
}

