/* =========================================================
   HOPE & HUSTLE MEDIA
   Main Website Stylesheet
========================================================= */


/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
  --navy: #0f1a2a;
  --navy-soft: #17263a;
  --navy-dark: #08111f;

  --gold: #d4a642;
  --gold-dark: #b88a2e;
  --gold-soft: rgba(212, 166, 66, 0.18);
  --beige: #f7f3ec;
  --cream: #fffdf8;
  --white: #ffffff;

  --text-dark: #1e2430;
  --text-muted: #6b7280;

  --border: #e7dec8;
  --border-dark: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 12px 35px rgba(15, 26, 42, 0.06);
  --shadow-md: 0 20px 45px rgba(15, 26, 42, 0.12);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.25);

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --container-width: 1120px;
  --header-height: 96px;

  --transition-fast: 180ms ease;
  --transition-medium: 280ms ease;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin-top: 0;
}

ul,
ol {
  padding: 0;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: var(--navy);
  background: var(--gold);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 11px 16px;
  color: var(--navy);
  background: var(--gold);
  border-radius: var(--radius-sm);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(212, 166, 66, 0.75);
  outline-offset: 4px;
}


/* =========================================================
   LAYOUT
========================================================= */

.container {
  width: min(
    var(--container-width),
    calc(100% - 40px)
  );
  margin-inline: auto;
}

.narrow {
  width: 100%;
  max-width: 820px;
}

.section {
  padding-block: 90px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.narrow h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.grid-2 {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.align-center {
  align-items: center;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn {
  min-height: 50px;
  padding: 14px 24px;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--navy);
  background: var(--gold);
  box-shadow:
    0 12px 25px rgba(212, 166, 66, 0.28);
}

.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow:
    0 15px 32px rgba(212, 166, 66, 0.34);
}

.btn-secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}



/* =========================================================
   FIXED HEADER AND MOBILE NAVIGATION
========================================================= */

:root {
  --header-height: 96px;
  --header-height-tablet: 88px;
  --header-height-mobile: 82px;
}

/* Keep page content below the fixed header */
html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  padding-top: var(--header-height);
}

#header {
  position: relative;
  z-index: 9999;
}

/* FIXED HEADER */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  min-height: var(--header-height);
  background: rgba(15, 26, 42, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 30px rgba(8, 17, 31, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* BRAND */
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
}

.brand-name {
  overflow: hidden;
  font-size: 1.18rem;
  text-overflow: ellipsis;
}

/* DESKTOP NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 21px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  border-radius: 999px;
  background: var(--gold);
  transition: transform 0.25s ease;
}

.nav-list a:hover,
.nav-list a.active,
.nav-list a[aria-current="page"] {
  color: var(--gold);
}

.nav-list a:hover::after,
.nav-list a.active::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(212, 166, 66, 0.22);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--gold-dark);
}

/* MENU BUTTON */
.menu-toggle {
  position: relative;
  z-index: 10004;
  width: 48px;
  height: 48px;
  display: none;
  flex: 0 0 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 21px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--white);
  transition:
    top 0.3s ease,
    transform 0.3s ease,
    opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  top: 16px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

.menu-toggle span:nth-child(3) {
  top: 30px;
}

.menu-toggle.active span:nth-child(1) {
  top: 23px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 23px;
  transform: translateX(-50%) rotate(-45deg);
}

/* DARK PAGE OVERLAY */
.menu-backdrop {
  position: fixed;
  z-index: 10001;
  inset: var(--header-height) 0 0;
  visibility: hidden;
  background: rgba(8, 17, 31, 0.64);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(3px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.menu-backdrop.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

/* Ensure ordinary website content cannot cover the menu */
main,
.site-footer,
#footer {
  position: relative;
  z-index: 1;
}

/* =========================================================
   TABLET AND MOBILE MENU
========================================================= */

@media (max-width: 1080px) {
  html {
    scroll-padding-top: calc(var(--header-height-tablet) + 20px);
  }

  body {
    padding-top: var(--header-height-tablet);
  }

  .site-header,
  .header-container {
    min-height: var(--header-height-tablet);
  }

  .brand-logo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    z-index: 10003;
    top: var(--header-height-tablet);
    right: 0;
    bottom: 0;
    width: min(380px, 88vw);
    height: calc(100dvh - var(--header-height-tablet));
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    padding: 28px 24px 36px;
    background:
      radial-gradient(
        circle at top right,
        rgba(212, 166, 66, 0.15),
        transparent 30%
      ),
      rgba(15, 26, 42, 0.995);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -22px 0 65px rgba(0, 0, 0, 0.32);
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 0.35s ease,
      visibility 0.35s ease;
    overscroll-behavior: contain;
  }

  .main-nav.open {
    visibility: visible;
    transform: translateX(0);
  }

  .nav-list {
    width: 100%;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a:hover,
  .nav-list a.active,
  .nav-list a[aria-current="page"] {
    background: rgba(212, 166, 66, 0.12);
    color: var(--gold);
  }

  .nav-cta {
    width: 100%;
    min-height: 52px;
    margin-top: auto;
  }

  .menu-backdrop {
    inset: var(--header-height-tablet) 0 0;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 640px) {
  html {
    scroll-padding-top: calc(var(--header-height-mobile) + 16px);
  }

  body {
    padding-top: var(--header-height-mobile);
  }

  .site-header,
  .header-container {
    min-height: var(--header-height-mobile);
  }

  .header-container {
    width: min(100% - 28px, 1120px);
    gap: 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .brand-name {
    max-width: 190px;
    font-size: 0.94rem;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .main-nav {
    top: var(--header-height-mobile);
    width: min(340px, 92vw);
    height: calc(100dvh - var(--header-height-mobile));
    padding: 24px 20px 30px;
  }

  .menu-backdrop {
    inset: var(--header-height-mobile) 0 0;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .menu-backdrop,
  .menu-toggle span,
  .nav-list a,
  .nav-cta {
    transition: none;
  }
}



/* =========================================================
   HERO
========================================================= */

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
  color: var(--white);
  background:
    radial-gradient(
      circle at top right,
      rgba(212, 166, 66, 0.22),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      var(--navy),
      var(--navy-soft)
    );
}

.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(340px, 0.92fr);
  align-items: center;
  gap: 64px;
}

.hero-content h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size:
    clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
  min-height: 440px;
  display: grid;
  place-items: center;
}

.visual-card {
  width: min(430px, 100%);
  min-height: 430px;
  display: grid;
  gap: 16px;
  padding: 28px;
  border:
    1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.04)
    ),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.visual-card span {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--white);
  background:
    rgba(255, 255, 255, 0.09);
  border:
    1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.visual-card span:nth-child(2) {
  background:
    rgba(212, 166, 66, 0.18);
}


/* =========================================================
   SECTION BACKGROUNDS
========================================================= */

.about-section,
.projects-section,
.process-section {
  background: var(--cream);
}

.services-section,
.package-section {
  background: var(--beige);
}

.about-section p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.06rem;
}


/* =========================================================
   CARD GRIDS
========================================================= */

.cards-grid,
.project-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.project-card,
.process-step,
.price-card {
  position: relative;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-medium);
}

