/* ===================================
   TABLE OF CONTENTS
   1) Imports
   2) Reset & Base
   3) Typography
   4) Hero (background, overlay, inner, flakes)
   5) Hero Overlay Nav (structure + animation)
   6) Layout Utilities (60/40 rows, map/text)
   7) Section Two
   8) Footer
   9) Tea List Page (scoped)
   =================================== */

/* 1) IMPORTS */

/* 2) RESET & BASE */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

body {
  margin: 0;
  line-height: 1.65;
  background: #242943;
  -webkit-text-size-adjust: none;
  -ms-overflow-style: scrollbar;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 3) TYPOGRAPHY */
body,
input,
select,
textarea {
  color: #ffffff;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-size: 17pt;
  font-weight: 300;
  letter-spacing: 0.025em;
}
@media (max-width: 1680px) {
  body {
    font-size: 14pt;
  }
}
@media (max-width: 1280px) {
  body {
    font-size: 12pt;
  }
}
@media (max-width: 360px) {
  body {
    font-size: 11pt;
  }
}

h2 {
  font-size: 2.1em;
  font-weight: 600;
  margin-bottom: 0.5em;
  line-height: 1.3em;
}

.col-right,
.col-right h2,
.col-right p {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.col-right h2 {
  font-family: "Merienda One", cursive;
  letter-spacing: 0.02em;
  text-rendering: geometricPrecision;
}

/* 4) HERO (background, overlay, inner, flakes) */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;

  /* Base fallback for older browsers */
  background: url("assets/images/tea-fields-fallback.jpg") no-repeat center
    center fixed;
  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Default overlay (works even without gradient support) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* static dark overlay fallback */
  z-index: 1;
}

/* Modern browsers get the gradient overlay instead */
@supports (
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7))
) {
  .hero {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.7) 100%
      ),
      url("assets/images/tea-garden-unsplash.jpg") no-repeat center center fixed;
    background-size: cover;
  }

  .hero::before {
    background: none; /* remove solid overlay since gradient handles it */
  }
}

/* Disable fixed background on mobile to prevent scroll lag */
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
  }
}
.top-layer {
  position: relative;
  z-index: 10;
  text-align: center;
}
.hero-logo {
  width: 350px;
  display: block;
  margin: 0 auto;
}
.hero-text {
  margin-top: 20px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5.3px;
  line-height: 1.2;
}

/* flakes (positions preserved; sources left as-is) */
.hero .flake {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  will-change: transform;
  transform-origin: 50% 50%;
  z-index: 4;
  pointer-events: none;
}
#flake1 {
  width: 240px;
  height: 240px;
  left: 2%;
  top: 40%;
  background-image: url(https://un-po.co.in/i/1.png);
}
#flake2 {
  width: 170px;
  height: 170px;
  left: 70%;
  top: 35%;
  background-image: url(https://un-po.co.in/i/2.png);
}
#flake3 {
  width: 50px;
  height: 51px;
  left: 55%;
  top: 15%;
  background-image: url(https://un-po.co.in/i/3.png);
}
#flake4 {
  width: 120px;
  height: 120px;
  left: 20%;
  top: 25%;
  background-image: url(https://un-po.co.in/i/4.png);
}
#flake5 {
  width: 100px;
  height: 100px;
  left: 35%;
  top: 30%;
  background-image: url(https://un-po.co.in/i/5.png);
}

@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
  }
}

/* 5) HERO OVERLAY NAV (structure + animation) */
.hero {
  position: relative;
}

