/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables for Premium Sanyew Brand Identity */
:root {
  --ivory: #FBF9F4;
  --pure-white: #FFFFFF;
  --ink-black: #141312;
  --royal-gold: #C69B2E;
  --gold-light: #E4C568;
  --steel-grey: #66625A;
  --hairline: #E7E0D2;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1280px;
}

/* Global Reset & Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--ivory);
  color: var(--steel-grey);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--ink-black);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--steel-grey);
  font-weight: 300;
  font-size: 1.05rem;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Section Eyebrow (wide tracked uppercase) */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--royal-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

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

/* Global Sticky Header */
header {
  position: sticky;
  top: 0;
  background-color: var(--ivory);
  border-bottom: 1px solid var(--hairline);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(251, 249, 244, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-black);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel-grey);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--royal-gold);
  transition: var(--transition-smooth);
}

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

/* Mobile Menu Toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink-black);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Hero Section Base */
.hero {
  padding: 8rem 0 6rem 0;
  position: relative;
  overflow: hidden;
  background-color: var(--ivory);
}

/* Subtle crown background watermark */
.hero-watermark {
  position: absolute;
  top: 10%;
  right: -5%;
  opacity: 0.02;
  width: 600px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 100%;
}

.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 12px 30px rgba(198, 155, 46, 0.06));
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--royal-gold);
  color: var(--pure-white);
  border: 1px solid var(--royal-gold);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink-black);
  border: 1.5px solid var(--ink-black);
}

.btn-secondary:hover {
  background-color: var(--ink-black);
  color: var(--pure-white);
  transform: translateY(-2px);
}

/* Two-column layout patterns */
.split-section {
  padding: 7rem 0;
  border-top: 1px solid var(--hairline);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-text h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.split-text p {
  margin-bottom: 1.5rem;
}

/* Grid & Cards Section */
.grid-section {
  padding: 7rem 0;
  border-top: 1px solid var(--hairline);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Premium Card Design with gold top line on hover */
.card {
  background-color: var(--pure-white);
  border: 1px solid var(--hairline);
  padding: 2.5rem;
  border-radius: 4px;
  position: relative;
  transition: var(--transition-smooth);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--royal-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(198, 155, 46, 0.05);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Circular icon badges */
.icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--ivory);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--royal-gold);
}

.icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--royal-gold);
  stroke-width: 1.75;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Compact Rectangular Cards */
.compact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--pure-white);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  position: relative;
  transition: var(--transition-smooth);
}

.compact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--royal-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition-smooth);
}

.compact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 155, 46, 0.04);
  border-color: var(--royal-gold);
}

.compact-card:hover::before {
  transform: scaleY(1);
}

.compact-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--ivory);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-gold);
  flex-shrink: 0;
}

.compact-icon-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--royal-gold);
  stroke-width: 1.75;
}

.compact-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.compact-card-content h3 {
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink-black);
  margin: 0;
}

.compact-card-content p {
  font-size: 0.85rem;
  color: var(--steel-grey);
  line-height: 1.4;
  margin: 0;
}

/* Category Grid on Products Page */
.category-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.category-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
}

.category-header h3 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-crown-icon {
  width: 24px;
  height: 24px;
  fill: var(--royal-gold);
}

.category-header p {
  font-size: 1.1rem;
  color: var(--steel-grey);
}

/* Catalogue Ledger Layout */
.ledger-section {
  display: grid;
  grid-template-columns: 32% 68%;
  gap: 4rem;
  padding: 6rem 0;
  border-bottom: 1px solid var(--hairline);
}

.ledger-info {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.ledger-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ledger-info p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--steel-grey);
}

.ledger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.5rem;
  row-gap: 0;
}

.ledger-item {
  display: flex;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.ledger-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--royal-gold);
  margin-right: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.ledger-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-black);
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

/* Hover effects */
.ledger-item:hover .ledger-num {
  color: var(--gold-light);
}

.ledger-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--royal-gold);
  transition: var(--transition-smooth);
}

.ledger-item:hover .ledger-name::after {
  width: 100%;
}


/* Values Tag/Chip Grid Layout */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 1000px;
}

.chip {
  background-color: var(--pure-white);
  border: 1px solid var(--hairline);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: var(--steel-grey);
  border-radius: 20px;
  font-weight: 400;
  transition: var(--transition-smooth);
}

.chip:hover {
  border-color: var(--royal-gold);
  color: var(--ink-black);
  transform: translateY(-2px);
}

/* Info Grid (Contact Page) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background-color: var(--pure-white);
  border: 1px solid var(--hairline);
  padding: 2rem;
  border-radius: 4px;
}

.info-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-text p {
  font-size: 1rem;
}

/* Footer Section */
footer {
  background-color: var(--ink-black);
  color: var(--pure-white);
  padding: 5rem 0 3rem 0;
  margin-top: auto;
}

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

.footer-col h4 {
  color: var(--pure-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1); /* Render logo white in black footer */
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--pure-white);
}

.footer-logo-col p {
  color: #a8a59f;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #a8a59f;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

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

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #a8a59f;
  font-size: 0.9rem;
}

.footer-contact-list li svg {
  color: var(--royal-gold);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid #2a2927;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6e6a64;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* RESPONSIVE BREAKPOINTS */

/* Mobile Mode: ~360px to 480px */
@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Hamburger menu transforms on open */
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .hero {
    padding: 6rem 0 4rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-logo-wrapper {
    order: -1;
  }

  .hero-logo {
    max-width: 200px;
  }
  
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    text-align: center;
    width: 100%;
  }
  
  .split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .ledger-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 0;
  }
  .ledger-info {
    position: static;
  }
  .ledger-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet Mode: ~768px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
  .ledger-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .ledger-info {
    position: static;
  }
  .ledger-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
}