.service-card:hover,
.project-card:hover,
.process-step:hover {
  transform: translateY(-5px);
  border-color:
    rgba(212, 166, 66, 0.45);
  box-shadow: var(--shadow-md);
}

.service-card h3,
.project-card h3,
.process-step h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.service-card p,
.project-card p,
.process-step p {
  margin-bottom: 0;
  color: var(--text-muted);
}


/* =========================================================
   STORY SECTION
========================================================= */

.story-section {
  padding: 100px 0;
  color: var(--white);
  background:
    linear-gradient(
      rgba(15, 26, 42, 0.88),
      rgba(15, 26, 42, 0.88)
    ),
    linear-gradient(
      135deg,
      var(--navy),
      var(--navy-soft)
    );
}

.story-section h2 {
  margin-bottom: 0;
  font-size:
    clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.story-section p {
  margin-top: 22px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}


/* =========================================================
   PROJECT CARDS
========================================================= */

.project-card {
  min-height: 230px;
}

.project-card.featured {
  grid-column: span 2;
  color: var(--white);
  background:
    radial-gradient(
      circle at top right,
      rgba(212, 166, 66, 0.25),
      transparent 35%
    ),
    var(--navy);
}

.project-card.featured p {
  color: rgba(255, 255, 255, 0.75);
}

.project-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 11px;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured .project-tag {
  color: var(--navy);
  background: var(--gold);
}


/* =========================================================
   FLAGSHIP PRODUCT CARDS
========================================================= */

.flagship-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}

.flagship-card {
  display: block;
  overflow: hidden;
  padding: 0;
  color: inherit;
}

.flagship-card.featured {
  grid-column: span 1;
}

.project-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition:
    transform 350ms ease;
}

.flagship-card:hover .project-image {
  transform: scale(1.04);
}

.project-content {
  padding: 26px;
}


/* =========================================================
   PACKAGE AND PRICING
========================================================= */

.package-box {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) 420px;
  align-items: center;
  gap: 42px;
  padding: 54px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.package-box h2 {
  margin-bottom: 18px;
  font-size:
    clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.package-box p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.price-card {
  color: var(--text-dark);
  background: var(--cream);
}

.price,
.small-price {
  display: block;
  color: var(--navy);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.price {
  font-size: 3.2rem;
}

.small-price {
  margin: 12px 0;
  font-size: 2rem;
}

.price-card ul,
.service-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.price-card ul {
  margin-block: 24px;
}

.price-card li,
.service-list li {
  padding: 8px 0;
  color: var(--text-muted);
  border-bottom:
    1px solid var(--border);
}

.price-card li::before,
.service-list li::before {
  content: "✔";
  margin-right: 8px;
  color: var(--gold-dark);
  font-weight: 900;
}


/* =========================================================
   PROCESS
========================================================= */

.process-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold-dark);
  font-weight: 900;
}


