/* ============================================================
   Allgem Jewellers — Stylesheet
   Vanilla HTML/CSS. No frameworks.
   ============================================================ */

/* ------------------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  --font-display: 'Oranienbaum', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --color-obsidian: #141416;
  --color-velvet: #1a1a2e;
  --color-parchment: #f5f3ef;
  --color-linen: #eae6df;
  --color-burgundy-line: #6f383b;
  --color-rose-gold: #c9a87c;
  --color-champagne: #e8dcc8;
  --color-stone: #7a756d;
  --color-slate: #4a4742;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-obsidian);
  background: var(--color-parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
.display-xl {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.display-lg {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.display-md {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.display-sm {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 400;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

h5, .h5 {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.overline {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-stone);
}

.body-sm {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.caption {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-stone);
}

@media (min-width: 768px) {
  .display-xl { font-size: 56px; }
  .display-lg { font-size: 48px; }
  .display-md { font-size: 36px; }
  .display-sm { font-size: 30px; }
  h1, .h1 { font-size: 36px; }
  h2, .h2 { font-size: 28px; }
  h3, .h3 { font-size: 22px; }
}

@media (min-width: 1080px) {
  .display-xl { font-size: 72px; }
  .display-lg { font-size: 56px; }
  .display-md { font-size: 42px; }
  .display-sm { font-size: 32px; }
  h1, .h1 { font-size: 40px; }
  h2, .h2 { font-size: 32px; }
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-7) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-9) 0;
  }
}

.section-alt {
  background: var(--color-linen);
}

.section-dark {
  background: var(--color-obsidian);
  color: var(--color-parchment);
}

.section-velvet {
  background: var(--color-velvet);
  color: var(--color-parchment);
}

.narrow {
  max-width: 65ch;
}

/* ------------------------------------------------------------
   Faceted Corner Motif
   ------------------------------------------------------------ */
.facet-corner {
  clip-path: polygon(
    12px 0%, calc(100% - 12px) 0%,
    100% 12px, 100% calc(100% - 12px),
    calc(100% - 12px) 100%, 12px 100%,
    0% calc(100% - 12px), 0% 12px
  );
}

.facet-corner-lg {
  clip-path: polygon(
    20px 0%, calc(100% - 20px) 0%,
    100% 20px, 100% calc(100% - 20px),
    calc(100% - 20px) 100%, 20px 100%,
    0% calc(100% - 20px), 0% 20px
  );
}

.facet-corner-sm {
  clip-path: polygon(
    8px 0%, calc(100% - 8px) 0%,
    100% 8px, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%,
    0% calc(100% - 8px), 0% 8px
  );
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: #b8976a;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-obsidian);
  border: 1px solid var(--color-obsidian);
}

.btn-secondary:hover {
  background: var(--color-obsidian);
  color: var(--color-parchment);
}

.btn-secondary-light {
  background: transparent;
  color: var(--color-parchment);
  border: 1px solid var(--color-parchment);
}

.btn-secondary-light:hover {
  background: var(--color-parchment);
  color: var(--color-obsidian);
}

.link-text {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--color-burgundy-line);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, border-width 0.2s ease;
}

.link-text:hover {
  border-bottom-width: 2px;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-parchment);
  border-bottom: 1px solid var(--color-linen);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-obsidian);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--color-burgundy-line);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-obsidian);
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-obsidian);
  transition: transform 0.2s ease;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--color-velvet);
  color: var(--color-parchment);
  z-index: 99;
  padding: var(--space-7) var(--space-5);
  overflow-y: auto;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile a {
  display: block;
  font-size: 20px;
  font-family: var(--font-display);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(245, 243, 239, 0.1);
  min-height: 44px;
}

.nav-mobile .btn-primary {
  margin-top: var(--space-6);
  width: 100%;
}

@media (min-width: 1080px) {
  .nav-links,
  .nav-cta {
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }
}

/* Spacer for fixed nav */
.nav-spacer {
  height: 72px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 90vh;
  background: var(--color-obsidian);
  display: flex;
  align-items: center;
  padding: var(--space-9) var(--space-5);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  color: var(--color-parchment);
  max-width: 800px;
}

