/* =========================================================
   ALIMAS — alimas-legacy.com
   Shared stylesheet for all pages
   ========================================================= */

:root {
  --black: #0d0d0d;
  --black-2: #151515;
  --gold: #c9a45c;
  --gold-light: #e2c585;
  --gold-dark: #9c7a3c;
  --wc-red: #7a1418;
  --luso-blue: #14315e;
  --cream: #f5efe6;
  --cream-2: #efe6d8;
  --ink: #1c1c1c;
  --body-text: #3a3550;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --serif-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #0d0d0d; min-height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--black);
  border-bottom: 1px solid rgba(201, 164, 92, .25);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.brand img { height: 62px; width: auto; }
.brand-divider { width: 1px; height: 40px; background: var(--gold); opacity: .7; }
.brand-name {
  font-family: var(--sans);
  font-weight: 300;
  color: #f2f2f2;
  letter-spacing: .22em;
  font-size: 24px;
}
.brand-name small {
  font-family: var(--serif);
  letter-spacing: 0;
  font-size: 14px;
  margin-left: 4px;
  color: #d8d8d8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav a {
  font-family: var(--serif);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .06em;
  font-size: 16px;
  color: #f2f2f2;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.btn-outline-gold {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 15px;
  text-decoration: none;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  padding: 12px 22px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-outline-gold:hover,
.btn-outline-gold.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 22px;
  padding: 4px 12px;
  cursor: pointer;
}

.main-nav a.btn-outline-gold { color: var(--gold-light); border-bottom: 1.5px solid var(--gold); padding: 12px 22px; }
.main-nav a.btn-outline-gold:hover,
.main-nav a.btn-outline-gold.active { color: var(--black); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #eee;
  border-top: 1px solid rgba(201, 164, 92, .25);
}
.footer-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; align-items: center; }
.footer-links a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 18px;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links span { color: #aaa; }
.copyright {
  width: 100%;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  color: #888;
  letter-spacing: .05em;
  padding: 0 24px 18px;
}

/* ---------- HOME ---------- */
.home-hero {
  max-width: 1040px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.home-hero img {
  width: 100%;
  height: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.pillars {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.pillar-icon {
  width: 118px;
  height: 118px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2a2a, #050505 70%);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.pillar-icon svg { width: 62px; height: 62px; }
.pillar h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 24px;
  margin: 0;
  line-height: 1.1;
}
.pillar p {
  font-family: var(--sans);
  font-size: 17px;
  margin: 2px 0 0;
  line-height: 1.25;
}

/* ---------- ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: start;
}
.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.about-copy {
  padding: 60px 50px 60px 44px;
  max-width: 820px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--serif-display);
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .45em;
  font-size: 15px;
  font-weight: 600;
}
.eyebrow::after {
  content: "";
  width: 140px;
  height: 2px;
  background: var(--gold);
}
.about h1 {
  font-family: var(--serif-display);
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  margin: 24px 0 18px;
  letter-spacing: -.01em;
  font-weight: 700;
}
.about h1 .gold { color: var(--gold-dark); }
.gold-rule { width: 130px; height: 3px; background: var(--gold); margin: 0 0 30px; border: 0; }
.about-copy p { color: var(--body-text); margin: 0 0 26px; font-size: 21px; }
.about-copy .quote { font-style: italic; }
.philosophy {
  background: var(--cream-2);
  text-align: center;
  padding: 22px 16px;
  margin: 4px 0 30px;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 20px;
  line-height: 2;
  color: var(--ink);
}
.float-photo {
  float: right;
  width: 44%;
  max-width: 320px;
  margin: 4px 0 16px 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.clear { clear: both; }

/* ---------- SCHEDULE ---------- */
.schedule-intro {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 24px 10px;
  text-align: center;
}
.schedule-intro h1 {
  font-family: var(--serif-display);
  font-size: clamp(44px, 6vw, 76px);
  margin: 0;
  line-height: 1.05;
  font-weight: 500;
}
.schedule-intro .rule {
  width: 60%;
  max-width: 480px;
  height: 2px;
  margin: 22px auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.schedule-intro h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0 0 8px;
}
.schedule-intro p { margin: 0 auto; max-width: 820px; color: #333; font-size: 20px; }

.features {
  max-width: var(--max);
  margin: 26px auto 30px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature { display: flex; align-items: center; gap: 18px; }
.feature .dot {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--gold-dark);
  display: grid;
  place-items: center;
}
.feature .dot svg { width: 36px; height: 36px; }
.feature h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .08em;
  font-size: 17px;
}
.feature p { margin: 0; color: #555; font-size: 17px; line-height: 1.3; }

.cards {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  background: var(--cream);
  border: 1px solid #e7dcc9;
  display: flex;
  flex-direction: column;
}
.card > img { width: 100%; aspect-ratio: 760 / 452; object-fit: cover; }
.card-body { padding: 28px 28px 24px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.card-body h3 strong { font-weight: 700; display: block; font-size: 38px; }
.card-body h3 span { display: block; font-size: 38px; }
.card-body > p { margin: 0 0 20px; font-size: 19px; color: #333; }

.btn-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 21px;
  line-height: 1.2;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.btn-big:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.btn-big svg { width: 34px; height: 34px; flex: 0 0 34px; }
.btn-big small { display: block; text-transform: none; letter-spacing: 0; font-size: 17px; opacity: .92; }
.btn-red { background: linear-gradient(180deg, #8c1a1f, var(--wc-red)); }
.btn-blue { background: linear-gradient(180deg, #1b3d72, var(--luso-blue)); }

.card-email {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  border-top: 1px solid #d9c9ab;
  border-bottom: 1px solid #d9c9ab;
  margin: 24px 0 18px;
  padding: 14px 20px;
}
.card-email svg { width: 46px; height: 46px; flex: 0 0 46px; }
.card-email a {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}
.card-email a:hover { color: var(--gold-dark); text-decoration: underline; }
.card-email p { margin: 2px 0 0; font-family: var(--sans); font-size: 14px; color: #555; }

.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
}
.badge {
  text-align: center;
  padding: 6px 6px 0;
  color: #8a5a22;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  line-height: 1.35;
}
.badge + .badge { border-left: 1px solid #d9c9ab; }
.badge svg { width: 46px; height: 46px; margin: 0 auto 8px; display: block; }

.questions {
  background: var(--black);
  color: #fff;
  text-align: center;
  padding: 36px 24px 30px;
}
.q-title { display: flex; align-items: center; gap: 24px; max-width: var(--max); margin: 0 auto; }
.q-title::before, .q-title::after { content: ""; flex: 1; height: 1px; background: var(--gold); }
.q-title h2 { margin: 0; font-family: var(--serif-display); font-weight: 400; font-size: clamp(32px, 4vw, 46px); }
.questions > p { margin: 4px 0 20px; font-size: 21px; }
.q-contact {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  padding: 10px 40px;
  text-align: left;
}
.q-contact .ring {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid; place-items: center; flex: 0 0 80px;
}
.q-contact .ring svg { width: 42px; height: 42px; }
.q-contact h5 { margin: 0; font-family: var(--sans); color: var(--gold); letter-spacing: .1em; font-size: 15px; font-weight: 500; }
.q-contact a { display: block; font-family: var(--sans); color: #fff; text-decoration: none; font-size: 17px; }
.q-contact a:hover { color: var(--gold-light); text-decoration: underline; }
.q-brand { display: flex; align-items: center; gap: 24px; max-width: var(--max); margin: 26px auto 0; }
.q-brand::before, .q-brand::after { content: ""; flex: 1; height: 1px; background: var(--gold); }
.q-brand span { font-family: var(--sans); letter-spacing: .3em; color: var(--gold-light); font-size: 24px; font-weight: 300; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin: 0 auto; padding: 50px 24px 70px; }
.legal h1 { font-family: var(--serif-display); font-size: 48px; margin: 0 0 10px; }
.legal h2 { font-family: var(--serif-display); font-size: 26px; margin: 34px 0 8px; }
.legal p, .legal li { color: #333; }

/* ---------- Responsive: computers keep the mockup layout; tablets & phones stack ---------- */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about-photo img { max-height: 620px; object-position: top; }
  .about-copy { padding: 40px 24px; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-wrap { flex-wrap: wrap; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 0 6px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .main-nav .btn-outline-gold { margin-top: 6px; }
  .brand img { height: 48px; }
  .brand-name { font-size: 18px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .pillars { grid-template-columns: 1fr; gap: 30px; }
  .brand-divider { display: none; }
  .float-photo { float: none; width: 100%; max-width: none; margin: 0 0 20px; }
  .philosophy { font-size: 15px; letter-spacing: .12em; }
  .card-body { padding: 22px 16px; }
  .card-body h3 strong, .card-body h3 span { font-size: 30px; }
  .btn-big { font-size: 17px; }
  .q-contact { flex-direction: column; text-align: center; padding: 10px 20px; }
  .footer-wrap { justify-content: center; text-align: center; }
  .badge { font-size: 12px; }
}

/* ---------- Desktop / Mobile view switch ---------- */
.view-switch { text-align: center; padding: 0 24px 16px; }
.view-switch a {
  display: none;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  padding: 12px 26px;
}
.view-switch a:hover { background: var(--gold); color: var(--black); }
@media (max-width: 980px) { .view-switch .to-desktop { display: inline-block; } }
.force-desktop body { min-width: 1280px; }
.force-desktop .view-switch .to-desktop { display: none; }
.force-desktop .view-switch .to-mobile { display: inline-block; font-size: 30px; padding: 20px 44px; }
