:root {
  --page-bg: #a88770;
  --surface: #f3c49a;
  --surface-deep: #e4ad76;
  --cream: #fffdf8;
  --ink: #17120e;
  --muted: #5f4d3e;
  --olive: #4f6441;
  --olive-dark: #38472d;
  --rose: #c8546d;
  --blue: #2f77a8;
  --shadow: 0 28px 70px rgba(37, 26, 19, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(79, 100, 65, .24), transparent 34%),
    linear-gradient(315deg, rgba(47, 119, 168, .12), transparent 42%),
    var(--page-bg);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.page-shell {
  width: min(100%, 780px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px);
  display: grid;
  place-items: stretch;
}

.profile-card {
  width: 100%;
  min-height: calc(100svh - clamp(28px, 6vw, 56px));
  padding: clamp(26px, 6vw, 52px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 22%),
    var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: auto -16% -110px auto;
  width: min(320px, 64vw);
  aspect-ratio: 1;
  border: 2px solid rgba(79, 100, 65, .22);
  border-radius: 999px;
  pointer-events: none;
}

.top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
  position: relative;
  z-index: 1;
}

.icon-button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, .88);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(56, 71, 45, .12);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.icon-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: var(--cream);
  box-shadow: 0 16px 32px rgba(56, 71, 45, .18);
}

.icon-button:focus-visible,
.link-card:focus-visible,
.social-links a:focus-visible {
  outline: 3px solid rgba(47, 119, 168, .6);
  outline-offset: 4px;
}

.brand-area {
  width: min(100%, 560px);
  margin: clamp(40px, 8vw, 58px) auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-frame {
  width: clamp(112px, 24vw, 134px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  padding: 11px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 16px 34px rgba(83, 68, 56, .16);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 800;
}

.intro,
.address {
  margin: 12px auto 0;
  line-height: 1.85;
  font-size: clamp(15px, 3.3vw, 18px);
}

.intro {
  max-width: 520px;
  color: var(--ink);
}

.address {
  color: var(--muted);
  font-weight: 700;
}

.social-links {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  direction: ltr;
}

.social-links a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 999px;
  transition: transform .2s ease, color .2s ease, background-color .2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: var(--olive-dark);
  background: rgba(255, 253, 248, .4);
}

.social-links svg {
  width: 33px;
  height: 33px;
}

.social-links rect,
.social-links circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.social-links path {
  fill: currentColor;
}

.quick-links {
  width: min(100%, 660px);
  margin: clamp(44px, 8vw, 62px) auto 0;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.link-card {
  min-height: 82px;
  padding: 18px clamp(18px, 4vw, 28px);
  border: 2px solid var(--olive);
  border-radius: 999px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 6px 7px 0 var(--olive);
  direction: ltr;
  display: grid;
  grid-template-columns: 44px 1fr 32px;
  align-items: center;
  gap: 12px;
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.link-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 4px 0 var(--olive-dark);
  border-color: var(--olive-dark);
}

.link-card > span:nth-child(2) {
  direction: rtl;
  text-align: center;
}

.link-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.link-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-icon.smile {
  color: #ee9a2d;
}

.link-icon.pin {
  color: var(--rose);
}

.link-icon.whatsapp {
  color: var(--blue);
}

.more-icon {
  color: rgba(23, 18, 14, .52);
  justify-self: end;
}

.more-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.delivery {
  width: min(100%, 580px);
  margin: clamp(34px, 7vw, 48px) auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.delivery p {
  margin: 0;
  font-size: clamp(16px, 3.8vw, 20px);
  line-height: 1.8;
  font-weight: 800;
}

.delivery-apps {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  font-size: clamp(14px, 3.2vw, 17px);
  font-weight: 800;
}

.delivery-apps span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, .36);
  color: #241910;
  border: 1px solid rgba(79, 100, 65, .26);
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 24px;
  transform: translate(50%, 18px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--olive-dark);
  color: var(--cream);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(23, 18, 14, .28);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0;
  }

  .profile-card {
    min-height: 100svh;
    border-radius: 0;
    padding: 34px 24px 42px;
  }

  .top-actions {
    padding: 0 2px;
  }

  .icon-button {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .brand-area {
    margin-top: 42px;
  }

  .quick-links {
    gap: 16px;
  }

  .link-card {
    min-height: 78px;
    grid-template-columns: 38px 1fr 28px;
    box-shadow: 5px 6px 0 var(--olive);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
