/*
Theme Name: Mamoonas
Theme URI: https://example.com/
Author: Mamoonas
Author URI: https://example.com/
Description: A single-page henna advertisement theme with animated sections, contact details, and uploadable showcase photos.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mamoonas
*/

:root {
  --ink: #2a141b;
  --muted: #745b63;
  --paper: #fff7f0;
  --surface: #ffffff;
  --rose: #8f2f4d;
  --rose-dark: #642034;
  --gold: #c38a2d;
  --sage: #547665;
  --line: #ead6ca;
  --soft: #f7e8de;
  --shadow: 0 24px 70px rgba(83, 38, 50, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(195, 138, 45, 0.14), transparent 32rem),
    linear-gradient(180deg, #fff9f3 0%, var(--paper) 38%, #fff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 16px 16px, rgba(143, 47, 77, 0.1) 1px, transparent 1.5px),
    radial-gradient(circle at 48px 48px, rgba(195, 138, 45, 0.12) 1px, transparent 1.5px);
  background-size: 64px 64px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(234, 214, 202, 0.82);
  background: rgba(255, 247, 240, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: block;
  width: min(245px, 62vw);
  text-decoration: none;
}

.brand img {
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(100, 32, 52, 0.14));
}

.site-clock {
  position: absolute;
  left: 0;
  display: grid;
  gap: 1px;
  justify-items: start;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: left;
}

.site-clock span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-clock time {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.nav-auth {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.auth-control {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(143, 47, 77, 0.16);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.google-sign-in span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #4285f4;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(42, 20, 27, 0.12);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.user-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu a {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-notice {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 0;
  border: 1px solid rgba(143, 47, 77, 0.26);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose-dark);
  font-weight: 800;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--rose);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(143, 47, 77, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button::after {
  position: absolute;
  inset: -40% auto -40% -60%;
  z-index: -1;
  width: 48%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-16deg);
  animation: button-shine 4.8s ease-in-out infinite;
}

.button:hover,
.button:focus {
  background: var(--rose-dark);
  box-shadow: 0 18px 36px rgba(143, 47, 77, 0.3);
  transform: translateY(-2px);
}

.button.secondary {
  border: 1px solid rgba(143, 47, 77, 0.2);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow: none;
}

.hero {
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 74px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 1.04fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.hero-copy-wrap {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 7.25rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-chips span {
  border: 1px solid rgba(143, 47, 77, 0.15);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--rose-dark);
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(83, 38, 50, 0.06);
}

.hero-highlights {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-highlights div {
  min-height: 108px;
  border: 1px solid rgba(234, 214, 202, 0.9);
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(83, 38, 50, 0.07);
}

.hero-highlights strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.2;
}

.hero-highlights span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-art {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(rgba(45, 24, 31, 0.1), rgba(45, 24, 31, 0.04)),
    url("assets/img/henna-hero.svg") center / cover;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.hero-art::before {
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.64);
}

.hero-art::after {
  width: 280px;
  height: 280px;
  right: -80px;
  top: -70px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.44) 0 4px, transparent 5px),
    conic-gradient(from 24deg, rgba(143, 47, 77, 0.5), rgba(195, 138, 45, 0.22), rgba(255, 255, 255, 0.1), rgba(143, 47, 77, 0.5));
  opacity: 0.76;
  animation: slow-spin 24s linear infinite reverse;
}

.sparkle {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(195, 138, 45, 0.14), 0 0 32px rgba(195, 138, 45, 0.9);
  animation: float-sparkle 4.8s ease-in-out infinite;
}

.sparkle-one {
  top: 18%;
  left: 14%;
}

.sparkle-two {
  right: 18%;
  bottom: 30%;
  animation-delay: 1.2s;
}

.booking-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(300px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(83, 38, 50, 0.18);
  backdrop-filter: blur(14px);
}

.booking-card span {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.booking-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.section {
  position: relative;
  padding: 88px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(247, 232, 222, 0.82), rgba(255, 255, 255, 0.7));
}

.inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  line-height: 1.05;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid rgba(234, 214, 202, 0.95);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(83, 38, 50, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card::after {
  position: absolute;
  width: 150px;
  height: 150px;
  right: -62px;
  bottom: -62px;
  border-radius: 50%;
  content: "";
  background: conic-gradient(from 20deg, rgba(143, 47, 77, 0.18), rgba(195, 138, 45, 0.22), transparent, rgba(143, 47, 77, 0.18));
}

.service-card:hover {
  box-shadow: 0 24px 56px rgba(83, 38, 50, 0.13);
  transform: translateY(-5px);
}

.service-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--rose);
  font-weight: 900;
}

