@font-face {
  font-family: "Easa Rasmee Fala";
  src: url("../fonts/EasaRasmeeFala-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ocean: #102090;
  --ocean-deep: #0b1458;
  --lagoon: #3b4db3;
  --foam: #f6f7fb;
  --sand: #d7dbe8;
  --coral: #102090;
  --ink: #14161c;
  --muted: #5f6573;
  --line: rgba(16, 32, 144, 0.1);
  --card: #ffffff;
  --shadow: 0 18px 40px -28px rgba(16, 32, 144, 0.28);
  --radius: 22px;
  --header: 96px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --thaana: "Easa Rasmee Fala", "Easa Rasmee", "MV Boli", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ocean);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.lede,
.section-head p,
.craft p,
.order-band p,
.contact p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--coral);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ocean-deep);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.92rem;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ocean);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ocean);
  min-width: 0;
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
}

.brand-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  background: var(--ocean);
  box-shadow: 0 8px 18px rgba(16, 32, 144, 0.16);
}

.founder-avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #fff;
  background: #f6f7fb;
}

.founder-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ocean);
}

.nav a:hover {
  color: var(--ocean-deep);
}

.cart-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px 8px 10px;
  cursor: pointer;
  color: var(--ocean);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero {
  position: relative;
  background: var(--foam);
  color: var(--ink);
  overflow: hidden;
  padding: 72px 0 88px;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(16, 32, 144, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff, #f6f7fb);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .lede {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

.hero-actions .btn-ghost {
  border-color: var(--line);
  color: var(--ocean);
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.hero-card {
  justify-self: end;
  width: min(380px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 14px 14px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-card .photo-box {
  height: 240px;
  margin-bottom: 12px;
}

.hero-card .photo-box img {
  object-fit: cover;
}

.hero-card-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shop,
.craft,
.contact {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 280px auto;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: 100%;
  border: 0;
  padding: 14px;
  cursor: pointer;
}

.photo-box {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

.pv-rihaakuru {
  background: #eef1f8;
}

.pv-smoked {
  background: #e8ecf6;
}

.pv-grind {
  background: #f2f3f7;
}

.pv-masmirus {
  background: #eceef6;
}

.pv-bandaidhoo {
  background: #eef1f8;
}

.pv-theluli {
  background: #f2f3f7;
}

.pack {
  width: 118px;
  height: 168px;
  border-radius: 18px 18px 28px 28px;
  position: relative;
  z-index: 1;
  box-shadow: 12px 18px 24px rgba(0, 0, 0, 0.18);
}

.pack-rihaakuru {
  background: linear-gradient(#5c2e12, #2b1408);
  border: 4px solid rgba(232, 213, 176, 0.4);
}

.pack-smoked {
  width: 150px;
  height: 110px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(90deg, #5a3a28 0 12px, #3d261b 12px 24px);
  outline: 2px dashed rgba(255, 255, 255, 0.45);
  outline-offset: -8px;
}

.pack-grind {
  width: 140px;
  height: 150px;
  border-radius: 16px 16px 40px 40px;
  background: linear-gradient(#d7b17a, #9a6f3c);
}

.pack-masmirus {
  background: linear-gradient(#9a2b14, #4a1108);
  border: 4px solid rgba(255, 214, 170, 0.35);
}

.pack-label {
  position: absolute;
  inset: auto 12px 18px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ocean);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.product-body {
  padding: 22px 22px 20px;
}

.product-kicker {
  margin: 0 0 6px;
  font-family: var(--thaana);
  font-weight: 700;
  color: var(--ocean);
  font-size: 1.15rem;
  line-height: 1.6;
}

.product-body h3 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.product-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.size-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ocean);
}

.size-btn.is-on {
  background: var(--ocean);
  color: #fff;
  border-color: var(--ocean);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price {
  font-family: var(--display);
  font-size: 1.4rem;
}

.weight {
  color: var(--muted);
  font-size: 0.88rem;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ocean);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.craft {
  background: #eef1f8;
}

.craft-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.steps li {
  background: var(--card);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  counter-increment: step;
}

.steps li strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.order-band {
  background: var(--ocean);
  color: #fff;
  padding: 56px 0;
}

.order-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.order-band .btn-primary {
  background: #fff;
  color: var(--ocean);
}

.order-band .btn-primary:hover {
  background: var(--sand);
}

.order-band p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.contact-list span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form,
.checkout-form,
.success-card {
  display: grid;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
}

.form-note {
  margin: 0;
  color: var(--lagoon);
  font-weight: 600;
}

.site-footer {
  background: var(--ocean-deep);
  color: var(--sand);
  padding: 36px 0;
}

.footer-inner .logo-img {
  filter: brightness(0) invert(1);
}

.footer-inner .brand {
  color: var(--sand);
}

.footer-inner .founder-name {
  color: var(--sand);
}

.fine {
  font-size: 0.82rem;
  opacity: 0.75;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 88, 0.4);
  z-index: 30;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--foam);
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.drawer-head,
.cart-foot {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cart-foot {
  display: grid;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
}

.cart-lines {
  overflow: auto;
  padding: 0 20px 20px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.cart-empty {
  color: var(--muted);
  padding: 24px 8px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.cart-line-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.remove-btn {
  border: 0;
  background: none;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--foam);
  cursor: pointer;
}

.modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  width: min(520px, calc(100% - 32px));
  background: var(--foam);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(7, 40, 50, 0.5);
}

.product-detail {
  padding: 8px 8px 22px;
}

.product-detail-visual {
  height: 240px;
  border-radius: 18px;
  display: grid;
  padding: 12px;
  margin-bottom: 8px;
}

.product-detail-copy {
  padding: 8px 16px 0;
}

.product-detail-copy p {
  color: var(--muted);
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.success-card {
  text-align: center;
  padding: 32px 24px;
}

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

  .logo-img {
    height: 46px;
  }

  .avatar-wrap {
    width: 56px;
    height: 56px;
  }

  .hero-grid,
  .craft-grid,
  .contact-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .order-inner {
    justify-self: start;
  }

  .order-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 48px 0 64px;
  }
}
