/*
Theme Name: Ateliê do Sal
Theme URI: https://ateliedosal.com
Author: Ademilson Almeida
Author URI: https://ateliedosal.com
Description: Tema personalizado para o restaurante Ateliê do Sal em Fátima.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ateliedosal
*/

/* ====== CSS DO SITE ====== */

:root {
  --bg: #05070a;
  --bg-alt: #0c1015;
  --accent: #e6b35a;
  --accent-soft: rgba(230, 179, 90, 0.15);
  --text: #f5f5f5;
  --muted: #a8b0c0;
  --border: #232836;
  --danger: #e35d5d;
}

/* Reset simples */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Layout base */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  margin-bottom: 16px;
}

.section-title.center {
  text-align: center;
}

.section-subtitle {
  max-width: 560px;
  margin: 0 auto 40px auto;
  color: var(--muted);
  text-align: center;
}

.center {
  text-align: center;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-main {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Navegação */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

.nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-nav {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(230, 179, 90, 0.6);
}

/* Toggle mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 96px 0 72px 0;
  background-image: url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: var(--text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(230,179,90,0.25), transparent 50%),
              linear-gradient(to bottom, rgba(5,7,10,0.7), var(--bg));
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 32px;
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.hero-subtitle {
  max-width: 480px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-info {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  background: rgba(5,7,10,0.88);
  border-radius: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  align-self: center;
}

.hero-card h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.hero-card-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-list li::before {
  content: "• ";
  color: var(--accent);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1206;
}

.btn-primary:hover {
  background: #f0c36f;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

/* Grades */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
}

/* Blocos */
.highlight-box {
  background: var(--accent-soft);
  border: 1px solid rgba(230, 179, 90, 0.3);
  border-radius: 18px;
  padding: 20px 22px;
  font-size: 0.95rem;
}

.highlight-box ul {
  list-style: none;
}

.highlight-box li + li {
  margin-top: 6px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(145deg, #0b0f16, #141924);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.gallery-item {
  min-height: 120px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}

/* Horários */
.hours-list {
  list-style: none;
  margin: 10px 0 14px;
}

.hours-list li + li {
  margin-top: 4px;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Mapa */
.map-wrapper {
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.map-wrapper iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

/* Reservas */
.contact-list {
  list-style: none;
  margin: 14px 0;
}

.contact-list li + li {
  margin-top: 6px;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.form-box {
  background: #0c1017;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 18px 18px 20px;
  font-size: 0.95rem;
}

.form-info {
  color: var(--muted);
  margin-bottom: 14px;
}

.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #05070b;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Rodapé */
.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #050609;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 26px 20px 16px;
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.footer-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-text a {
  color: var(--accent);
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 10px 20px 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsivo */
@media (max-width: 800px) {
  .hero {
    padding-top: 96px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin-top: 10px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    gap: 10px;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(5,7,10,0.98);
    padding: 14px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .btn-nav {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero-card {
    padding: 16px 16px 18px;
  }

  .form-box {
    padding: 16px 14px 18px;
  }
}
