/* ========================================================= */
/* 👑 THE ROYAL STUART HOUSE - GLOBAL STYLE (2021)     */
/* ========================================================= */
/* === SELF-HOSTED GOOGLE FONTS === */

/* Cinzel Font */
@font-face {
  font-family: 'Cinzel';
  src: url('https://www.royalstuarthouse.eu/css/fonts/cinzel-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('https://www.royalstuarthouse.eu/css/fonts/cinzel-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('https://www.royalstuarthouse.eu/css/fonts/cinzel-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('https://www.royalstuarthouse.eu/css/fonts/cinzel-latin-900-normal.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Raleway Font */
@font-face {
  font-family: 'Raleway';
  src: url('https://www.royalstuarthouse.eu/css/fonts/raleway-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('https://www.royalstuarthouse.eu/css/fonts/raleway-cyrillic-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('https://www.royalstuarthouse.eu/css/fonts/raleway-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === END SELF-HOSTED GOOGLE FONTS === */

body {
  background: #1b223d url("../images/background.png") no-repeat center bottom fixed;
  background-size: 100% auto;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.u-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.header {
  width: 100vw;                 
  background-color: #1b223d;
  border-bottom: 3px solid #dfa732;
  position: fixed;
  box-shadow: 0 5px 8px rgba(0,0,0,0.3);
  top: 0;
  left: 0;
  z-index: 1000;
}

.header img {
  display: block;
  margin: 0 auto;
  width: 140px; 
  height: auto;
}

.header__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center; 
  justify-content: space-between;
}

.main-menu {
  align-self: flex-end; 
}

.header__logo {
  display: flex;
  align-items: center;
}

/* NAVIGATION */
.main-menu {
  display: flex;
}

.main-menu__items {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: flex-end;
}

.main-menu__item a {
  text-decoration: none;
  color: #dfa732; 
  font-weight: 700;
  transition: color 0.3s, transform 0.2s;
}

.main-menu__item a:hover {
  text-decoration: underline;
  color: #ffffff;
  transform: translateY(-2px);
}

/* MOBILE MENU */
.header__nav-toggle {
  display: none;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  .main-menu {
    display: none;
    flex-direction: column;
    background: rgba(223, 167, 50, 0.9);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-height: 85vh; 
    overflow-y: auto; 
    padding: 10px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border-top: 2px solid #1b223d;
    z-index: 999;
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu__items {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .main-menu__item a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1b223d;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
  }

  .main-menu__item a:hover {
    background: #1b223d;
    color: #dfa732;
  }

  .header__nav-toggle {
    display: block;
    width: 32px;
    height: 26px;
    position: relative;
    cursor: pointer;
    z-index: 1000;
  }

  .header__nav-toggle span,
  .header__nav-toggle span::before,
  .header__nav-toggle span::after {
    position: absolute;
    content: "";
    height: 3px;
    width: 100%;
    background: #dfa732;
    left: 0;
    transition: all 0.3s ease;
  }

  .header__nav-toggle span::before {
    top: -8px;
  }

  .header__nav-toggle span::after {
    top: 8px;
  }

  .header__nav-toggle.active span {
    background: transparent;
  }

  .header__nav-toggle.active span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .header__nav-toggle.active span::after {
    transform: rotate(-45deg);
    top: 0;
  }
}

/* GRID SECTIONS */
.infinity-grid-section {
  margin: 60px 0;
}

.infinity-grid-section__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid #dfa732;
  display: inline-block;
  padding-bottom: 4px;
}

.infinity-grid-section__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* CARDS */
.infinity-card {
  background: #1b223d;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.infinity-card:hover {
  transform: translateY(-5px);
}

.infinity-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.infinity-card__content {
  padding: 15px;
}

.infinity-card__prefix {
  font-size: 0.8rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
}

.infinity-card__title {
  margin: 8px 0;
  font-size: 1.2rem;
  color: #dfa732;
  font-weight: 700;
}

.infinity-card__summary {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.infinity-card a {
  text-decoration: none;
  color: inherit;
}

.infinity-card a:hover {
  filter: brightness(1.08);
}

/* FOOTER */
.footer {
  width: 100%;
  background-color: #1b223d;
  color: #dfa732;
  text-align: center;
  padding: 12px 0;
  margin-top: 40px;
  border-top: 3px solid #dfa732;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.25);
}

.footer__menu-items {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__menu-item a {
  color: #dfa732;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: color 0.3s, transform 0.2s;
  font-size: 0.95rem;
}

.footer__menu-item a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer__crest {
  width: 60px;
  margin-bottom: 6px;
}

.footer__copyright {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ====================================== */
/* OVERLAY CARDS  */
/* ====================================== */

.overlay-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.overlay-card:hover {
  transform: scale(1.02);
}

.overlay-card .overlay-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.overlay-card:hover .overlay-image {
  transform: scale(1.05);
}

.overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  padding: 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: white;
}

.overlay-prefix {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ccc;
}

.overlay-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 6px 0;
  color: #dfa732;
}

.overlay-summary {
  font-size: 1.3rem;
  color: #eee;
  max-width: 500px;
}

@media (max-width: 768px) {
  .overlay-text {
    padding: 15px;
  }
  .overlay-title {
    font-size: 1.3rem;
  }
  .overlay-summary {
    font-size: 0.9rem;
  }
}

/* PROFILE PAGE LAYOUT */
.single-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

.profile-image {
  flex: 1 1 400px;
  max-width: 400px;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  object-fit: cover;
  margin-bottom: 10px;
}

.profile-description {
  flex: 1 1 480px;
  max-width: 650px;
  background-color: #1b223d;
  color: #ffffff;
  padding: 22px;
  border-radius: 6px;
  line-height: 1.6;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-description strong {
  color: #dfa732;
}

.crest-small {
  display: block;
  margin: 10px auto;
  width: 50%;
  max-width: 280px;
  filter: brightness(1.1);
  border-radius: 4px;
}

/* ======================================= */
/* 👑 ROYAL QUOTE STYLE – FIXED VERSION    */
/* ======================================= */

.royal-quote {
  position: relative;
  border: 2px solid #dfa732;
  padding: 60px 40px 40px 40px;
  text-align: center;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  color: #dfa732;
  margin: 60px auto;
  max-width: 700px;
  background: rgba(27, 34, 61, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(223,167,50,0.4);
  line-height: 1.6;
  overflow: hidden;
}
.royal-note {
  border-top: 1px solid #dfa732;
  border-bottom: 1px solid #dfa732;
  text-align: center;
  padding: 20px;
  margin: 60px auto;
  color: #ccc;
  font-style: italic;
  font-size: 0.95rem;
}
.royal-quote::before {
  content: "“";
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 100px;
  color: #fff;
  opacity: 1;
  line-height: 1;
}

.royal-quote::after {
  content: "”";
  position: absolute;
  right: 20px;
  bottom: auto;
  font-size: 100px;
  color: #fff;
  opacity: 1;
  line-height: 1;
}

.royal-quote span {
  display: block;
  margin-top: 20px;
  color: #fff;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .royal-quote {
    padding: 40px 20px;
  }
  .royal-quote::before,
  .royal-quote::after {
    font-size: 55px;
    opacity: 1;
  }
}

/* ======================================= */
/* BUTTONS & DIVIDERS                     */
/* ======================================= */

.custom-btn {
  display: inline-block;
  background-color: #dfa732;     
  color: #1b223d;               
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid #dfa732;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.custom-btn:hover {
  background-color: #1b223d;    
  color: #dfa732;              
  border-color: #1b223d;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}

@media (max-width: 480px) {
  .custom-btn {
    width: 80%;
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
}

.royal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 60px 0;
}

.royal-divider hr {
  flex: 1;
  border: none;
  height: 2px;
  background-color: #dfa732;
  opacity: 0.6;
}

.royal-divider img {
  width: 60px;
  filter: brightness(1.1);
}

/* HERO IMAGE */
.royal-hero {
  width: 100%;
  overflow: hidden;
  margin-top: 150px; 
}

.royal-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; 
}





.social-links {
  position: fixed;
  z-index: 1000;
  display: none;
  gap: 1rem;
}

/* Mobile (max 1024px) */
@media (max-width: 1024px) {
  .social-links {
    display: flex;
    flex-direction: row;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    background: #1b223d;
    padding: 0.4rem 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #dfa732;
  }

  body {
    padding-bottom: 35px; 
  }

  .social-links img {
    width: 40px; 
    height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .social-links img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 6px #dfa732; /* altın parıltı efekti */
  }
}
