/* =====================================================
   LAYOUT.CSS (STRUCTURE ONLY)
===================================================== */

/* GLOBAL BOX MODEL */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   CONTAINER SYSTEM
========================= */

.container {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Size modifiers */
.container.full     { max-width: 100%; }
.container.wide     { max-width: 1200px; }
.container.standard { max-width: 1000px; }
.container.narrow   { max-width: 700px; }

/* Prevent collapse from floats */
.container::after {
  content: "";
  display: table;
  clear: both;
}

/* =========================
   SECTION SYSTEM
========================= */

.section {
  width: 100%;
  display: block;
  padding: 60px 0;
  position: relative;
}

/* Size modifiers */
.section--xl { padding: 00px 0; }
.section--lg { padding: var(--space-8) 0; }
.section--md { padding: var(--space-7) 0; }
.section--sm { padding: var(--space-5) 0; }
.section--xs { padding: 20px 0; }

.section--flush { padding: 0; }

/* Prevent collapse */
.section::after {
  content: "";
  display: table;
  clear: both;
}

/* =========================
   HEADER LAYOUT
========================= */

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

/* =========================
   FLEX UTILITIES
========================= */

.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-between {
  justify-content: space-between;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

/* =========================
   GRID SYSTEMS
========================= */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

/* Auto-fit responsive grid */
.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* =========================
   TWO COLUMN LAYOUT
========================= */

.two-col {
  display: flex;
  gap: 30px;
}

.two-col > * {
  flex: 1;
}

@media (max-width: 768px) {
  .two-col {
    flex-direction: column;
  }
}

/* =========================
   CONTENT CONSTRAINT
========================= */

.content-constrain {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   FORM LAYOUT
========================= */

.form-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
}

.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.chateau-inner {
  display: flex;
  align-items: center;        /* 🔥 THIS fixes vertical alignment */
  justify-content: space-between;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  gap: 20px;
}

/* LEFT / CENTER / RIGHT COLUMN BASE RULE */
.chateau-left,
.chateau-center,
.chateau-right {
  display: flex;
  align-items: center;        /* 🔥 vertical alignment inside each column */
}

/* LEFT */
.chateau-left {
  flex: 0 0 auto;
}

/* CENTER */
.chateau-center {
  flex: 1;
  justify-content: center;
}

/* RIGHT */
.chateau-right {
  flex: 0 0 320px;
  justify-content: flex-end;
}

/* TRUST TEXT BLOCK */
.trust-line {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}

/* TAGLINE FIX */
.topbar-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  max-width: 360px;
}

/* =====================================================
   FOOTER SYSTEM (REBUILT CLEAN)
===================================================== */

.site-footer {
  background: #111;
  color: #fff;
  padding-top: 60px;
  font-size: 15px;
}

/* =========================
   MAIN GRID
========================= */

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 50px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;

  align-items: start;
}

/* =========================
   COLUMNS
========================= */

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h3,
.footer-col h4 {
  margin: 0 0 10px;
  color: #fff;
}

.footer-col p {
  margin: 0;
  color: #fff;
  opacity: 0.9;
}

/* =========================
   LINKS
========================= */

.site-footer a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
}

/* =========================
   DIVIDER
========================= */

.footer-divider {
  grid-column: 1 / -1;
  text-align: center;
  color: #fff;
  opacity: 0.4;
  letter-spacing: 4px;
  margin: 10px 0;
}

/* =========================
   SUB FOOTER BAR
========================= */

.footer-sub {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 1200px;
  margin: 0 auto;

  font-size: 13px;
  color: #fff;
}

.footer-sub a {
  color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-sub {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* =========================
   RESPONSIVE CONTAINER
========================= */

@media (max-width: 900px) {
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}