/*
Theme Name: Hudallilnas App Hub
Theme URI: https://hudallinnas.com/
Author: Hudallilnas
Author URI: https://hudallinnas.com/
Description: A fast, accessible multi-app publishing theme for Hudallilnas.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: hudallinnas
*/

:root {
  --hln-green: #0f3d2e;
  --hln-green-deep: #08291f;
  --hln-green-soft: #5e7f68;
  --hln-gold: #d4af37;
  --hln-gold-soft: #ead58a;
  --hln-ivory: #f7f3e8;
  --hln-paper: #fffdf8;
  --hln-ink: #222222;
  --hln-muted: #607067;
  --hln-border: rgba(15, 61, 46, 0.14);
  --hln-shadow: 0 24px 70px rgba(8, 41, 31, 0.12);
  --hln-radius: 26px;
  --hln-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --hln-bengali:
    "Noto Serif Bengali", "Noto Sans Bengali", system-ui, sans-serif;
  --hln-sans:
    "Source Sans 3", Lato, Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--hln-ink);
  background: var(--hln-paper);
  font-family: var(--hln-bengali);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--hln-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #7a5e0b;
}
button,
input,
textarea,
select {
  font: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--hln-green);
  line-height: 1.2;
}
h1,
h2 {
  font-family: var(--hln-serif), var(--hln-bengali);
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 1.1em;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 99999;
  top: 14px;
  left: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--hln-green);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.narrow {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding: 92px 0;
}
.section--tint {
  background: var(--hln-ivory);
}
.section--dark {
  color: #fff;
  background: var(--hln-green);
}
.section--dark h2,
.section--dark h3 {
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #725a12;
  font-family: var(--hln-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: var(--hln-gold);
}
.section-title {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}
.section-copy {
  max-width: 700px;
  color: var(--hln-muted);
  font-size: 1.08rem;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--hln-border);
  background: rgba(247, 243, 232, 0.94);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 310px;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 999px;
  font-family: var(--hln-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: #fff;
  background: var(--hln-green);
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hln-border);
  border-radius: 14px;
  color: var(--hln-green);
  background: transparent;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 35%,
      rgba(212, 175, 55, 0.17),
      transparent 28%
    ),
    linear-gradient(135deg, #fbf8ef 0%, #f7f3e8 55%, #edf2ec 100%);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(15, 61, 46, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 61, 46, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to right, #000, transparent 80%);
}
.hero-inner {
  display: grid;
  min-height: 720px;
  align-items: center;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 74px;
  padding-block: 80px;
}
.hero h1 {
  max-width: 720px;
  font-size: clamp(3rem, 6.2vw, 6.25rem);
}
.hero h1 span {
  display: block;
  color: #8a6a10;
}
.hero-copy {
  max-width: 680px;
  color: #48584f;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--hln-sans);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button--primary {
  color: #fff;
  background: var(--hln-green);
  box-shadow: 0 14px 30px rgba(15, 61, 46, 0.22);
}
.button--primary:hover {
  color: #fff;
  background: #15513e;
}
.button--gold {
  color: var(--hln-green-deep);
  background: var(--hln-gold);
}
.button--gold:hover {
  color: var(--hln-green-deep);
  background: #e0bd49;
}
.button--outline {
  color: var(--hln-green);
  border-color: rgba(15, 61, 46, 0.28);
  background: rgba(255, 255, 255, 0.45);
}
.button--outline:hover {
  color: var(--hln-green);
  background: #fff;
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-card {
  position: relative;
  width: min(450px, 100%);
  min-height: 510px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 44px;
  color: #fff;
  background: linear-gradient(155deg, #164b39, #08291f 70%);
  box-shadow: var(--hln-shadow);
}
.hero-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 36px rgba(212, 175, 55, 0.06),
    0 0 0 72px rgba(212, 175, 55, 0.04);
}
.hero-mark {
  width: 168px;
  border-radius: 34px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}
.hero-card-kicker {
  margin-top: 34px;
  color: var(--hln-gold-soft);
  font-family: var(--hln-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-card h2 {
  margin-top: 8px;
  color: #fff;
  font-size: 2.65rem;
}
.hero-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
}
.status-line {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--hln-sans);
  font-size: 0.9rem;
  font-weight: 700;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hln-gold);
  box-shadow: 0 0 0 7px rgba(212, 175, 55, 0.12);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.app-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--hln-border);
  border-radius: var(--hln-radius);
  background: #fff;
  box-shadow: 0 14px 45px rgba(8, 41, 31, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(8, 41, 31, 0.13);
}
.app-card-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: var(--hln-green);
}
.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-card-icon--letter {
  font-family: var(--hln-serif);
  font-size: 2rem;
  font-weight: 700;
}
.app-card h3 {
  font-size: 1.75rem;
}
.app-card h3 a {
  text-decoration: none;
}
.app-card p {
  color: var(--hln-muted);
}
.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--hln-green);
  background: var(--hln-ivory);
  font-family: var(--hln-sans);
  font-size: 0.74rem;
  font-weight: 800;
}
.pill--gold {
  color: #624a04;
  background: #fbf1cb;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--hln-sans);
  font-weight: 800;
  text-decoration: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}
