/* ============================================================
   Loja Maçônica — Cravinhos/SP
   Folha de estilos principal
   ============================================================ */

:root {
  --navy: #0d1420;
  --navy-2: #141e2e;
  --navy-3: #1b2740;
  --gold: #c9a227;
  --gold-light: #e3c260;
  --cream: #f5f1e8;
  --ink: #1c2433;
  --muted: #667085;
  --line: #e5e0d5;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(13, 20, 32, .12);
  --radius: 14px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header / Navegação
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(13, 20, 32, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  background: rgba(13, 20, 32, .94);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  object-fit: contain;
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 19px;
}

.brand-text strong { color: var(--gold-light); font-weight: 700; }

.brand-text small {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a:not(.btn-nav) {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color .2s ease;
}

.nav-links a:not(.btn-nav):hover { color: var(--gold-light); }

.btn-nav {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

.btn-nav:hover { background: var(--gold-light); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(8, 12, 22, .8), rgba(8, 12, 22, .92)),
    url("../images/loja-2-411x638.jpeg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 120px 0 80px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, .12), transparent 65%);
  pointer-events: none;
}

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

.pill {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, .5);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 26px;
  background: rgba(13, 20, 32, .35);
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
  display: block;
}

.hero h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 28px auto 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-sub {
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 300;
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
  margin: 22px auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color .2s ease;
}

.hero-scroll a:hover { color: var(--gold-light); }

.hero-scroll a::after {
  content: "↓";
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

/* ============================================================
   Botões
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 14px 34px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(201, 162, 39, .35);
}

.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .1);
}

.btn-outline-dark {
  border: 1px solid var(--navy);
  color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   Seções genéricas
   ============================================================ */

.section { padding: 100px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 42px);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--gold);
}

.section-head p { color: var(--muted); font-size: 17px; }

/* ============================================================
   Sobre (A Loja)
   ============================================================ */

.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-media { position: relative; text-align: center; }

.about-logo {
  width: min(300px, 80%);
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(13, 20, 32, .25));
}

.about-accent {
  position: absolute;
  inset: 8% -6% auto auto;
  width: 42%;
  height: 42%;
  border: 1px solid rgba(201, 162, 39, .4);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 40px);
  color: var(--navy);
  margin-bottom: 18px;
}

.about-text h2 span { color: var(--gold); }

.about-text p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 16px;
}

.about-list {
  margin: 22px 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.about-list li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
  color: var(--ink);
}

.about-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font-size: 12px;
}

/* ============================================================
   Atividades
   ============================================================ */

.activities { background: var(--white); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 162, 39, .55);
}

.card-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a17f1c);
  color: var(--white);
}

.card-icon svg { width: 28px; height: 28px; }

.card h3 {
  font-family: var(--font-head);
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

/* ============================================================
   Localização / Contato
   ============================================================ */

.location { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: stretch;
}

.contact-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

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

.info-item .ic {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(201, 162, 39, .12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item .ic svg { width: 22px; height: 22px; }

.info-item h4 {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.info-item p { color: var(--ink); font-size: 16px; }

.info-item p small { display: block; color: var(--muted); font-size: 14px; }

.info-item a { color: var(--ink); font-weight: 500; }
.info-item a:hover { color: var(--gold); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ============================================================
   Rodapé
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-top p { max-width: 480px; font-size: 15px; }

.site-footer hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-bottom: 22px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom a { color: var(--gold-light); }

/* ============================================================
   Responsivo
   ============================================================ */

@media (max-width: 992px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    width: min(320px, 82vw);
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--navy-2);
    padding: 20px 26px 26px;
    border-bottom-left-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform .3s ease;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; }
  .btn-nav { text-align: center; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
}