.service-card h3 {
  margin: 22px 0 10px;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-section {
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 78px;
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 18px 46px rgba(83, 38, 50, 0.12);
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.gallery-item:hover img {
  transform: scale(1.055);
}

.gallery-item {
  grid-column: span 4;
  grid-row: span 3;
}

.gallery-item:nth-child(6n + 1),
.gallery-item:nth-child(6n + 4) {
  grid-column: span 5;
  grid-row: span 4;
}

.gallery-item:nth-child(6n + 2),
.gallery-item:nth-child(6n + 5) {
  grid-column: span 4;
  grid-row: span 3;
}

.gallery-item:nth-child(6n + 3),
.gallery-item:nth-child(6n + 6) {
  grid-column: span 3;
  grid-row: span 4;
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(143, 47, 77, 0.34);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.gallery-placeholder::before {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  content: "";
  background: conic-gradient(from 0deg, transparent, rgba(195, 138, 45, 0.18), transparent, rgba(143, 47, 77, 0.16), transparent);
  animation: slow-spin 20s linear infinite;
}

.gallery-placeholder span {
  position: relative;
  z-index: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 68px);
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(100, 32, 52, 0.96), rgba(143, 47, 77, 0.92)),
    radial-gradient(circle at top right, rgba(195, 138, 45, 0.28), transparent 26rem);
  color: #fff;
}

.contact-section .eyebrow,
.contact-section .section-heading p,
.contact-section .contact-row a,
.contact-section .contact-row span {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(42, 20, 27, 0.18);
  backdrop-filter: blur(14px);
}

.contact-row {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-row:first-child {
  border-top: 0;
}

.contact-row strong {
  display: block;
  margin-bottom: 4px;
}

.contact-row a {
  text-decoration: none;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer .inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.reveal:nth-child(2),
.gallery-item.reveal:nth-child(2) {
  transition-delay: 100ms;
}

.service-card.reveal:nth-child(3),
.gallery-item.reveal:nth-child(3) {
  transition-delay: 190ms;
}

.gallery-item.reveal:nth-child(4) {
  transition-delay: 70ms;
}

.gallery-item.reveal:nth-child(5) {
  transition-delay: 150ms;
}

.gallery-item.reveal:nth-child(6) {
  transition-delay: 220ms;
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-sparkle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.82;
  }

  50% {
    transform: translate3d(8px, -14px, 0) scale(1.18);
    opacity: 1;
  }
}

@keyframes button-shine {
  0%,
  62% {
    transform: translateX(0) skewX(-16deg);
  }

  100% {
    transform: translateX(430%) skewX(-16deg);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 880px) {
  .nav {
    min-height: 104px;
    padding: 10px 0;
    flex-direction: column;
    gap: 8px;
  }

  .site-clock,
  .nav-auth {
    position: static;
  }

  .site-clock {
    justify-items: center;
    font-size: 0.76rem;
    text-align: center;
  }

  .nav-auth {
    justify-content: center;
  }


  .user-menu {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 460px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-highlights div {
    min-height: auto;
  }

  .service-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

  .gallery-item,
  .gallery-item:nth-child(6n + 1),
  .gallery-item:nth-child(6n + 2),
  .gallery-item:nth-child(6n + 3),
  .gallery-item:nth-child(6n + 4),
  .gallery-item:nth-child(6n + 5),
  .gallery-item:nth-child(6n + 6) {
    grid-column: span 3;
    grid-row: span 3;
  }

  .footer .inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 48px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-chips {
    gap: 8px;
  }

  .hero-chips span {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 380px;
  }

  .booking-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .section {
    padding: 68px 0;
  }

  .gallery-grid {
    display: block;
  }

  .gallery-item {
    min-height: 320px;
    margin-bottom: 16px;
  }
}
