/* =========================================================
   COURELA MELOSA — HOME
   Para trocar a imagem: substitua assets/background.jpg
   Para trocar o logótipo: substitua assets/logo.svg
   ========================================================= */

:root {
  --gold: #c98516;
  --gold-dark: #a9680d;
  --brown: #3c2412;
  --white: #fff;
  --overlay: rgba(32, 17, 5, 0.10);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ead8b9;
  color: var(--brown);
}

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("../assets/background.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.10) 0%,
    rgba(255,255,255,.02) 55%,
    rgba(255,215,150,.08) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  margin-top: -1vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 36px;
}

.brand-logo {
  width: min(78vw, 430px);
  max-height: 255px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(255,255,255,.35));
}

.divider {
  width: min(72vw, 210px);
  margin: 4px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.divider span {
  height: 1px;
  flex: 1;
  background: var(--gold);
  opacity: .9;
}

.divider b {
  font-size: 13px;
  line-height: 1;
}

.tagline {
  margin: 0 0 20px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.35;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(255,255,255,.55);
}

.shop-button {
  min-width: 230px;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: linear-gradient(180deg, #d99522, #bc740d);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 7px 20px rgba(74, 40, 7, .25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.shop-button:hover,
.shop-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 25px rgba(74, 40, 7, .30);
}

.shop-button:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 4px;
}

.shop-icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
}

.shop-icon svg {
  width: 100%;
  height: 100%;
}

/* Tablet */
@media (max-width: 900px) {
  .hero {
    background-position: center center;
  }
  .hero__content {
    width: min(90vw, 520px);
  }
}

/* Mobile: keeps the focal area visible and avoids excessive logo size */
@media (max-width: 600px) {
  .hero {
    min-height: 100svh;
    background-position: 58% center;
  }

  .hero__content {
    width: 94vw;
    padding: 18px 14px 28px;
  }

  .brand-logo {
    width: min(88vw, 360px);
    max-height: 205px;
  }

  .tagline {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .shop-button {
    min-width: 215px;
    min-height: 54px;
    font-size: 16px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .brand-logo { width: 90vw; }
  .hero__content { padding-top: 8px; }
  .tagline { font-size: 16px; }
}

/* =========================================================
   PROFESSIONAL PAGE LOADER
   ========================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(201,133,22,.075), transparent 31%),
    linear-gradient(135deg,#fffdf9 0%,#f7f0e4 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .65s cubic-bezier(.4,0,.2,1), visibility .65s cubic-bezier(.4,0,.2,1);
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-shell {
  width: min(86vw,360px);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  animation: loaderShellIn .7s cubic-bezier(.2,.8,.2,1) both;
}
.loader-mark {
  position:relative;
  width:154px;
  height:154px;
  display:grid;
  place-items:center;
  margin-bottom:24px;
}
.loader-ring {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform:rotate(-90deg);
  overflow:visible;
}
.loader-ring circle {
  fill:none;
  stroke-width:2.2;
}
.loader-ring__track { stroke:rgba(185,120,19,.14); }
.loader-ring__progress {
  stroke:#c98516;
  stroke-linecap:round;
  stroke-dasharray:326.73;
  stroke-dashoffset:326.73;
  filter:drop-shadow(0 1px 3px rgba(185,120,19,.18));
  transition:stroke-dashoffset .18s ease-out;
}
.loader-logo-wrap {
  width:108px;
  height:108px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.82);
  box-shadow:0 14px 35px rgba(73,42,10,.08), inset 0 0 0 1px rgba(185,120,19,.08);
  overflow:hidden;
  animation:loaderLogoPulse 2.2s ease-in-out infinite;
}
.loader-logo { width:86px; height:86px; object-fit:contain; display:block; }
.loader-brand {
  color:#3c2412;
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
  font-weight:700;
  letter-spacing:.18em;
  line-height:1;
  margin-left:.18em;
}
.loader-location {
  margin-top:8px;
  color:#b97813;
  font-family:Arial,Helvetica,sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:.38em;
  line-height:1;
  margin-left:.38em;
}
.loader-status {
  width:min(76vw,280px);
  margin-top:30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  color:rgba(60,36,18,.68);
  font-size:11px;
  letter-spacing:.04em;
}
.loader-status strong {
  color:#b97813;
  font-size:11px;
  font-weight:700;
  min-width:30px;
  text-align:right;
}
.loader-bar {
  width:min(76vw,280px);
  height:3px;
  margin-top:9px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(185,120,19,.13);
}
.loader-bar span {
  display:block;
  width:0%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#a9680d,#d99a28);
  box-shadow:0 0 9px rgba(201,133,22,.22);
  transition:width .18s ease-out;
}
@keyframes loaderShellIn {
  from { opacity:0; transform:translateY(12px) scale(.985); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes loaderLogoPulse {
  0%,100% { transform:scale(1); }
  50% { transform:scale(1.025); }
}
@media (max-width:600px) {
  .loader-mark { width:140px; height:140px; margin-bottom:20px; }
  .loader-logo-wrap { width:98px; height:98px; }
  .loader-logo { width:78px; height:78px; }
  .loader-brand { font-size:18px; letter-spacing:.14em; margin-left:.14em; }
  .loader-status,.loader-bar { width:min(78vw,280px); }
}
@media (prefers-reduced-motion:reduce) {
  .page-loader,.loader-shell,.loader-logo-wrap { animation:none!important; transition-duration:.2s!important; }
}

