/* === Dominika Music — Site Styles === */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --color-primary: #0f1119;
  --color-accent: #c4a265;
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-white: #ffffff;
  --color-text: #1e1e1e;
  --color-text-light: #6b6b6b;
  --color-border: #e5e2dc;
  --color-overlay: rgba(15, 17, 25, 0.65);

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;

  --max-width: 1120px;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

/* === Typography === */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-primary);
}

h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(22px, 3vw, 28px); }

p + p { margin-top: 1em; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-primary);
}

/* === Navigation === */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(250, 248, 245, 0.98);
  box-shadow: 0 1px 12px rgba(15, 17, 25, 0.06);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.25s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* Mobile menu */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav.open .nav__links {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 18px;
  }
}

/* === Page layout === */

.page {
  padding-top: var(--nav-height);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 28px;
}

.section--tight {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* === Hero (Main page) === */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-height) 0 0;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 17, 25, 0.1) 0%,
    rgba(15, 17, 25, 0.03) 45%,
    rgba(15, 17, 25, 0.5) 65%,
    rgba(15, 17, 25, 0.75) 100%
  );
}

.hero__panel {
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin-left: auto;
  margin-right: 6%;
  padding: 48px 0;
  color: #fff;
}

.hero__panel h2 {
  color: #fff;
  margin-bottom: 20px;
}

.hero__panel p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.hero__panel .about__quote {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--color-accent);
  margin-top: 28px;
  padding: 24px 28px;
}

.hero__panel .about__quote p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

@media (max-width: 768px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 0;
  }

  .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(15, 17, 25, 0.75) 0%,
      rgba(15, 17, 25, 0.2) 50%,
      rgba(15, 17, 25, 0.1) 100%
    );
  }

  .hero__panel {
    max-width: 100%;
    margin: 0;
    padding: 48px 28px 56px;
  }
}

/* === About Section === */

.about__text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about__quote {
  margin-top: 40px;
  padding: 32px 40px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 4px 4px 0;
}

.about__quote p {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 26px);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-primary);
}

/* === Music Page === */

.music__intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.music__player {
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(15, 17, 25, 0.06);
}

.music__player iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

@media (max-width: 600px) {
  .music__player iframe {
    height: 400px;
  }
}

/* === Video Page === */

.video__intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.video__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.video__embed {
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(15, 17, 25, 0.06);
  aspect-ratio: 16 / 9;
}

.video__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__channel {
  text-align: center;
  margin-top: 16px;
}

.video__channel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.video__channel-link:hover,
.video__channel-link:focus-visible {
  background: #2a2d3e;
  color: var(--color-white);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .video__grid {
    grid-template-columns: 1fr;
  }
}

/* === Contacts Page === */

.contacts__intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(15, 17, 25, 0.06);
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 4px 32px rgba(15, 17, 25, 0.1);
}

.contact-card__label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.contact-card__value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-all;
}

.contact-card__value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-card__value a:hover {
  color: var(--color-accent);
}

/* === Footer === */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 36px 28px;
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-text-light);
}

/* === Animations === */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */

@media (max-width: 480px) {
  .section {
    padding: 56px 20px;
  }

  .about__quote {
    padding: 24px;
  }

  .contact-card {
    padding: 28px 24px;
  }
}
