/* ============================================
   Railys Bespoke Diamonds - Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #0d1b2a;
  --navy-light: #1b2d45;
  --gold: #c9a84c;
  --gold-light: #d4b96a;
  --gold-dark: #a8893d;
  --off-white: #f8f5ef;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #f8f5ef;
  --text-muted: #6b7280;
  --shadow: 0 2px 12px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 8px 32px rgba(13, 27, 42, 0.18);
  --transition: 0.3s ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: var(--navy);
  line-height: 1.3;
}

/* --- Utility --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-title .accent-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 16px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow);
}

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

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

.btn-outline-light {
  background: transparent;
  color: var(--off-white);
  border: 2px solid var(--off-white);
}

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

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-brand span {
  color: var(--off-white);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--off-white);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--off-white);
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
  padding: calc(var(--nav-height) + 20px) 0 12px;
  background: var(--navy);
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--gold);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: var(--text-muted);
}

.breadcrumbs .current {
  color: var(--off-white);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 20px;
}

.hero-tagline {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--off-white);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(248, 245, 239, 0.75);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Diamond decorative element */
.diamond-float {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite;
}

.diamond-float:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.diamond-float:nth-child(2) {
  bottom: 20%;
  right: 8%;
  width: 80px;
  height: 80px;
  animation-delay: 2s;
}

.diamond-float:nth-child(3) {
  top: 60%;
  left: 5%;
  width: 50px;
  height: 50px;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-20px); }
}

/* ============================================
   Page Header (inner pages)
   ============================================ */
.page-header {
  padding: calc(var(--nav-height) + 40px) 0 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  color: var(--off-white);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(248, 245, 239, 0.65);
  max-width: 550px;
  margin: 0 auto;
}

/* ============================================
   Features / Highlights
   ============================================ */
.highlights {
  background: var(--white);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.highlight-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(13, 27, 42, 0.06);
  border-radius: 4px;
  transition: box-shadow var(--transition);
}

.highlight-card:hover {
  box-shadow: var(--shadow-lg);
}

.highlight-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.highlight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

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

/* ============================================
   About Preview / About Page
   ============================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 4px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.about-text .accent-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-badges {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
}

.badge-icon {
  font-size: 1.2rem;
}

/* About Page - Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.value-card {
  padding: 32px;
  background: var(--white);
  border-radius: 4px;
  border-left: 4px solid var(--gold);
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

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

/* About Page - Registration */
.registration-banner {
  background: var(--navy);
  text-align: center;
}

.registration-banner h2 {
  color: var(--off-white);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.registration-banner p {
  color: rgba(248, 245, 239, 0.7);
  margin-bottom: 28px;
}

.reg-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.reg-badge {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ============================================
   Services Page
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

.service-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  height: 220px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.service-card-body {
  padding: 28px;
}

.service-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 24px;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   Gallery Page
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-placeholder {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-align: center;
  padding: 20px;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(13, 27, 42, 0.85));
  color: var(--off-white);
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 0.8rem;
  color: rgba(248, 245, 239, 0.7);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2rem;
  color: var(--off-white);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
}

.lightbox-caption {
  color: var(--off-white);
  margin-top: 16px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  padding: 28px;
  background: var(--white);
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.contact-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info-card a {
  color: var(--gold);
}

.contact-info-card a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition);
  background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  position: relative;
}

.cta-section h2 {
  color: var(--off-white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(248, 245, 239, 0.7);
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(248, 245, 239, 0.6);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-brand {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer h4 {
  color: var(--off-white);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(248, 245, 239, 0.6);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(248, 245, 239, 0.2);
  border-radius: 50%;
  color: var(--off-white);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 245, 239, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

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

  .hero-tagline {
    font-size: 0.75rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
