
:root {
  --verde: #0b5960;
  --verde-escuro: #093f45;
  --texto: #253334;
  --cinzento: #687272;
  --branco: #ffffff;
  --fundo: #faf9f6;
  --linha: #e5e8e5;
  --largura: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  background: var(--branco);
  color: var(--texto);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--largura), calc(100% - 80px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--linha);
}

.header-container {
  width: min(1370px, calc(100% - 90px));
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 35px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 160px;
  height: 80px;
  object-fit: contain;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.navigation a {
  position: relative;
  padding: 10px 0;
  color: #404a4b;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.navigation a:hover,
.navigation a.active {
  color: var(--verde);
}

.navigation a.active {
  font-weight: 700;
}

.navigation a.active::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--verde);
  bottom: 2px;
  left: 0;
  right: 0;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 13px 22px;
  background: var(--verde);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-button:hover {
  background: var(--verde-escuro);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--linha);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--verde);
  margin: 5px auto;
}

.page-heading {
  padding: 65px 0 55px;
  background: var(--fundo);
  border-bottom: 1px solid var(--linha);
}

.page-heading h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-heading p {
  font-size: 15px;
  color: var(--cinzento);
  line-height: 1.8;
}

.booking-section {
  padding: 85px 0 110px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: 75px;
  align-items: start;
}

.booking-content {
  min-width: 0;
}

.booking-heading {
  margin-bottom: 32px;
}

.booking-heading h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 14px;
}

.booking-heading p {
  max-width: 540px;
  color: var(--cinzento);
  font-size: 14px;
  line-height: 1.8;
}

.booking-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #344244;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--texto);
  border: 1px solid #d8dedd;
  border-radius: 3px;
  outline: none;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s;
}

.form-field input,
.form-field select {
  height: 51px;
}

.form-field textarea {
  min-height: 125px;
  line-height: 1.6;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #969e9c;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--verde);
}

.form-field select {
  cursor: pointer;
}

.required-text {
  margin-top: 18px;
  color: #808988;
  font-size: 12px;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 26px;
  padding: 14px 30px;
  background: var(--verde);
  color: #ffffff;
  border: 1px solid var(--verde);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.submit-button:hover {
  background: var(--verde-escuro);
}

.form-feedback {
  margin-top: 18px;
  color: var(--verde);
  font-size: 13px;
  line-height: 1.7;
}

.form-feedback:empty {
  display: none;
}

.form-note {
  margin-top: 20px;
  color: #818987;
  font-size: 12px;
  line-height: 1.8;
}

.booking-sidebar {
  min-width: 0;
}

.restaurant-image {
  width: 100%;
  height: 370px;
  object-fit: cover;
  object-position: center;
}

.restaurant-info {
  padding: 27px 0;
}

.restaurant-info h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  margin-bottom: 14px;
}

.restaurant-info p {
  color: var(--cinzento);
  font-size: 14px;
  line-height: 1.9;
}

.restaurant-info a {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 5px;
  color: var(--verde);
  border-bottom: 1px solid var(--verde);
  font-size: 13px;
  font-weight: 600;
}

.restaurant-info a:hover {
  color: var(--verde-escuro);
}

.footer {
  background: #103e43;
  color: #ffffff;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 65px;
  padding: 65px 0 55px;
}

.footer-about img {
  width: 145px;
  height: 145px;
  object-fit: contain;
  background: #ffffff;
}

.footer-about p {
  margin-top: 17px;
  color: #d0dfdd;
  font-size: 13px;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-links h3 {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.footer-links a {
  color: #cfdddb;
  font-size: 13px;
  line-height: 1.7;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: #c4d6d3;
  font-size: 11px;
}

.footer-bottom a {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 1050px) {
  .booking-layout {
    gap: 40px;
  }

  .restaurant-image {
    height: 310px;
  }

  .header-container {
    width: calc(100% - 60px);
    gap: 20px;
  }

  .navigation {
    gap: 20px;
  }

  .brand img {
    width: 135px;
  }
}

@media (max-width: 940px) {
  .header-container {
    height: 85px;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 15px 30px 25px;
    background: #ffffff;
    border-top: 1px solid var(--linha);
    box-shadow: 0 15px 25px rgba(0,0,0,0.08);
  }

  .navigation.open {
    display: flex;
  }

  .navigation a {
    padding: 15px 0;
    border-bottom: 1px solid var(--linha);
  }

  .navigation a.active::after {
    display: none;
  }

  .header-button {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 800px) {
  .booking-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .booking-section {
    padding: 65px 0 85px;
  }

  .restaurant-image {
    height: 350px;
  }

  .booking-sidebar {
    padding-top: 35px;
    border-top: 1px solid var(--linha);
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 40px);
  }

  .header-container {
    width: calc(100% - 35px);
    height: 77px;
  }

  .brand img {
    width: 115px;
    height: 65px;
  }

  .header-button {
    display: none;
  }

  .navigation {
    padding: 12px 25px 25px;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .page-heading {
    padding: 50px 0 45px;
  }

  .page-heading h1 {
    font-size: 44px;
  }

  .page-heading p {
    font-size: 14px;
  }

  .booking-section {
    padding: 55px 0 75px;
  }

  .booking-heading h2 {
    font-size: 32px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .form-field.full-width {
    grid-column: auto;
  }

  .submit-button {
    width: 100%;
  }

  .restaurant-image {
    height: 280px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 55px 0 45px;
  } 

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#reservation-form {
  display: none;
}

.booking-heading .submit-button {
  text-decoration: none;
}