﻿@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=EB+Garamond:wght@400;500;600&display=swap");

:root {
  --bg: #090b16;
  --bg-soft: #12182a;
  --gold: #d8b37a;
  --gold-strong: #f0d39b;
  --gold-dark: #8f6327;
  --text: #f5ead7;
  --panel: rgba(8, 10, 24, 0.68);
  --panel-soft: rgba(8, 10, 24, 0.52);
  --line: rgba(216, 179, 122, 0.45);
  --line-strong: rgba(240, 211, 155, 0.82);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
    min-height: 100vh;
    font-family: "EB Garamond", "Palatino Linotype", "Book Antiqua", Palatino, serif;
    color: var(--text);
    background-image: radial-gradient(circle at 50% 15%, rgba(255, 221, 170, 0.08), rgba(9, 11, 22, 0.04) 42%, rgba(9, 11, 22, 0.55) 100%), linear-gradient(rgb(17 33 112 / 64%), rgba(6, 8, 18, 0.82)), url(../../wider-bg.png);
    background-color: var(--bg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
  color: inherit;
}

.site-wrap {
  min-height: 100vh;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(7px);
  background: linear-gradient(to bottom, rgba(8, 10, 18, 0.82), rgba(8, 10, 18, 0.62));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.nav-toggle {
  display: none;
}

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 11px 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav li {
  position: relative;
}

.menu-with-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.submenu-toggle {
  display: none;
}

.site-nav a {
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(216, 179, 122, 0.48);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(17, 13, 9, 0.48);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #16100b;
  background: linear-gradient(#f2d19c, #b0711f);
  border-color: rgba(240, 211, 155, 0.94);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.33);
}

.submenu {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  display: none;
  background: rgba(8, 10, 18, 0.94);
  border: 1px solid rgba(216, 179, 122, 0.45);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  z-index: 40;
}

.submenu li {
  position: static;
}

.submenu a {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 7px 10px;
  font-size: 13px;
  white-space: nowrap;
  background: transparent;
  text-align: left;
}

.has-submenu:hover .submenu {
  display: block;
}

.container {
  width: min(1240px, 96vw);
  margin: 0 auto;
  padding: 34px 0 58px;
}

.hero {
  text-align: center;
  margin-top: 18px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--gold-strong);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.92);
  font-family: "Cinzel", "Times New Roman", serif;
}

h1 {
  font-size: clamp(36px, 6vw, 70px);
  letter-spacing: 0.7px;
}

.tagline {
  margin-top: 10px;
  font-style: italic;
  color: #eddbbc;
  font-size: clamp(18px, 2.4vw, 28px);
}

.cta-btn {
  margin-top: 18px;
  display: inline-block;
  text-decoration: none;
  color: #f8ecd5;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: linear-gradient(#cb8b35, #8d4b12);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(#d89a48, #99561a);
}

.section {
  margin-top: 34px;
  background: linear-gradient(to bottom, rgba(12, 14, 32, 0.6), rgba(8, 10, 24, 0.74));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 236, 201, 0.03);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: clamp(29px, 4vw, 44px);
  text-align: center;
  margin-bottom: 14px;
}

.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 220px;
}

.section-title::before {
  background: linear-gradient(to right, rgba(216, 179, 122, 0), var(--line-strong));
}

.section-title::after {
  background: linear-gradient(to left, rgba(216, 179, 122, 0), var(--line-strong));
}

.section p {
  line-height: 1.78;
  text-align: center;
  font-size: clamp(18px, 1.95vw, 24px);
  max-width: 860px;
  margin: 0 auto 14px;
  color: #f4e8d0;
}

.services-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border: 1px solid rgba(216, 179, 122, 0.5);
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(8, 11, 26, 0.76), rgba(7, 10, 22, 0.92));
  padding: 18px 14px;
  text-align: center;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.icon-sprite {
  width: 95px;
  height: 95px;
  margin: 0 auto 10px;
  border-radius: 8px;
  border: 1px solid rgba(216, 179, 122, 0.5);
  background-image: url("../../icons.png");
  background-size: 200% 200%;
  background-repeat: no-repeat;
  box-shadow: 0 0 14px rgba(216, 179, 122, 0.2);
}

.icon-eye {
  background-position: 0 0;
}

.icon-shell {
  background-position: 100% 0;
}

.icon-candles {
  background-position: 0 100%;
}

.icon-crystal {
  background-position: 100% 100%;
}

.service-card h3 {
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 8px;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
}

.card-link {
  display: inline-block;
  margin-top: auto;
  transform: translateY(8px);
  margin-bottom: 2px;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: #f8ecd5;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: linear-gradient(#cb8b35, #8d4b12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: 0.2s ease;
}

.card-link:hover {
  transform: translateY(6px);
  background: linear-gradient(#d89a48, #99561a);
}

.spells-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.spell-group {
  border: 1px solid rgba(216, 179, 122, 0.5);
  border-radius: 10px;
  background: var(--panel);
  padding: 14px;
}

.spell-group h3 {
  margin-bottom: 8px;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 28px);
}

.spell-group ul {
  margin: 0;
  padding-left: 20px;
}

.spell-group li {
  margin: 5px 0;
  font-size: clamp(14px, 1.6vw, 18px);
}

