@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=IM+Fell+English:ital@0;1&display=swap');

/* ============================================
   AZULEJARIA MAZAL — Maria Carvalhal
   Design: Luxury Portuguese Artisan
   ============================================ */

:root {
  --navy:       #0D1B3E;
  --navy-mid:   #1A2F5E;
  --cream:      #F5EDD8;
  --cream-dark: #EAD9B8;
  --gold:       #C9A84C;
  --gold-light: #E8D5A3;
  --gold-dark:  #A07C28;
  --azul:       #3D6B9E;
  --azul-light: #5A8EC4;
  --azul-pale:  #C8D9EE;
  --white:      #FAFAF7;
  --dark:       #0A0F1E;
  --text:       #2A2A3E;
  --text-light: #6B6B80;
  --ease:       cubic-bezier(0.25, 0.8, 0.25, 1);
  --trans:      all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-color: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================
   NAVIGATION
   ============================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.8rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--trans);
}

nav.scrolled {
  background: rgba(13, 27, 62, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.1rem 5rem;
  box-shadow: 0 2px 40px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .logo-main { color: var(--white); }
.nav-logo .logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.85);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.6rem 1.4rem;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  border: 1px solid var(--gold);
  transition: var(--trans) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: transparent !important;
  color: var(--gold) !important;
}

/* ============================
   WHATSAPP FLOAT
   ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 2.5rem; right: 2.5rem;
  z-index: 999;
  background: #25D366;
  color: white;
  width: 65px; height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 6px 25px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.3s var(--ease);
  animation: waPulse 2.5s infinite;
}

.whatsapp-float:hover { transform: scale(1.12) rotate(-5deg); }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 25px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 50px rgba(37,211,102,0.75), 0 0 0 12px rgba(37,211,102,0.1); }
}

/* ============================
   TYPOGRAPHY
   ============================ */
.label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
  color: var(--navy);
}

.display-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.section-sub {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.85;
  font-weight: 300;
  max-width: 580px;
}

/* ============================
   DECORATIVE
   ============================ */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament-line.right {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament-icon {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  font-family: 'IM Fell English', serif;
}

.tile-border-top {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--azul), var(--gold), var(--azul), var(--navy));
}

.tile-border-bottom {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--azul), var(--gold), var(--navy));
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
}

.btn:hover::before { transform: translateX(0); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}

.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}

.btn-navy:hover {
  background: transparent;
  color: var(--navy);
}

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

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

.btn-whatsapp {
  background: #25D366;
  color: white;
  border: 2px solid #25D366;
  font-size: 1.05rem;
  padding: 1.1rem 2.8rem;
}

.btn-whatsapp:hover {
  background: #1db954;
  border-color: #1db954;
}

/* ============================
   PRODUCT CARDS
   ============================ */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13,27,62,0.07);
  transition: var(--trans);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azul), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: 1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(13,27,62,0.15);
}

.card:hover::before { transform: scaleX(1); }

.card-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.card:hover .card-img { transform: scale(1.06); }

.card-body {
  padding: 1.8rem;
  border-top: 2px solid var(--cream-dark);
}

.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.card-body p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================
   SECTIONS BASE
   ============================ */
section {
  padding: 7rem 5rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 5rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-sub {
  margin: 0 auto;
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--dark);
  color: var(--cream);
  padding: 5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.footer-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand .tagline {
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 1rem;
  opacity: 0.65;
  line-height: 1.8;
  font-weight: 300;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: rgba(245,237,216,0.65);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-col address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 2;
  opacity: 0.65;
}

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.4;
}

/* ============================
   PAGE HERO (sub-pages)
   ============================ */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 4rem 5rem;
  overflow: hidden;
  background: var(--navy);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(1.2);
  transform: scale(1.05);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.page-hero .label { margin-bottom: 0.8rem; }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-up { animation: fadeUp 0.8s var(--ease) both; }
.animate-up-d1 { animation: fadeUp 0.8s 0.15s var(--ease) both; }
.animate-up-d2 { animation: fadeUp 0.8s 0.3s var(--ease) both; }
.animate-up-d3 { animation: fadeUp 0.8s 0.45s var(--ease) both; }
.animate-up-d4 { animation: fadeUp 0.8s 0.6s var(--ease) both; }

/* Intersection Observer - reveal */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  section { padding: 5rem 3rem; }
  nav { padding: 1.5rem 3rem; }
  nav.scrolled { padding: 1rem 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > *:first-child { grid-column: 1/-1; }
  .page-hero { padding: 3rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }
  nav { padding: 1.2rem 1.5rem; }
  nav.scrolled { padding: 0.9rem 1.5rem; }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }
  
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .hamburger span {
    display: block;
    width: 26px; height: 2px;
    background: var(--white);
    transition: var(--trans);
  }
  
  .grid-products { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-hero { padding: 2rem 1.5rem; height: 45vh; }
  .whatsapp-float { bottom: 1.5rem; right: 1.5rem; width: 55px; height: 55px; font-size: 1.6rem; }
}

.hamburger { display: none; }