.hero-sub {
  color: var(--color-stone);
  margin-top: var(--space-5);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

/* ------------------------------------------------------------
   Product Cards
   ------------------------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-card__image {
  aspect-ratio: 1 / 1;
  background: var(--color-linen);
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-obsidian);
  line-height: 1.4;
}

.product-card__price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-stone);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   Collection Cards (larger, for homepage)
   ------------------------------------------------------------ */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.collection-card__image {
  aspect-ratio: 4 / 3;
  background: var(--color-linen);
  overflow: hidden;
}

.collection-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.collection-card:hover .collection-card__image img {
  transform: scale(1.03);
}

/* ------------------------------------------------------------
   Services Grid
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--color-rose-gold);
}

/* ------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial {
  background: var(--color-champagne);
  padding: var(--space-6);
  clip-path: polygon(16px 0%, calc(100% - 16px) 0%, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0% calc(100% - 16px), 0% 16px);
}

@media (min-width: 768px) {
  .testimonial {
    padding: var(--space-7);
  }
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  line-height: 1.4;
  color: var(--color-obsidian);
}

@media (min-width: 768px) {
  .testimonial__quote {
    font-size: 24px;
  }
}

.testimonial__attribution {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-stone);
  margin-top: var(--space-5);
}

/* ------------------------------------------------------------
   Two-Column Layout
   ------------------------------------------------------------ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
  }
}

.two-col-reverse {
  direction: rtl;
}

.two-col-reverse > * {
  direction: ltr;
}

/* ------------------------------------------------------------
   Three-Column Layout
   ------------------------------------------------------------ */
.three-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 768px) {
  .three-col {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-9);
  }
}

/* ------------------------------------------------------------
   Section Dividers
   ------------------------------------------------------------ */
.divider-facet {
  height: 1px;
  background: var(--color-linen);
  position: relative;
  margin: var(--space-7) 0;
}

.divider-facet::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  width: 24px;
  height: 7px;
  background: var(--color-burgundy-line);
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0% 50%);
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--color-parchment);
  border: 1px solid var(--color-linen);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-obsidian);
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-burgundy-line);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: var(--space-2);
}

/* ------------------------------------------------------------
   Contact Blocks
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hours-list dt {
  font-weight: 600;
  color: var(--color-slate);
}

.hours-list dd {
  color: var(--color-stone);
  margin-bottom: var(--space-2);
}

/* ------------------------------------------------------------
   Trust Bar
   ------------------------------------------------------------ */
.trust-bar {
  background: var(--color-linen);
  padding: var(--space-6) 0;
}

.trust-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  text-align: center;
}

@media (min-width: 768px) {
  .trust-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .trust-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  font-size: 14px;
  color: var(--color-slate);
  line-height: 1.5;
}

.trust-item strong {
  display: block;
  color: var(--color-obsidian);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

/* ------------------------------------------------------------
   Image Caption
   ------------------------------------------------------------ */
.img-caption {
  font-size: 13px;
  color: var(--color-stone);
  margin-top: var(--space-3);
  font-style: italic;
}

/* ------------------------------------------------------------
   Process Steps
   ------------------------------------------------------------ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-rose-gold);
  color: var(--color-obsidian);
  font-weight: 700;
  font-size: 14px;
}

/* ------------------------------------------------------------
   Team Grid
   ------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.team-card__image {
  aspect-ratio: 3 / 4;
  background: var(--color-linen);
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--color-velvet);
  color: var(--color-parchment);
  padding: var(--space-9) 0 var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: var(--color-champagne);
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: var(--color-parchment);
  line-height: 1.8;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--color-champagne);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(245, 243, 239, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: 13px;
  color: var(--color-stone);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom a {
  color: var(--color-stone);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--color-champagne);
}

/* ------------------------------------------------------------
   Accessibility
   ------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-burgundy-line);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-5);
  background: var(--color-obsidian);
  color: var(--color-parchment);
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-2);
}

/* ------------------------------------------------------------
   Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------
   Print Styles
   ------------------------------------------------------------ */
@media print {
  .nav, .nav-mobile, .footer, .btn-primary, .btn-secondary, .nav-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    background: white;
    color: black;
    padding: 24px 0;
  }

  .section {
    padding: 24px 0;
  }
}
