/* I Cut Gemstones – High-end educational site matching brochure style */
:root {
  --cream: #FDF8F0;
  --cream-dark: #F5EDE0;
  --navy: #1A2A4A;
  --navy-light: #2C3E6B;
  --gold: #C9A227;
  --gold-light: #E8D48B;
  --text: #2C2C2C;
  --muted: #5A5A5A;
  --white: #FFFFFF;
  --shadow: 0 10px 40px rgba(26, 42, 74, 0.08);
  --radius: 12px;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image: url('../images/ui/pattern-gems.jpg');
  background-size: 400px;
  background-attachment: fixed;
  background-blend-mode: soft-light;
  background-color: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* Header */
.site-header {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo span { color: var(--gold); }

nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.03em;
}

nav a:hover, nav a.active { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26,42,74,0.75), rgba(26,42,74,0.55)),
              url('../images/ui/hero-gems.jpg') center/cover no-repeat;
  color: var(--white);
}

.hero-content {
  max-width: 820px;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 90px;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.hero .tagline {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.hero .subtitle {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.section-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto;
}

/* Feature cards on home */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.15);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26, 42, 74, 0.12);
}

.feature-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Education Grid */
.brochure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.brochure-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.18);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.brochure-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(26, 42, 74, 0.14);
}

.brochure-card .thumb {
  aspect-ratio: 784 / 1168;
  background: var(--cream-dark);
  overflow: hidden;
  position: relative;
}

.brochure-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.brochure-card:hover .thumb img {
  transform: scale(1.04);
}

.brochure-card .info {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brochure-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.brochure-card .meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.brochure-card .actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

.brochure-card .actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 50, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-inner {
  position: relative;
  max-width: 900px;
  max-height: 92vh;
  width: 100%;
}

.lightbox-inner img {
  max-height: 85vh;
  width: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-title {
  color: white;
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

/* About / Contact simple */
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.15);
  max-width: 800px;
  margin: 0 auto;
}

.content-card h2 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 1rem;
}

.content-card p {
  margin-bottom: 1rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.footer-tag {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

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

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(201,162,39,0.2);
    gap: 0.75rem;
  }
  nav.open { display: flex; }
  .header-inner { position: relative; }
  .hero { min-height: 70vh; }
  .brochure-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
