/* ============================================================
   Restaurante Dona Isilda — style.css
   Zero dependencies. Modern CSS only.
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --green:      #254C31;
  --green-dark: #1a3622;
  --white:      #ffffff;
  --off-white:  #f5f5f5;
  --dark:       #222222;
  --mid:        #555555;
  --light:      #a4a4a4;
  --nav-height: 110px;
  --font-body:  'Open Sans', Helvetica, Arial, sans-serif;
  --font-menu:  'Raleway', 'Open Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
p { line-height: 1.7; margin-bottom: 1em; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; margin-bottom: 0.6em; }
h3.rvps1 { font-size: 1.4rem; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 0.4em; margin-bottom: 1em; }
h4.rvps1 { font-size: 1.1rem; color: var(--white); margin-top: 1.4em; }
li { line-height: 1.8; }
strong, b { font-weight: 600; }
em { font-style: italic; }
table { border-collapse: collapse; width: 100%; }
td, th { padding: 0.4em; vertical-align: top; }
iframe { max-width: 100%; }

/* --- Font Faces (self-hosted) --- */
@font-face {
  font-family: 'fontAwesome';
  src: url('../fonts/fontawesome-webfont.eot');
  src: url('../fonts/fontawesome-webfont.eot') format('embedded-opentype'),
       url('../fonts/fontawesome-webfont.woff') format('woff'),
       url('../fonts/fontawesome-webfont.ttf') format('truetype');
  font-weight: normal; font-style: normal;
}
@font-face {
  font-family: 'socicon';
  src: url('../fonts/socicon-webfont.eot');
  src: url('../fonts/socicon-webfont.eot') format('embedded-opentype'),
       url('../fonts/socicon-webfont.woff') format('woff'),
       url('../fonts/socicon-webfont.ttf') format('truetype');
  font-weight: normal; font-style: normal;
}
@font-face {
  font-family: 'MonoSocialIconsFont';
  src: url('../fonts/MonoSocialIconsFont-1.10.eot');
  src: url('../fonts/MonoSocialIconsFont-1.10.eot') format('embedded-opentype'),
       url('../fonts/MonoSocialIconsFont-1.10.woff') format('woff'),
       url('../fonts/MonoSocialIconsFont-1.10.ttf') format('truetype');
  font-weight: normal; font-style: normal;
}

.fa { font-family: 'fontAwesome'; font-style: normal; }
.fa-bars::before    { content: "\f0c9"; }
.fa-angle-down::before { content: "\f107"; }

.socicon { font-family: 'socicon'; font-style: normal; font-size: 1.2rem; }
.monosymbol { font-family: 'MonoSocialIconsFont'; font-style: normal; font-size: 1.2rem; }
/* socicon: b=facebook, x=instagram */

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Desktop: two link groups + centered logo */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  border-top: 1px dotted #777;
  border-bottom: 1px dotted #777;
  padding: 1.4rem 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: #000;
  padding: 0;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  opacity: 1;
}

.nav-logo {
  flex-shrink: 0;
  padding: 0 1rem;
}
.nav-logo img {
  height: 70px;
  width: auto;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  font-family: 'fontAwesome';
  font-size: 1.5rem;
  color: var(--dark);
  line-height: 1;
}

/* Mobile nav overlay */
#mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  z-index: 999;
  overflow-y: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
body.nav-open #mobile-nav { display: flex; }

#mobile-nav a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.1rem 2rem;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--dark);
  border-bottom: 1px solid var(--off-white);
  letter-spacing: 0.03em;
}
#mobile-nav a:hover { color: var(--green); background: var(--off-white); opacity: 1; }

/* ============================================================
   PAGE WRAPPER — offset for fixed nav
   ============================================================ */

.page-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ============================================================
   HOMEPAGE SLIDESHOW
   ============================================================ */