.home-spell-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-spell-card {
  border: 1px solid rgba(216, 179, 122, 0.5);
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(8, 11, 26, 0.75), rgba(7, 10, 22, 0.9));
  padding: 16px 14px;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-spell-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border-radius: 10px;
  border: 1px solid rgba(216, 179, 122, 0.5);
  background: rgba(5, 7, 18, 0.55);
  box-shadow: 0 0 14px rgba(216, 179, 122, 0.2);
  object-fit: cover;
}

.home-spell-card h3 {
  font-size: clamp(20px, 2vw, 28px);
  margin-bottom: 8px;
}

.category-title-link {
  text-decoration: none;
  color: inherit;
}

.category-title-link:hover {
  color: #f4dfb8;
}

.home-spell-card p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
}

.spell-page-section {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(216, 179, 122, 0.3);
  scroll-margin-top: 90px;
}

.spell-page-section h3 {
  text-align: center;
  margin-bottom: 0;
  font-size: clamp(26px, 2.8vw, 38px);
}

.spell-page-section:first-of-type {
  margin-top: 18px;
  padding-top: 8px;
  border-top: none;
}

.spell-page-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.spell-page-icon {
  width: 108px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid rgba(216, 179, 122, 0.5);
  background: rgba(5, 7, 18, 0.55);
  box-shadow: 0 0 10px rgba(216, 179, 122, 0.2);
  object-fit: cover;
}

.spell-page-intro {
  text-align: center;
  max-width: 940px;
  margin: 0 auto 16px;
}

.category-clickable {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  padding: 4px 6px 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-clickable:hover {
  background: rgba(216, 179, 122, 0.08);
  transform: translateY(-1px);
}

.subspell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subspell-card {
  border: 1px solid rgba(216, 179, 122, 0.4);
  border-radius: 10px;
  background: rgba(8, 10, 22, 0.62);
  padding: 14px;
}

.subspell-card h4 {
  margin: 0 0 7px;
  color: var(--gold-strong);
  font-size: clamp(18px, 2vw, 24px);
}

.subspell-card p {
  margin: 0;
  text-align: left;
  font-size: clamp(14px, 1.55vw, 17px);
  line-height: 1.55;
}

.spell-desc {
  margin-bottom: 10px;
}

.spell-explain {
  color: #ecd8b4;
}

.category-link-wrap {
  text-align: center;
  margin: 8px 0 14px;
}

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

.service-detail-card {
  border: 1px solid rgba(216, 179, 122, 0.5);
  border-radius: 12px;
  background: var(--panel);
  padding: 20px;
}

.service-detail-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.service-detail-top .icon-sprite {
  width: 82px;
  height: 82px;
  margin: 0;
  flex: 0 0 auto;
}

.service-detail-top h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  text-align: center;
}

.service-detail-card p {
  text-align: left;
  max-width: none;
  margin-bottom: 10px;
}

.contact-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  text-align: center;
}

.contact-list li {
  margin: 8px 0;
  font-size: clamp(18px, 1.85vw, 23px);
}

footer {
  text-align: center;
  padding: 18px 14px 24px;
  font-size: 16px;
  color: #dcc49f;
}

@media (prefers-reduced-motion: no-preference) {
  .section {
    animation: fade-in 0.55s ease both;
  }

  .section:nth-of-type(2) {
    animation-delay: 0.06s;
  }

  .section:nth-of-type(3) {
    animation-delay: 0.12s;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-spell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .site-nav {
    padding: 8px 12px;
  }

  .nav-toggle {
    display: inline-block;
    margin: 0 0 8px auto;
    padding: 7px 12px;
    border: 1px solid rgba(216, 179, 122, 0.6);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(17, 13, 9, 0.5);
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: 12px;
  }

  .site-nav > ul {
    display: none;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
  }

  .site-nav > ul.open {
    display: flex;
    flex-direction: column;
  }

  .site-nav > ul > li {
    width: 100%;
  }

  .site-nav > ul > li > a,
  .menu-with-toggle > a {
    width: 100%;
    border-radius: 10px;
    text-align: left;
  }

  .menu-with-toggle {
    width: 100%;
    gap: 8px;
  }

  .submenu-toggle {
    display: inline-block;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(216, 179, 122, 0.5);
    border-radius: 10px;
    background: rgba(17, 13, 9, 0.48);
    color: var(--gold);
    font-size: 12px;
  }

  .submenu {
    position: static;
    transform: none;
    min-width: 0;
    margin-top: 6px;
    padding: 6px;
    display: none;
  }

  .has-submenu:hover .submenu {
    display: none;
  }

  .has-submenu.open .submenu {
    display: block;
  }

  .submenu a {
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .spells-grid {
    grid-template-columns: 1fr;
  }

  .home-spell-grid {
    grid-template-columns: 1fr;
  }

  .subspell-grid {
    grid-template-columns: 1fr;
  }

  .submenu a {
    font-size: 12px;
  }

  .spell-page-heading {
    flex-direction: column;
    gap: 8px;
  }

  .container {
    padding-top: 20px;
  }

  .section {
    padding: 22px 14px;
  }

  .section-title {
    gap: 10px;
  }

  .section-title::before,
  .section-title::after {
    max-width: 70px;
  }

}