.hero-nav {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-nav a:link,
.hero-nav a:visited {
  color: #fff;
  text-decoration: none;
}

/* logo block with frame */
.hero-nav .nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 70px;
  cursor: pointer;
}
.hero-nav .nav-logo-frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
  pointer-events: none;
}
.hero-nav .nav-logo img {
  width: 90px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* outline buttons */
.hero-nav .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 27px 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.hero-nav .nav-btn:hover {
  border-color: #fff;
  color: #fff;
}
.hero-nav .nav-logo:hover .nav-logo-frame {
  border-color: #fff;
}

/* GPU-friendly entrance (progressive enhancement) */
:root {
  --eio: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Default: visible even if JS is off */
.hero-nav .nav-item {
  opacity: 1;
  transform: none;
}

/* When JS adds .vm-mounted, play an entrance animation */
@keyframes vm-fade-slide {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.vm-mounted .hero-nav .nav-item {
  animation: vm-fade-slide 600ms var(--eio) both;
}

/* Stagger the items */
.vm-mounted .hero-nav .nav-item:nth-child(1) {
  animation-delay: 120ms;
}
.vm-mounted .hero-nav .nav-item:nth-child(2) {
  animation-delay: 210ms;
}
.vm-mounted .hero-nav .nav-item:nth-child(3) {
  animation-delay: 300ms;
}
.vm-mounted .hero-nav .nav-item:nth-child(4) {
  animation-delay: 390ms;
}

@media (prefers-reduced-motion: reduce) {
  .vm-mounted .hero-nav .nav-item {
    animation: none !important;
  }
}

/* 6) LAYOUT UTILITIES (60/40 rows, map/text) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  align-items: stretch;
}
.col-left {
  flex: 0 0 60%;
  max-width: 60%;
  margin: 0;
  background: url("assets/images/loose-leaf-velvet-monkey-1.jpg") center center /
    cover no-repeat;
}

#map {
  background: url("assets/images/map-fallback.jpg") center center / cover
    no-repeat !important;
}

.col-left img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.col-right {
  flex: 0 0 40%;
  max-width: 40%;
  background-color: #326555;
  color: #fff;
  padding: 100px 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.col-right p {
  font-family: "Alice", serif;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 1.2rem 0;
}
.col-right p:last-child {
  margin-bottom: 0;
}

.map-col {
  flex: 0 0 40%;
  max-width: 40%;
  min-height: 400px;
}
.text-col {
  flex: 0 0 60%;
  max-width: 60%;
  background: #fff;
  color: #7f7f7f;
  padding: 2rem;
  font-family: "Alice", serif;
  font-size: 18px;
  line-height: 1.6;
}
#map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.text-col p {
  margin: 0 0 1.5rem 0;
}
.text-col p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .col-left,
  .col-right,
  .map-col,
  .text-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .col-left {
    min-height: 300px;
  }
  .col-right {
    padding: 2rem;
  }
  #map {
    min-height: 300px;
  }
}

/* 7) SECTION TWO */
#two {
  position: relative;
  background: url("assets/images/loose-leaf.jpg") center center / cover
    no-repeat;
  padding: 4em 0 2em 0;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  z-index: 0;
}
#two::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}
#two .inner {
  margin: 0 auto;
  max-width: 65em;
  width: calc(100% - 6em);
  padding: 0;
}
#two header.major {
  width: max-content;
  margin-bottom: 2em;
}
#two header.major > :first-child:after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  margin: 0.325em 0 0.5em 0;
  background: #fff;
}
#two h2 {
  font-size: 1.75em;
  font-weight: 600;
  line-height: 1.65;
  margin: 0 0 1em 0;
  color: #fff;
}
#two p {
  color: #fff;
  line-height: 1.65;
  margin: 0 0 2em 0;
  font-weight: 300;
  letter-spacing: 0.025em;
  font-size: 15pt;
}

#two ul.actions {
  list-style: none;
  margin: 2em 0 0 0;
  padding: 0;
}
#two ul.actions li {
  display: inline-block;
  margin: 0 0 0 1em;
}
#two ul.actions li:first-child {
  margin-left: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 27px 30px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  color: #fff;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
  text-decoration: none;
  box-shadow: none;
  position: relative;
}
.button:hover {
  border-color: #fff;
  color: #fff;
}
.button:active {
  background: rgba(155, 241, 255, 0.1);
}