.feature-card {
  padding: 30px;
  border: 1px solid var(--hln-border);
  border-radius: var(--hln-radius);
  background: rgba(255, 255, 255, 0.7);
}
.feature-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  color: var(--hln-green);
  background: #f5e9b8;
  font-family: var(--hln-sans);
  font-size: 0.83rem;
  font-weight: 900;
}
.feature-card h3 {
  font-size: 1.35rem;
}
.feature-card p {
  margin: 0;
  color: var(--hln-muted);
}

.split {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.mission-panel {
  padding: 48px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(145deg, var(--hln-green), var(--hln-green-deep));
  box-shadow: var(--hln-shadow);
}
.mission-panel h2 {
  color: #fff;
}
.mission-panel p {
  color: rgba(255, 255, 255, 0.75);
}
.mission-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mission-list li::before {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  content: "";
  background: var(--hln-gold);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 46px;
  border-radius: 34px;
  color: #fff;
  background: var(--hln-green);
  box-shadow: var(--hln-shadow);
}
.cta-band h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.cta-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero {
  padding: 86px 0 66px;
  border-bottom: 1px solid var(--hln-border);
  background: linear-gradient(135deg, var(--hln-ivory), #edf2ec);
}
.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.7rem, 6vw, 5rem);
}
.page-hero p {
  max-width: 720px;
  color: var(--hln-muted);
  font-size: 1.14rem;
}
.content-shell {
  padding: 76px 0 100px;
}
.prose {
  font-size: 1.04rem;
}
.prose h2 {
  margin-top: 2em;
  font-size: 2rem;
}
.prose h3 {
  margin-top: 1.7em;
  font-size: 1.35rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose > *:first-child {
  margin-top: 0;
}
.notice {
  padding: 20px 22px;
  border-left: 4px solid var(--hln-gold);
  border-radius: 0 14px 14px 0;
  background: var(--hln-ivory);
}

.single-app-hero {
  padding: 84px 0;
  background: linear-gradient(135deg, #f9f6ec, #eef4ef);
}
.single-app-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 0.82fr;
  gap: 72px;
}
.single-app-icon {
  width: 210px;
  height: 210px;
  margin-inline: auto;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  background: var(--hln-green);
  box-shadow: var(--hln-shadow);
}
.single-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.detail-item {
  padding: 17px 18px;
  border: 1px solid var(--hln-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.detail-item small {
  display: block;
  color: var(--hln-muted);
  font-family: var(--hln-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-item strong {
  color: var(--hln-green);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--hln-border);
  border-radius: var(--hln-radius);
  background: #fff;
  box-shadow: 0 18px 55px rgba(8, 41, 31, 0.08);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--hln-green);
  font-family: var(--hln-sans);
  font-size: 0.9rem;
  font-weight: 800;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 61, 46, 0.2);
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--hln-ink);
  background: #fffdf8;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--hln-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}
.form-status {
  padding: 14px 16px;
  border-radius: 12px;
}
.form-status--success {
  color: #0e5738;
  background: #e7f5ed;
}
.form-status--error {
  color: #8e2f28;
  background: #fdeceb;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
}

.site-footer {
  padding: 70px 0 24px;
  color: rgba(255, 255, 255, 0.75);
  background: #07271d;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 50px;
}
.footer-logo {
  width: 270px;
  border-radius: 6px;
}
.footer-copy {
  max-width: 470px;
  margin-top: 20px;
}
.site-footer h3 {
  color: #fff;
  font-family: var(--hln-sans);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li + li {
  margin-top: 8px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--hln-gold-soft);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--hln-sans);
  font-size: 0.82rem;
}

.empty-state {
  padding: 48px;
  border: 1px dashed rgba(15, 61, 46, 0.25);
  border-radius: var(--hln-radius);
  text-align: center;
  background: #fff;
}

@media (max-width: 960px) {
  .hero-inner,
  .split,
  .single-app-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    gap: 48px;
  }
  .hero-visual {
    justify-content: start;
  }
  .apps-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
  .header-inner {
    min-height: 74px;
  }
  .brand-logo {
    width: 245px;
  }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 14px;
    border: 1px solid var(--hln-border);
    border-radius: 18px;
    background: var(--hln-paper);
    box-shadow: var(--hln-shadow);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
  }
  .site-nav a {
    padding: 12px 14px;
  }
  .hero,
  .hero-inner {
    min-height: auto;
  }
  .hero-inner {
    padding-block: 68px;
  }
  .hero-card {
    min-height: 460px;
  }
  .section {
    padding: 70px 0;
  }
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1160px);
  }
  .brand-logo {
    width: 210px;
  }
  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.35rem);
  }
  .hero-card {
    min-height: 420px;
    padding: 30px;
    border-radius: 32px;
  }
  .hero-mark {
    width: 132px;
    border-radius: 28px;
  }
  .apps-grid,
  .feature-grid,
  .detail-list,
  .form-row {
    grid-template-columns: 1fr;
  }
  .mission-panel,
  .cta-band,
  .contact-form {
    padding: 28px;
    border-radius: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > :first-child {
    grid-column: auto;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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