/* ============================================
   Bean Feasa Global — Design System
   A luxury Irish heritage brand.
   Deep moss, pearl, terracotta. Linen, stone, timelessness.
   ============================================ */

:root {
  /* primary palette */
  --pearl: #f0ede4;
  --deep-moss: #353b28;
  --terracotta: #974315;

  /* supporting palette */
  --sage: #8d957e;
  --beige-rose: #e3d6c5;
  --blue-grey: #788990;
  --warm-charcoal: #35322e;

  /* semantic aliases used throughout the markup */
  --cream: var(--pearl);
  --sage-tint: var(--beige-rose);
  --sage-deep: var(--deep-moss);
  --gold: var(--terracotta);
  --gold-deep: var(--terracotta);
  --blush: var(--beige-rose);
  --blush-deep: var(--terracotta);
  --stone: var(--blue-grey);
  --ink: var(--warm-charcoal);
  --mist: rgba(46, 67, 58, 0.07);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--pearl);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.208 0 0 0 0 0.192 0 0 0 0 0.180 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  color: var(--warm-charcoal);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin: 0 0 0.55em;
  color: var(--deep-moss);
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }

p { margin: 0 0 1.3em; }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 108px 0;
}

@media (max-width: 860px) {
  section {
    padding: 56px 0;
  }
}

.section-dark {
  background: var(--deep-moss);
  color: var(--pearl);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--beige-rose);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-dark .eyebrow {
  color: var(--beige-rose);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--terracotta);
  color: var(--pearl);
  box-shadow: 0 8px 22px rgba(151, 67, 21, 0.22);
}

.btn-gold:hover {
  background: var(--deep-moss);
  color: var(--pearl);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-outline:hover {
  background: var(--mist);
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pearl);
  border-bottom: 1px solid rgba(46, 67, 58, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--deep-moss);
}

.nav-logo-icon {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  background: var(--beige-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.nav-logo-icon img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--deep-moss);
  letter-spacing: 0.02em;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-moss);
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--deep-moss);
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--deep-moss);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
}

.nav-cta {
  background: var(--terracotta);
  color: var(--pearl) !important;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--deep-moss);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--deep-moss);
  font-size: 1.6rem;
  cursor: pointer;
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pearl);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 18px;
    display: none;
    border-bottom: 1px solid rgba(46, 67, 58, 0.14);
  }

  .nav-links.open {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--pearl);
  color: var(--warm-charcoal);
  padding: 130px 0 110px;
  text-align: center;
  overflow: hidden;
}

@media (max-width: 860px) {
  .hero {
    padding: 50px 0 24px !important;
  }
}

.hero-motif {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  pointer-events: none;
}

.hero-sprig {
  position: absolute;
  opacity: 0.09;
  pointer-events: none;
}

.hero-sprig.left {
  left: 4%;
  bottom: -40px;
  width: 140px;
  transform: rotate(-8deg);
}

.hero-sprig.right {
  right: 5%;
  top: 10%;
  width: 110px;
  transform: rotate(165deg);
}

.hero-vista {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-vista::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(120deg, rgba(141, 149, 126, 0.28), rgba(120, 137, 144, 0.22) 55%, rgba(227, 214, 197, 0.15));
  -webkit-mask-image: linear-gradient(to left, black, transparent 85%);
  mask-image: linear-gradient(to left, black, transparent 85%);
}

.hero-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero .eyebrow {
  color: var(--terracotta);
}

.hero h1 {
  color: var(--deep-moss);
}

