/* 
  Fareen Gems - Premium CSS Base 
  Colors: Deep Sapphire Blue, Rich Gold, Ruby Red, White, Charcoal, Silver
*/

@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 {
  /* Brand Colors */
  --sapphire-blue: #bb0969;
  --sapphire-blue-light: #bb176f;
  --rich-gold: #C5A059;
  --rich-gold-hover: #DAB975;
  --ruby-red: #7C0A02;
  --charcoal: #1A1A1A;
  --silver: #E5E4E2;
  --silver-light: #F4F4F4;
  --white: #FFFFFF;

  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
  --border-radius: 4px;
  /* Slight rounding for a premium feel */

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Animations */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--sapphire-blue);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--sapphire-blue);
  transition: var(--transition-fast);
}

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

ul {
  list-style: none;
}

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

/* Typography Utility */
.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--sapphire-blue);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* Layout Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--silver-light);
}

.bg-dark {
  background-color: var(--sapphire-blue);
  color: var(--white);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3 {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
}

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

.btn-primary:hover {
  background-color: var(--sapphire-blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

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

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

.btn-dark {
  background-color: var(--sapphire-blue);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--rich-gold);
  border-color: var(--rich-gold);
}

/* Header */
.header {
  height: var(--header-height);
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.30rem;
  font-weight: 700;
  color: var(--sapphire-blue);
  letter-spacing: 1px;
}

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

.logo img {
  max-height: 100px;
  /* Adjust according to logo */
  width: auto;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--charcoal);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--rich-gold);
  transition: var(--transition-fast);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--sapphire-blue);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--sapphire-blue);
  font-size: 1.1rem;
}

.social-icons a:hover {
  color: var(--rich-gold);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--sapphire-blue);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: calc(100vh - var(--header-height));
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-color: var(--sapphire-blue);
  overflow: hidden;
}

/* Hero Background image overlay setup */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/hero-bg-placeholder.jpg') center/cover no-repeat;
  opacity: 0.4;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--rich-gold);
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--white);
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--silver);
}

/* Intro Section */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-image {
  position: relative;
}

.intro-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.intro-image::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -20px;
  bottom: -20px;
  left: 20px;
  border: 2px solid var(--rich-gold);
  z-index: -1;
  border-radius: var(--border-radius);
}

/* Features (Why Choose Us) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--rich-gold);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--rich-gold);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Featured Gemstones Cards */
.gem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gem-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.gem-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  /* Square images */
}

.gem-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gem-card:hover .gem-img-wrapper img {
  transform: scale(1.05);
}

.gem-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--sapphire-blue);
  color: var(--white);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  letter-spacing: 1px;
}

.gem-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gem-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--sapphire-blue);
}

.gem-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.gem-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #444;
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  padding: 0.8rem 0;
}

.gem-specs div strong {
  display: block;
  color: var(--sapphire-blue);
}

/* Trust Section */
.trust-section {
  background-color: var(--sapphire-blue);
  color: var(--white);
  text-align: center;
}

.trust-section .section-title {
  color: var(--rich-gold);
}

/* Footer */
.footer {
  background-color: var(--charcoal);
  color: var(--silver);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .logo {
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}

.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

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

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

.footer-links a:hover {
  color: var(--rich-gold);
  padding-left: 5px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition-normal);
}

.footer-socials a:hover {
  background-color: var(--rich-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Page Headers (About, Contact, Gems) */
.page-header {
  background-color: var(--sapphire-blue);
  padding: 6rem 0 4rem;
  text-align: center;
  color: var(--white);
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

/* Contact Page Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info-card {
  background-color: var(--silver-light);
  padding: 2.5rem;
  border-radius: var(--border-radius);
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--rich-gold);
  margin-right: 1.5rem;
  margin-top: 5px;
}

.contact-text h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--sapphire-blue);
  box-shadow: 0 0 0 3px rgba(187, 9, 105, 0.1);
}

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

/* Gemstone Filters */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--silver);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition-fast);
  color: var(--charcoal);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--sapphire-blue);
  color: var(--white);
  border-color: var(--sapphire-blue);
}

/* Optional timeline on About */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 3px solid var(--rich-gold);
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.7rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--rich-gold);
}

.timeline-year {
  font-weight: 700;
  color: var(--sapphire-blue);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {

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

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    padding: 3rem 0;
    transition: var(--transition-normal);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .section {
    padding: 4rem 0;
  }

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