.button.next {
  padding-right: 4.5em;
  position: relative;
}
.button.next:before,
.button.next:after {
  background-position: center right;
  background-repeat: no-repeat;
  background-size: 36px 24px;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  right: 1.5em;
  top: 0;
  width: 36px;
}
.button.next:before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='24'%3E%3Cstyle%3Eline%7Bstroke:%23ffffff;stroke-width:2px;%7D%3C/style%3E%3Cline x1='0' y1='12' x2='34' y2='12'/%3E%3Cline x1='25' y1='4' x2='34' y2='12.5'/%3E%3Cline x1='25' y1='20' x2='34' y2='11.5'/%3E%3C/svg%3E");
}
.button.next:after {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='24'%3E%3Cstyle%3Eline%7Bstroke:%23ffffff;stroke-width:2px;%7D%3C/style%3E%3Cline x1='0' y1='12' x2='34' y2='12'/%3E%3Cline x1='25' y1='4' x2='34' y2='12.5'/%3E%3Cline x1='25' y1='20' x2='34' y2='11.5'/%3E%3C/svg%3E");
}
.button.next:hover:after {
  opacity: 1;
}

/* 8) FOOTER */
#footer {
  background: #0c0e0c;
  padding: 0.75em 0;
  text-align: center;
}
#footer .inner {
  max-width: 65em;
  margin: 0 auto;
}

#footer .copyright {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: #f2f2f2;
}

/* default horizontal spacing */
#footer .copyright li + li {
  margin-left: 2.5rem;
}

/* tighten space around the leaf icon (≈5px each side) */
#footer .copyright li + li.leaf-icon {
  margin-left: 15px;
}
#footer .copyright .leaf-icon + li {
  margin-left: 15px;
}

#footer .copyright li {
  display: flex;
  align-items: center;
}

#footer .leaf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
#footer .leaf-icon img {
  width: 28px;
  height: auto;
  display: block;
  transform: translateY(1px);
  filter: brightness(0) saturate(100%) invert(90%) sepia(10%) saturate(350%)
    hue-rotate(80deg) brightness(95%);
}

#footer a {
  color: #f2f2f2;
  text-decoration: none;
  border-bottom: 1px dotted #777;
  transition: color 0.3s ease, border-color 0.3s ease;
}
#footer a:hover {
  color: #fff;
  border-bottom-color: transparent;
}

@media (max-width: 600px) {
  #footer .copyright {
    flex-direction: column;
    font-size: 0.85rem;
  }
  #footer .copyright li {
    margin: 0;
  }
  #footer .copyright li + li {
    margin-top: 1rem;
  }
  #footer .leaf-icon img {
    width: 22px;
  }
}

/* 9) TEA LIST PAGE (scoped) */
/* Tea page nav overrides */
.tea-page .hero-nav {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
}
.tea-page .hero-nav a {
  color: #222;
}
.tea-page .nav-logo-frame,
.tea-page .nav-btn {
  border-color: rgba(0, 0, 0, 0.2);
}
.tea-page .nav-btn:hover {
  border-color: #000;
  color: #000;
}
.tea-page .nav-logo:hover .nav-logo-frame {
  border-color: #000;
}

.tea-page {
  --tea-bg: #ffffff;
  --tea-text: #7f7f7f;
  --tea-name: #333333;
  font-family: "Alice", serif;
  font-size: 18px;
  line-height: 1.9em;
  color: var(--tea-text);
  background: var(--tea-bg);
}
.tea-page p,
.tea-page address,
.tea-page li,
.tea-page dd {
  color: var(--tea-text);
}

.page-hero {
  height: 300px;
  background: url("assets/images/tea-leaves-hero.jpg") center center / cover
    no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-hero h1 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.4em;
  margin: 0;
}

.tea-page .section-header {
  position: relative;
  height: 235px;
  overflow: hidden;
}
.tea-page .section-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tea-page .section-header h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 400;
  text-align: center;
  color: #ffffff;
  line-height: 1.4em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
  z-index: 1;
}

.tea-page .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--tea-bg);
}
.tea-page .tea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.tea-page .tea-grid dl {
  margin: 0;
  padding: 0 6rem;
}
.tea-page .tea-grid dt {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--tea-name);
  margin-bottom: 0.2em;
}
.tea-page .tea-grid dd {
  margin: 0 0 1.2em 0;
  font-family: "Alice", serif;
  font-size: 16px;
  line-height: 1.9em;
  color: var(--tea-text);
}

@media (max-width: 768px) {
  .tea-page .tea-grid {
    grid-template-columns: 1fr;
  }
  .tea-page .tea-grid dl {
    padding: 0 1rem;
  }
}