.hero p.lede {
  font-size: 1.2rem;
  color: var(--warm-charcoal);
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Hero split layout (Home) ---------- */
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.hero-grid-balanced {
  grid-template-columns: 0.55fr 1.45fr;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-copy {
  max-width: none;
}

.hero-copy h1 {
  white-space: nowrap;
}

.hero-grid .hero-copy .lede,
.hero-grid .hero-copy > p {
  max-width: 690px;
  margin-left: 0;
}

.hero-grid .hero-copy .lede {
  margin-top: 17px !important;
}

@media (max-width: 900px) {
  .hero-grid .hero-copy .lede,
  .hero-grid .hero-copy > p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .hero-copy h1 {
    white-space: normal;
  }
}

.hero-grid .hero-actions {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .hero-copy {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-grid .hero-actions {
    justify-content: center;
  }
}

.divider {
  width: 170px;
  margin: 6px 0 24px;
  opacity: 0.9;
}

.divider.center {
  margin-left: auto;
  margin-right: auto;
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-bottom: 14px;
}

.hero-title-divider {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-photo {
  position: relative;
  height: 480px;
  overflow: visible;
}

.hero-photo-img {
  position: absolute;
  inset: 0;
  left: -140px;
  right: -24px;
  background: linear-gradient(150deg, #b7c3ae 0%, #8a9a8f 32%, #cf9f6f 68%, #e9c9a0 100%);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
  mask-image: linear-gradient(to left, black 40%, transparent 100%);
}

.hero-fern-corner {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 130px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}

.hero-photo-tall {
  height: 760px;
  margin-top: -170px;
}

.hero-photo-img.torn-edge {
  left: 0;
  right: 0;
  background: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%);
  mask-image: linear-gradient(to right, transparent 0%, black 14%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@media (max-width: 900px) {
  .hero-photo-tall {
    height: 380px;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .hero-photo {
    height: 320px;
    margin-top: 40px;
  }
}

/* ---------- Roots section ---------- */
.roots-section {
  position: relative;
  background: var(--pearl);
  padding: 100px 0 220px;
  overflow: hidden;
}

.roots-copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.roots-copy h2 {
  margin: 14px 0 22px;
}

.roots-copy p {
  color: var(--warm-charcoal);
  margin: 0 0 16px;
}

.roots-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.roots-landscape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 700px) {
  .roots-section {
    padding: 60px 0 140px;
  }
}

/* ---------- Our Why layout ---------- */
.why-layout {
  position: relative;
  background-color: var(--pearl);
  isolation: isolate;
}

.why-layout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--beige-rose);
  opacity: 0.55;
}

.why-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='p1'><feTurbulence type='fractalNoise' baseFrequency='0.01 0.7' numOctaves='4' seed='7' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.35 0 0 0 0 0.32 0 0 0 0 0.28 0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p1)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p2'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.35 0 0 0 0 0.32 0 0 0 0 0.28 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p2)'/></svg>");
}

.why-layout > * {
  position: relative;
  z-index: 1;
}

.why-copy {
  position: relative;
  z-index: 2;
}

.why-fern {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.why-map {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .why-fern,
  .why-map {
    display: none;
  }
}

/* ---------- Sage section ---------- */
.section-sage {
  background: #c9ccc0;
}

.quiz-icon {
  width: 50px;
  margin: 0 auto 14px;
  display: block;
}

/* ---------- Closing quote / badge section ---------- */
.closing-section {
  position: relative;
  overflow: hidden;
}

.closing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 48px;
  align-items: center;
}

.closing-badge {
  width: 180px;
  justify-self: center;
}

.closing-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  color: var(--pearl);
  text-align: center;
  line-height: 1.3;
  margin: 0;
}

.closing-divider {
  width: 130px;
  margin: 22px auto;
}

.closing-attribution {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--beige-rose);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .closing-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* ---------- Section dividers ---------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.section-divider img {
  width: 46px;
  opacity: 0.55;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border: 1px solid rgba(46, 67, 58, 0.12);
  border-radius: 14px;
  padding: 38px 32px;
  box-shadow: 0 14px 34px rgba(46, 67, 58, 0.06);
}

.section-dark .card {
  background: rgba(240, 237, 228, 0.06);
  border-color: rgba(227, 214, 197, 0.25);
  color: var(--pearl);
}

.card .pillar-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--terracotta);
  margin-bottom: 8px;
  display: block;
}

