/* ==========================================================================
   The Scarlet Ibis Caribbean Cuisine — About Us
   ========================================================================== */

:root {
  --cream:        #faf2e6;
  --cream-deep:   #f4e8d6;
  --red:          #9c2a1c;
  --red-dark:     #8a2417;
  --gold:         #c39a4e;
  --gold-soft:    #dcc9a4;
  --green:        #3d4a2c;
  --green-dark:   #364226;
  --ink:          #463c33;
  --ink-soft:     #5a4e44;

  --display: 'Bitter', Georgia, 'Times New Roman', serif;
  --sans:    'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
  --script:  'Dancing Script', 'Segoe Script', cursive;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* the decorative palms and ibis hang past the edges */
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--red);
}

/* Short rule with a gold bloom sitting on it, under a heading. */
.rule {
  display: block;
  position: relative;
  width: 168px;
  height: 22px;
  margin: 14px 0 26px;
}
.rule::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-soft);
}
.rule img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  transform: translate(-50%, -50%);
  background: var(--cream);
  padding: 0 6px;
  box-sizing: content-box;
}

/* Full-width section separator. */
.divider {
  position: relative;
  height: 26px;
  margin: 8px 0 4px;
}
.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-soft);
}
.divider img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  transform: translate(-50%, -50%);
  background: var(--cream);
  padding: 0 10px;
  box-sizing: content-box;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 3;
  background: var(--cream);
}

.palm-corner {
  position: absolute;
  top: -46px;
  right: -48px;
  width: min(400px, 36vw);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-height: 104px;
  padding: 14px 0;
}

/* The seal hangs below the header and overlaps the story photo. */
.brand {
  position: absolute;
  top: 8px;
  left: 0;
  width: clamp(112px, 13vw, 168px);
  filter: drop-shadow(0 6px 14px rgba(70, 45, 20, .18));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav ul a {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #2f2a25;
  transition: color .2s ease;
}

.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.main-nav ul a:hover { color: var(--red); }
.main-nav ul a:hover::after { transform: scaleX(1); }

.main-nav ul a.is-active { color: var(--red); }
.main-nav ul a.is-active::after { transform: scaleX(1); }

.btn-order {
  padding: 13px 26px;
  border-radius: 3px;
  background: var(--red-dark);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(138, 36, 23, .28);
  transition: background .2s ease, transform .2s ease;
}
.btn-order:hover { background: var(--red); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  padding: 10px 8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Our Story
   -------------------------------------------------------------------------- */

.story { padding-bottom: 46px; }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.story-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(70, 45, 20, .16);
}
.story-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center top;
}

.story-copy { padding-top: 6px; }

.story-copy p {
  margin: 0 0 15px;
  font-size: .875rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-soft);
}
.story-copy p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Our Mission
   -------------------------------------------------------------------------- */

.mission { padding: 40px 0 48px; }

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.mission-copy {
  position: relative;
  padding: 10px 0 10px 84px;
}

/* Line-art ibis tucked into the left margin, behind the copy. */
.ibis-watermark {
  position: absolute;
  left: -148px;
  bottom: -76px;
  width: clamp(200px, 19vw, 252px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}

.mission-copy .section-title,
.mission-copy .rule,
.mission-copy p { position: relative; z-index: 1; }

.mission-copy p {
  max-width: 34ch;
  margin: 0;
  font-size: .875rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-soft);
}

.mission-photo {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(70, 45, 20, .2);
}
.mission-photo img {
  width: 100%;
  height: clamp(260px, 30vw, 360px);
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Our Values
   -------------------------------------------------------------------------- */

.values { padding: 6px 0 64px; }

.values-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.values-head .line {
  flex: 1;
  height: 1px;
  background: var(--gold-soft);
}
.values-head img { width: 22px; }
.values-head .section-title { white-space: nowrap; }

.values-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.values-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 8px 14px;
  text-align: center;
  border-left: 1px solid var(--gold-soft);
}
.values-list li:first-child { border-left: 0; }

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  transition: transform .25s ease;
}
.values-list li:hover .value-icon { transform: translateY(-5px); }

.value-icon img {
  max-height: 62px;
  width: auto;
}
.value-icon svg {
  width: 66px;
  height: 48px;
  fill: var(--red);
}

