/* Begonia — Arquitetura e Design de Interiores */

:root {
  --color-bg: #faf9f7;
  --color-text: #2c2a26;
  --color-text-muted: #6b6560;
  --color-accent: #8b7355;
  --color-border: #e8e4df;
  --font-serif: 'FreeSerif', Georgia, serif;
  --font-sans: 'Quicksand', -apple-system, sans-serif;
  --space: 1.5rem;
  --space-lg: 3rem;
  --max-width: 1200px;
}

@font-face {
  font-family: 'FreeSerif';
  src: url('../fonts/freeserif/FreeSerifItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

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

html {
  scroll-behavior: smooth;
}

.about-content p,
.contact-content p,
.project-description {
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--color-text-muted);

}

/* h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
} */

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.03em;
}

.section-title {
  font-size: 1.9rem;
  letter-spacing: 0.025em;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.04em; 
  color: var(--color-text);
  background: var(--color-bg);
  padding-bottom: 80px;
}

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

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

/* Header */
.header {
  min-height: 70px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1100px; /* keeps everything centered */
  margin: 0 auto;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.header .logo,
.header .nav a {
  transition: color 0.4s;
}

/* Transparent hero state: white text */
/* .header .logo {
  color: #fff;
} */

/* .header .nav a {
  color: rgba(255, 255, 255, 0.8);
} */

.header:not(.scrolled) .logo {
  color: #fff;
}

.header.scrolled .logo {
  color: var(--color-text);
}


.header.scrolled .nav a {
  color: var(--color-text-muted); /* light background */
}

.header .nav a:hover {
  color: #be604e;
}

/* Scrolled state: solid bg, dark text */
.header.scrolled {
  background: rgba(250, 249, 247, 0.97);
  border-color: var(--color-border);
  box-shadow: 0 1px 0 var(--color-border);
}

.header.scrolled .logo {
  color: var(--color-text);
}

.header.scrolled .nav a {
  color: var(--color-text-muted);
}

.header.scrolled .nav a:hover {
  color: var(--color-accent);
}

/* base setup */
.logo {
  display: flex;
  align-items: center;
  height: 62px; /* adjust size here */
}

/* both images */
.logo-img {
  height: 100%;
  width: auto;
}

/* default = light mode → white logo */
.logo-white { display: block; }
.logo-dark { display: none; }

/* 🌙 dark mode → switch logos */
@media (prefers-color-scheme: dark) {
  .logo-white { display: block !important; }
  .logo-dark { display: none !important; }
}


.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav.active {
  max-height: 300px;
}

.nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav a:hover {
  color: #be604e;
}

.nav-cta {
  background-color: rgba(190, 96, 78, 0.1);
  color: #be604e;
  border-radius: 999px;
  padding: 0 1rem;
  height: 32px;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.nav-cta:hover {
  background-color: #be604e;
  color: #fff !important; /* 👈 prevents override */
}

/* Hero */
.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  height: 45vh;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  animation: heroFade 24s infinite;
}

/* Stagger each slide — 4 slides, 6s each, 24s total cycle */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroFade {
  0%      { opacity: 0; transform: scale(1.05); }
  4%      { opacity: 1; }
  25%     { opacity: 1; transform: scale(1); }
  29%     { opacity: 0; transform: scale(1); }
  100%    { opacity: 0; transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(250, 249, 247, 0.35) 0%,
    rgba(44, 42, 38, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space);
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
}

/* Sections */
.section {
  padding: var(--space-lg) var(--space-lg) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--alt {
  background: #f3f0eb;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 var(--space-lg);
  letter-spacing: 0.02em;
}

/* Projects grid */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space);
}

.card {
  display: block;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 42, 38, 0.08);
}

.card-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.card-title {
  display: block;
  padding: 1rem var(--space);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text);
  transition: color 0.25s ease;
}

/* hover effect */
.card:hover .card-title {
  color: #be604e; /* your accent */
}

/* About / Contact */
.about-content {
    max-width: 720px;
    text-align: left;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-size: 16px;
}

/* Signature line */
.about-signature {
    margin-top: 30px;
    font-weight: 500;
    color: #222;
}

.contact-content a {
  color: var(--color-text);
  transition: color 0.2s;
}

.contact-content a:hover {
  color: var(--color-accent);
}

.cta-text {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
}

/*Orçamento*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1rem 2.2rem; /* ⬅️ slightly bigger = more importance */

  background-color: #be604e; /* ⬅️ solid, bold */
  color: #fff;

  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;

  border-radius: 999px;
  border: none;

  transition: all 0.25s ease;
}

/* HOVER → darker, not inverted */
.btn:hover {
  background-color: #a94f40; /* ⬅️ deeper terracotta */
  transform: translateY(-1px); /* subtle lift */
  box-shadow: 0 6px 18px rgba(190, 96, 78, 0.25);
}

/* CLICK */
.btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* HOVER */
.btn:hover {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

/* CLICK */
.btn:active {
  transform: scale(0.96);
}

/* Footer */
.footer {
  padding: var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer p {
  margin: 0;
}

/* Project detail page */
.page-header {
  padding: calc(4rem + 60px) var(--space-lg) var(--space);
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.page-back {
  display: inline-block;
  margin-bottom: 1rem;

  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;

  color: var(--color-text-muted);

  transition: all 0.25s ease;
}

/* HOVER */
.page-back:hover {
  color: #be604e; /* your accent */
  transform: translateX(-3px); /* subtle movement */
}

.project-description {
  max-width: 560px;
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space);
  padding: 0 var(--space-lg) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav {
    gap: 1.25rem;
  }
  .nav a {
    font-size: 0.85rem;
  }
  .projetos-grid {
    grid-template-columns: 1fr;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* MOBILE */
/* MOBILE */
@media (max-width: 768px) {

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0 1.5rem;
  }

  .logo {
    order: 1;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    order: 2;
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav {
    order: 3;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 0.5rem; /* tighter rhythm */

    max-height: 0;
    overflow: hidden;

    padding: 0;
    margin: 0;

    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  /* ✅ OPEN STATE */
  .nav.active {
    max-height: 500px;
    padding: 1.5rem 1.5rem; /* 👈 breathing space */
    border-top: 1px solid var(--color-border);
  }

  /* ✅ LINKS */
  .nav a {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.03em;

    padding: 0.7rem 0.8rem;
    border-radius: 6px;
    width: 100%;

    transition: all 0.2s ease;
  }

  /* Tap feedback */
  .nav a:active {
    color: #be604e;
    background-color: rgba(190, 96, 78, 0.12);
    transform: scale(0.98);
  }

  /* ✨ CTA BUTTON (Orçamento) */
  .nav-cta {
    margin-top: 0.8rem;

    width: 100%;
    justify-content: center;

    padding: 0.9rem 1rem;
    border-radius: 999px;

    background-color: #be604e;
    color: #fff;

    font-weight: 500;
    letter-spacing: 0.05em;
  }

  .nav-cta:active {
    background-color: #a94f40;
    transform: scale(0.97);
  }
}


/* FOOTER */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fafafa;
    border-top: 1px solid #e0e0e0;
    padding: 10px 0; /* ⬅️ a bit taller */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    background-color: rgba(250, 250, 250, 0.85);
backdrop-filter: blur(8px);
}

/* ICONS ROW */
.social-icons {
    display: flex;
    gap: 35px; /* ⬅️ more breathing space */
    align-items: center;
}

/* LINK */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ICON IMAGE */
.icon {
    width: 48px;   /* ⬅️ bigger */
    height: 48px;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HOVER */
.social-icon:hover .icon {
    transform: scale(1.15);
    opacity: 0.85;
}