/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300;400;500&display=swap');

/* ===== VARIABLES ===== */
:root {
  --header-height: 3.5rem;
  
  /* Colors */
  --first-color: #D4AF37; /* A rich gold for accents */
  --first-color-alt: #C4A02E;
  --title-color: #F5F5F5; /* A soft white for titles */
  --text-color: #D3D3D3; /* A light gray for body text */
  --body-color: #121212; /* A very dark, near-black for the body */
  --container-color: #1C1C1C; /* A slightly lighter dark for content boxes */

  /* Font and typography */
  --body-font: 'Roboto', sans-serif;
  --title-font: 'Playfair Display', serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /* Font weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-bold: 700;

  /* Margins */
  --mb-0-5: .5rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;

  /* z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1024px;
  /* Use auto margins to center the container horizontally */
  margin-left: auto;
  margin-right: auto;
  /* Use padding to keep content from touching the edges on smaller screens */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  text-align: center;
  margin-bottom: var(--mb-2);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  /* Frosted glass effect */
  background-color: hsla(0, 0%, 10%, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
  color: var(--first-color);
  font-weight: var(--font-bold);
}

.nav__logo span {
    color: var(--title-color);
}

.nav__list {
  display: flex;
  column-gap: 2rem;
}

.nav__link {
  font-weight: var(--font-medium);
  position: relative;
  transition: color .3s;
}

.nav__link:hover {
  color: var(--first-color);
}

/* Interactive underline effect */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--first-color);
  transition: width .3s ease-in-out;
}

.nav__link:hover::after {
  width: 100%;
}

/* Change header background on scroll */
.scroll-header {
  background-color: var(--container-color);
  box-shadow: 0 1px 4px hsla(0, 4%, 15%, .1);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--container-color);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer__logo {
  font-family: var(--title-font);
  font-size: var(--h1-font-size);
  color: var(--first-color);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-0-5);
}

.footer__logo span {
    color: var(--title-color);
}

.footer__description,
.footer__link {
    font-size: var(--small-font-size);
}

.footer__links {
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}

.footer__link:hover {
    color: var(--first-color);
    text-decoration: underline;
}

.footer__social {
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
    margin-top: var(--mb-1);
}

.footer__social-link {
    font-size: 1.25rem;
    transition: transform .3s;
}

.footer__social-link:hover {
    color: var(--first-color);
    transform: translateY(-.25rem);
}

.footer__copy {
  display: block;
  margin-top: 3rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
}