.values-list p {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
  color: #2f2a25;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 74px 0 26px;
  background: var(--green);
  color: #e9e2d2;
  overflow: hidden;
}

/* Torn-paper lip where the cream page meets the green footer. */
.torn-edge {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 30px;
  background: var(--cream);
  -webkit-mask-image: var(--torn);
  mask-image: var(--torn);
  -webkit-mask-size: 1200px 30px;
  mask-size: 1200px 30px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='30' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v10l-24 5-31-7-27 9-33-4-25 8-30-6-28 4-34-9-26 7-29-3-31 8-27-6-33 5-25-8-30 6-28-4-34 9-26-7-29 3-31-8-27 6-33-5-25 8-30-6-28 4-34-9-26 7-29-3-31 8-27-6-33 5-25-8-30 6-28-4-34 9-26-7-29 3-31-8-27 6-33-5-25 8-30-6-28 4-34-9-26 7-29-3-31 8-27-6-33 5-25-8Z' fill='%23000'/%3E%3C/svg%3E");
}

.footer-palm {
  position: absolute;
  top: 26px;
  right: -66px;
  width: 300px;
  opacity: .2;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: start;
  padding-bottom: 26px;
}

.footer-contact {
  padding-right: clamp(28px, 5vw, 60px);
  border-right: 1px solid rgba(220, 201, 164, .3);
}

.footer-brand img {
  width: clamp(104px, 11vw, 138px);
}

.footer-col h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.footer-links li a {
  display: inline-block;
  padding: 2px 0;
  font-size: .8rem;
  font-weight: 300;
  color: #ded6c4;
  transition: color .2s ease, transform .2s ease;
}
.footer-links li a:hover { color: #fff; transform: translateX(3px); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  font-size: .8rem;
  font-weight: 300;
  color: #ded6c4;
}
.footer-contact svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: var(--gold);
}
.footer-contact a { transition: color .2s ease; }
.footer-contact a:hover { color: #fff; }

.tagline {
  position: relative;
  z-index: 1;
  margin: 6px 0 4px;
  font-family: var(--script);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  text-align: center;
  color: var(--gold);
}
.tagline em { font-style: normal; }
.tagline span {
  font-family: var(--sans);
  font-size: .85rem;
  color: #b03a2a;
  vertical-align: middle;
  margin: 0 8px;
}

.copyright {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: .72rem;
  font-weight: 300;
  text-align: center;
  color: var(--gold-soft);
  opacity: .8;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .main-nav ul a { font-size: .74rem; }
  .btn-order { padding: 11px 20px; font-size: .72rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .header-inner { min-height: 92px; }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    background: var(--cream-deep);
    box-shadow: 0 14px 24px rgba(70, 45, 20, .14);
    transition: max-height .3s ease, padding .3s ease;
  }
  .main-nav.is-open { max-height: 420px; padding: 14px 24px 22px; }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul a { padding: 11px 0; }
  .main-nav ul a::after { width: 34px; }

  .btn-order { margin-top: 12px; text-align: center; }

  .story-grid,
  .mission-grid { grid-template-columns: 1fr; }

  .story-grid { padding-top: 6px; }
  .story-photo img { min-height: 300px; }

  .mission-copy { padding-left: 0; }
  .mission-copy p { max-width: none; }
  .ibis-watermark { left: auto; right: -40px; bottom: -30px; opacity: .2; }

  .values-list { grid-template-columns: repeat(3, 1fr); gap: 34px 0; }
  .values-list li:nth-child(3n+1) { border-left: 0; }

  .values-head .line { display: none; }
  .values-head { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { padding-right: 0; border-right: 0; }
}

@media (max-width: 560px) {
  .wrap { width: min(1180px, 100% - 32px); }

  .brand { width: 96px; }
  .header-inner { justify-content: space-between; padding-left: 108px; }

  .palm-corner { top: -22px; right: -50px; width: 190px; opacity: .85; }

  .values-list { grid-template-columns: repeat(2, 1fr); }
  .values-list li { border-left: 0; }
  .values-list li:nth-child(3n+1) { border-left: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-contact li { font-size: .76rem; }
}
