/* Arabesque Deco - CSS Custom Oriental */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #a07d2e;
  --bordeaux: #6b1d2a;
  --bordeaux-light: #8c2f3f;
  --bordeaux-dark: #4a0f1b;
  --beige: #f5efe0;
  --beige-dark: #e8dcc8;
  --cream: #faf8f2;
  --text: #2c2418;
  --text-light: #5a4e3c;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.75;
  font-weight: 400;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--bordeaux-dark) 0%, var(--bordeaux) 50%, var(--bordeaux-light) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
  padding: 1rem 0;
  letter-spacing: 0.5px;
}

.site-logo span {
  color: var(--white);
  font-weight: 400;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 1rem 1.1rem;
  color: var(--beige);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* Hero */
.hero {
  background: linear-gradient(to bottom, var(--bordeaux-dark), var(--bordeaux));
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30Z' fill='none' stroke='%23c9a84c' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gold-light);
  position: relative;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--beige);
  position: relative;
  line-height: 1.8;
}

/* Main Content */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.container-wide {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Table of contents */
.toc {
  background: var(--beige);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0 2.5rem;
}

.toc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bordeaux);
  margin-bottom: 0.75rem;
}

.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--bordeaux);
}

/* Typography */
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bordeaux);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bordeaux-light);
  margin: 1.8rem 0 0.75rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

a {
  color: var(--bordeaux);
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-dark);
}

ul, ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

/* Images in content */
.content-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.img-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Cards grid for homepage */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.card-link:hover {
  color: var(--bordeaux);
}

/* Blockquote style */
blockquote {
  border-left: 4px solid var(--gold);
  background: var(--beige);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-light);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--bordeaux-dark) 0%, #2a0c12 100%);
  color: var(--beige);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--beige-dark);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--beige-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: 1140px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.2);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245,239,224,0.5);
}

.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Separator */
.sep {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 2rem auto;
  border: none;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    padding: 0.75rem 1rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .main-nav a {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-desc {
    max-width: 100%;
  }
}