/* =========================================================
   D DORIAN
========================================================= */

.ddorian-hero {
  background:
    radial-gradient(
      circle at top right,
      rgba(184, 134, 11, 0.14),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #111111,
      #1d1d1d,
      #2a2a2a
    );
}

.artist-logo-card {
  padding: 50px;
  text-align: center;
  background:
    rgba(255, 255, 255, 0.08);
  border:
    1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.artist-logo {
  width: 240px;
  margin: 0 auto 30px;
  filter:
    drop-shadow(
      0 10px 25px rgba(0, 0, 0, 0.25)
    );
  transition:
    transform var(--transition-medium);
}

.artist-logo:hover {
  transform: scale(1.05);
}

.artist-logo-card h2 {
  margin-bottom: 15px;
  color: var(--white);
  font-size: 2rem;
}

.artist-logo-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   TEMPLATE PREVIEW THEME
========================================================= */

.website-preview.custom-logo-theme
.preview-header,
.website-preview.custom-logo-theme
.preview-proof {
  background: var(--preview-secondary);
}

.website-preview.custom-logo-theme
.preview-hero {
  background:
    linear-gradient(
      135deg,
      var(--preview-secondary),
      var(--preview-primary)
    );
}

.website-preview.custom-logo-theme
.preview-btn {
  color: #111111;
  background: var(--preview-accent);
}

.website-preview.custom-logo-theme
.preview-label {
  color: var(--preview-accent);
}

.website-preview.custom-logo-theme
.preview-service-grid div {
  border-top:
    4px solid var(--preview-primary);
}


/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
  padding: 100px 0;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(212, 166, 66, 0.22),
      transparent 30%
    ),
    var(--navy);
}

.final-cta h2 {
  margin-bottom: 20px;
  font-size:
    clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.final-cta p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75);
}

.final-cta .btn {
  margin-top: 32px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 70px 0 0;
  color: rgba(255, 255, 255, 0.68);
  background: var(--navy-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns:
    1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 16px;
  color: var(--white);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  transition:
    color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 50px;
  padding: 22px 0;
  text-align: center;
  border-top:
    1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
}


/* =========================================================
   COMPONENT LOAD ERROR
========================================================= */

.component-load-error {
  width: min(
    var(--container-width),
    calc(100% - 40px)
  );
  margin-inline: auto;
  padding: 18px;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
}

.component-load-error p {
  margin: 0;
}


/* =========================================================
   TABLET AND MOBILE NAVIGATION
========================================================= */

@media (max-width: 1080px) {
  :root {
    --header-height: 88px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    z-index: 1900;
    width: min(360px, 88%);
    display: block;
    overflow-y: auto;
    padding: 28px;
    background:
      rgba(15, 26, 42, 0.99);
    border-left:
      1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      -20px 0 60px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 350ms ease,
      visibility 350ms ease;
  }

  /*
    Supports both:
    .active from current JavaScript
    .open from older JavaScript
  */

  .main-nav.active,
  .main-nav.open {
    visibility: visible;
    transform: translateX(0);
  }

  .main-nav .nav-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav .nav-list li {
    width: 100%;
  }

  .main-nav a {
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a.active,
  .main-nav a[aria-current="page"] {
    color: var(--gold);
    background:
      rgba(255, 255, 255, 0.06);
  }

  .hero-grid,
  .package-box {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .visual-card {
    min-height: 320px;
  }

  .cards-grid,
  .project-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .flagship-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .process-grid,
  .footer-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .project-card.featured {
    grid-column: span 1;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  :root {
    --header-height: 82px;
  }

  .container {
    width: min(
      var(--container-width),
      calc(100% - 32px)
    );
  }

  .section {
    padding-block: 68px;
  }

  .header-container {
    gap: 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .brand-name {
    max-width: 155px;
    font-size: 0.95rem;
    line-height: 1.15;
    white-space: normal;
  }

  .hero-section {
    padding: 78px 0 70px;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .final-cta .btn {
    width: 100%;
  }

  .grid-2,
  .cards-grid,
  .project-grid,
  .flagship-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-image {
    height: 240px;
  }

  .package-box {
    gap: 30px;
    padding: 32px 22px;
    border-radius: var(--radius-md);
  }

  .visual-card {
    min-height: 300px;
    padding: 20px;
    border-radius: 26px;
    transform: none;
  }

  .artist-logo-card {
    padding: 34px 24px;
  }

  .footer-grid {
    gap: 28px;
  }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {
  .brand-name {
    display: none;
  }

  .hero-content h1 {
    font-size:
      clamp(2.5rem, 14vw, 4rem);
  }

  .service-card,
  .project-card,
  .process-step,
  .price-card {
    padding: 23px;
  }

  .main-nav {
    width: 100%;
    padding: 24px 20px;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}