/* ---------- Photo / media blocks ---------- */
.photo-frame {
  border-radius: 14px;
  overflow: hidden;
  background: var(--beige-rose);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-grey);
  text-align: center;
  border: 1px solid rgba(46, 67, 58, 0.18);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame.placeholder {
  padding: 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

.photo-frame.placeholder .ph-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Quote / signature phrase blocks ---------- */
.quote-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--deep-moss);
}

.section-dark .quote-block p {
  color: var(--beige-rose);
}

/* ---------- Offer / pricing card ---------- */
.offer-card {
  background: #ffffff;
  color: var(--warm-charcoal);
  border-radius: 18px;
  padding: 52px 44px;
  text-align: center;
  border: 1px solid rgba(46, 67, 58, 0.14);
  box-shadow: 0 20px 46px rgba(46, 67, 58, 0.08);
}

.offer-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 36px 0 40px;
}

.offer-feature {
  padding: 0 24px;
  border-left: 1px solid rgba(46, 67, 58, 0.15);
}

.offer-feature:first-child {
  border-left: none;
}

.offer-feature img {
  width: 90px;
  margin: 0 auto 18px;
}

.offer-feature h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 8px;
}

.offer-feature p {
  font-size: 0.92rem;
  color: var(--warm-charcoal);
  margin: 0;
}

@media (max-width: 700px) {
  .offer-features {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .offer-feature {
    border-left: none;
    border-top: 1px solid rgba(46, 67, 58, 0.15);
    padding: 24px 12px 0;
  }

  .offer-feature:first-child {
    border-top: none;
    padding-top: 0;
  }
}

.offer-price {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--deep-moss);
  margin: 10px 0;
}

.offer-price span {
  font-size: 1.1rem;
  color: var(--blue-grey);
  font-family: var(--font-body);
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.offer-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid rgba(46, 67, 58, 0.1);
}

.offer-list li::before {
  content: "☘";
  position: absolute;
  left: 0;
  color: var(--terracotta);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-moss);
  color: var(--pearl);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--beige-rose);
  font-size: 1.1rem;
}

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--beige-rose);
}

.footer-bottom {
  background: var(--pearl);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--warm-charcoal);
  opacity: 0.75;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w-prose { max-width: 620px; margin-left: auto; margin-right: auto; }

.tag {
  display: inline-block;
  background: var(--beige-rose);
  color: var(--terracotta);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 6px 6px 0;
}

.section-dark .tag {
  background: rgba(227, 214, 197, 0.2);
  color: var(--beige-rose);
}

/* ---------- Quiz specific ---------- */
.quiz-wrap {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--warm-charcoal);
  border-radius: 22px;
  padding: 54px 48px;
  border: 1px solid rgba(46, 67, 58, 0.12);
  box-shadow: 0 26px 60px rgba(46, 67, 58, 0.1);
}

.quiz-wrap::before,
.quiz-wrap::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  background-image: url("../images/fern-floral.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 0;
}

.quiz-wrap::before {
  bottom: -30px;
  left: -40px;
  transform: rotate(-15deg) scaleY(-1);
}

.quiz-wrap::after {
  top: -34px;
  right: -34px;
  transform: rotate(20deg);
}

.quiz-wrap > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .quiz-wrap {
    padding: 36px 26px;
  }
}

.quiz-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--beige-rose);
  overflow: hidden;
  margin-bottom: 30px;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.quiz-options {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.quiz-option {
  text-align: left;
  background: var(--pearl);
  border: 1px solid rgba(46, 67, 58, 0.16);
  color: var(--warm-charcoal);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quiz-option:hover {
  background: var(--beige-rose);
  border-color: var(--terracotta);
}

.quiz-result-title {
  font-family: var(--font-display);
  color: var(--deep-moss);
  font-size: 2.4rem;
  margin-bottom: 4px;
}

.quiz-restart {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--blue-grey);
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-body);
}

.quiz-start-icon {
  text-align: center;
  margin-bottom: 10px;
}

.quiz-start-icon img {
  width: 54px;
  margin: 0 auto;
}