.slideshow {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.slideshow ul {
  position: absolute;
  inset: 0;
  margin: 0; padding: 0;
}

.slideshow ul li {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  animation: slideFade 36s infinite;
}

/* stagger each slide by 6s */
.slideshow ul li:nth-child(1) { animation-delay:  0s; }
.slideshow ul li:nth-child(2) { animation-delay:  6s; }
.slideshow ul li:nth-child(3) { animation-delay: 12s; }
.slideshow ul li:nth-child(4) { animation-delay: 18s; }
.slideshow ul li:nth-child(5) { animation-delay: 24s; }
.slideshow ul li:nth-child(6) { animation-delay: 30s; }

@keyframes slideFade {
  0%         { opacity: 0; }
  5%         { opacity: 1; }
  22%        { opacity: 1; }
  27%        { opacity: 0; }
  100%       { opacity: 0; }
}

/* Social sidebar on homepage */
.home-social {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.home-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  color: var(--dark);
  font-size: 1.1rem;
  transition: background 0.2s;
}
.home-social a:hover { background: var(--white); opacity: 1; }

/* Quinta do Louro Instagram — stacked label + icon */
.social-qdl {
  flex-direction: column !important;
  height: auto !important;
  padding: 0.3rem 0.4rem !important;
  border-radius: 8px !important;
  width: auto !important;
  min-width: 36px;
  gap: 0 !important;
}
.qdl-label {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* ============================================================
   CARD GRID (Restaurante / Serviço)
   ============================================================ */

.card-grid-page {
  background: var(--white);
  min-height: calc(100vh - var(--nav-height));
  padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
}

.card-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Full-width card variant */
.card-grid .card-full { grid-column: 1 / -1; }

.card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #111;
}
.card-full { aspect-ratio: 21 / 7; }

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.card:hover .card-bg { transform: scale(1.04); }

.card-header {
  position: absolute;
  bottom: 10px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.card:hover .card-header {
  opacity: 0;
  transform: translateY(-10px);
}
.card-header .title {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.2;
}

.card-hover {
  position: absolute;
  bottom: 10px;
  left: 15px;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  max-width: calc(100% - 30px);
}
.card:hover .card-hover { opacity: 1; }

.card-hover .title {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
}
.card-hover .description {
  color: #9E9E9E;
  font-size: 1.1rem;
  font-weight: 200;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   INNER CONTENT PAGES (text + images)
   ============================================================ */

.content-page {
  background: var(--dark);
  color: var(--white);
  min-height: calc(100vh - var(--nav-height));
  padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
}

.content-page a { color: rgba(255,255,255,0.75); text-decoration: underline; }
.content-page a:hover { color: var(--white); opacity: 1; }

.content-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.content-inner.full-width {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.content-text li {
  margin-left: 1.2rem;
  list-style: disc;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.3rem;
}

.content-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.content-images img {
  width: 100%;
  border-radius: 2px;
}

/* Special page backgrounds */
.page-bg-cover {
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.content-box {
  background: rgba(0,0,0,0.88);
  padding: 2rem 2.5rem;
  border-radius: 2px;
  max-width: 800px;
  margin: 0 auto;
}

.content-box h2 {
  color: var(--white);
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

/* ============================================================
   EMENTA
   ============================================================ */

.ementa-page {
  background: var(--dark);
  color: var(--white);
  min-height: calc(100vh - var(--nav-height));
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
}

.ementa-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.ementa-page h1 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.menu-section {
  margin-bottom: 3rem;
}

.menu-section-header {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.menu-section-header .section-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  margin-bottom: -1px;
}

.menu-section-header h2 {
  font-size: 1.2rem;
  color: var(--white);
  font-family: var(--font-menu);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 2rem;
}

.menu-item-title {
  color: #f2f2f2;
  font-size: 1rem;
  font-family: var(--font-menu);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-page {
  background: var(--white);
  min-height: calc(100vh - var(--nav-height));
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
}

.contact-page .map-wrap {
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.contact-page .map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  border-radius: 2px;
}

.contact-info {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.contact-info h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green);
}

.contact-info p { color: var(--mid); font-size: 0.95rem; }
.contact-info .company-name { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.contact-info .street-address { display: block; margin-bottom: 0.8rem; }
.contact-info .email { display: block; margin-bottom: 0.5rem; }
.contact-info .email a { color: var(--green); }
.contact-info .tel { display: block; font-size: 0.9rem; line-height: 1.8; }

.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--off-white);
  border-radius: 50%;
  color: var(--dark);
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}
.social-icons a:hover { background: var(--green); color: var(--white); opacity: 1; }
.social-icons .social-qdl {
  flex-direction: column;
  height: auto;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  width: auto;
  min-width: 40px;
  gap: 0;
}
.social-icons .qdl-label {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  /* Nav: hide desktop links, show hamburger */
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; }
  .nav-inner { justify-content: space-between; }
  .nav-logo img { height: 40px; }

  /* Cards: single column */
  .card-grid { grid-template-columns: 1fr; }
  .card-full { grid-column: auto; }

  /* Content: stack */
  .content-inner { grid-template-columns: 1fr; }
  .content-images { flex-direction: row; flex-wrap: wrap; }
  .content-images img { width: calc(50% - 0.5rem); }

  /* Menu items: 2 columns */
  .menu-items { grid-template-columns: repeat(2, 1fr); }

  /* Contact: 1 column */
  .contact-info { grid-template-columns: 1fr; gap: 2rem; }

  /* Hide sidebar social on mobile */
  .home-social { display: none; }

  /* Card grid page padding */
  .card-grid-page { padding-top: var(--nav-height); }
}

@media (max-width: 600px) {
  .menu-items { grid-template-columns: 1fr; }
  .content-images img { width: 100%; }
  .content-box { padding: 1.5rem; }
}
