/* =========================================================
   Anna Borjigin Fine Jewelry — shared styles
   Palette: walnut wood, cream, antique gold, deep plum
   ========================================================= */

:root{
  --wood-dark:   #3b2a1e;
  --wood:        #5a4030;
  --wood-light:  #7a5b42;
  --cream:       #faf6ef;
  --cream-deep:  #f2ead9;
  --ink:         #2a2117;
  --ink-soft:    #5b5044;
  --gold:        #c6a15b;
  --gold-light:  #e3cd9c;
  --plum:        #45102f;
  --plum-light:  #6b2049;
  --rule:        #e3dccb;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --max: 1280px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;margin:0;}

.eyebrow{
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ink-soft);
}

.wrap{max-width:var(--max);margin:0 auto;padding:0 40px;}

.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:2px;
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-block;
  padding:14px 30px;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  border:1px solid transparent;
  transition:background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-gold{
  background:var(--gold);
  color:var(--wood-dark);
  border-color:var(--gold);
}
.btn-gold:hover{background:var(--gold-light);border-color:var(--gold-light);}

.btn-outline{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.75);
}
.btn-outline:hover{background:rgba(255,255,255,.12);}

.btn-outline-dark{
  background:transparent;
  color:var(--ink);
  border-color:var(--ink);
}
.btn-outline-dark:hover{background:var(--ink);color:var(--cream);}

/* ---------------- Header ---------------- */
.site-header{
  position:relative;
  z-index:40;
  padding:22px 0 0;
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.header-icons{
  display:flex;
  gap:22px;
  align-items:center;
}
.header-icons button, .header-icons a{
  background:none;border:none;color:inherit;padding:4px;
  display:flex;align-items:center;justify-content:center;
}
.header-icons svg{width:19px;height:19px;}

.brand{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
.brand .mark{
  width:34px;height:34px;
}
.brand-name{
  font-family:var(--font-display);
  font-size:1.5rem;
  letter-spacing:.14em;
  line-height:1;
}
.brand-sub{
  font-size:.58rem;
  letter-spacing:.32em;
  text-transform:uppercase;
  opacity:.85;
}
.brand-tag{
  font-size:.5rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  opacity:.6;
}

.main-nav{
  margin-top:22px;
  border-top:1px solid rgba(255,255,255,.18);
}
.main-nav ul{
  display:flex;
  justify-content:center;
  gap:44px;
  padding:16px 0;
}
.main-nav a{
  font-size:.76rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  position:relative;
  padding-bottom:4px;
}
.main-nav a::after{
  content:"";
  position:absolute;left:0;right:0;bottom:-4px;
  height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left;
  transition:transform .25s ease;
}
.main-nav a:hover::after{transform:scaleX(1);}

.on-light .site-header{color:var(--ink);}
.on-dark .site-header{color:#fff;}

.mobile-nav-toggle{display:none;}

.search-panel .search-inner{max-height:0;}
.search-panel.open .search-inner{max-height:70px;padding-top:14px;padding-bottom:14px;}
.search-panel{border-bottom:1px solid rgba(255,255,255,.12);}

/* ---------------- Hero ---------------- */
.hero{
  position:relative;
  min-height:88vh;
  display:flex;
  flex-direction:column;
  color:#fff;
  overflow:hidden;
  background: repeating-linear-gradient(90deg, #4a3527 0 14px, #3d2b1e 14px 28px);
}
.hero-portrait{display:none;}

/* full-bleed hero photograph */
.hero-photo{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-scrim{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg, rgba(18,12,7,.78) 0%, rgba(18,12,7,.42) 42%, rgba(18,12,7,.12) 68%, rgba(18,12,7,.4) 100%),
    linear-gradient(180deg, rgba(14,9,5,.5) 0%, transparent 22%, transparent 62%, rgba(14,9,5,.62) 100%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:2;
  flex:1;
  display:flex;
  align-items:center;
  padding:60px 0 90px;
}
.hero-copy{
  max-width:520px;
}
.hero-copy .eyebrow{color:var(--gold-light);margin-bottom:18px;}
.hero-copy h1{
  font-size:clamp(2.6rem, 5vw, 3.6rem);
  line-height:1.05;
  color:var(--gold-light);
  text-transform:uppercase;
  letter-spacing:.01em;
}
.hero-copy p{
  margin:22px 0 34px;
  font-size:1.02rem;
  line-height:1.6;
  color:rgba(255,255,255,.88);
  max-width:400px;
}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;}

/* ---------------- Section headings ---------------- */
.section{padding:88px 0;}
.section-title{
  text-align:center;
  font-size:clamp(1.9rem,3vw,2.6rem);
  margin-bottom:48px;
}
.section-title.tight{margin-bottom:28px;}

/* ---------------- Product grid ---------------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:26px;
}
.product-card{position:relative;min-width:0;}
.badge{
  position:absolute;top:14px;left:14px;
  background:var(--cream);
  color:var(--ink);
  font-size:.62rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:6px 10px;
  z-index:2;
}
.product-photo{
  aspect-ratio:1/1.05;
  background:var(--cream-deep);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  margin-bottom:16px;
}
.product-info{text-align:center;}
.product-info h3{
  font-family:var(--font-body);
  font-weight:500;
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.4;
  margin-bottom:6px;
}
.product-info .price{
  font-size:.86rem;
  color:var(--ink-soft);
}

/* ---------------- Pearl carousel ---------------- */
.carousel-section{background:var(--cream-deep);}
.carousel{
  position:relative;
}
.carousel-track{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:26px;
  overflow:hidden;
}
.carousel-item{min-width:0;}
.carousel-item h4{
  font-family:var(--font-body);
  font-weight:500;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-bottom:4px;
}
.carousel-item .headline{
  font-family:var(--font-display);
  font-size:1.5rem;
  margin-bottom:14px;
}
.carousel-item .learn-more{
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  border-bottom:1px solid var(--ink);
  padding-bottom:2px;
}
.pearl-photo{
  aspect-ratio:1/.78;
  margin-bottom:20px;
  overflow:hidden;
}
.carousel-arrow{
  position:absolute;
  top:34%;
  width:40px;height:40px;
  border-radius:50%;
  background:#fff;
  border:1px solid var(--rule);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
}
.carousel-arrow.prev{left:-20px;}
.carousel-arrow.next{right:-20px;}
.carousel-dots{
  display:flex;justify-content:center;gap:8px;margin-top:36px;
}
.carousel-dots button{
  width:7px;height:7px;border-radius:50%;
  background:var(--rule);border:none;padding:0;
}
.carousel-dots button.active{background:var(--ink);}

/* ---------------- Split feature blocks ---------------- */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
}
.split .media{min-height:460px;overflow:hidden;position:relative;min-width:0;}
.split .copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:70px 80px;
}
.split .copy h2{font-size:clamp(1.9rem,3vw,2.5rem);line-height:1.15;margin-bottom:18px;}
.split .copy p{color:var(--ink-soft);line-height:1.7;margin-bottom:26px;max-width:380px;}
.split.reverse{grid-template-columns:1fr 1fr;}
.split.reverse .media{order:2;}
.split.reverse .copy{order:1;}

.split.consult .copy{
  background:var(--cream-deep);
  align-items:flex-start;
}

/* ---------------- Philosophy / visit tiles ---------------- */
.tile-row{
  display:grid;
  grid-template-columns:1fr 1fr;
}
.tile{
  min-height:420px;
  display:grid;
  grid-template-columns:1fr 1fr;
}
.tile .media{overflow:hidden;position:relative;min-width:0;}
.tile .copy{
  padding:60px 60px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.tile.dark .copy{
  background:var(--plum);
  color:#fff;
}
.tile .copy .eyebrow{margin-bottom:10px;}
.tile.dark .eyebrow{color:var(--gold-light);}
.tile .copy h3{font-size:clamp(1.6rem,2.6vw,2.1rem);line-height:1.2;margin-bottom:16px;}
.tile .copy p{line-height:1.7;margin-bottom:24px;color:var(--ink-soft);}
.tile.dark .copy p{color:rgba(255,255,255,.82);}

/* ---------------- Image slots (placeholder -> real JPEG) ---------------- */
/* Drop a real .jpg at the path shown in the tag and it will automatically
   replace the illustrated placeholder — no HTML/CSS edits required. */
.img-slot{
  position:relative;
  width:100%;
  height:100%;
  min-width:0;
}
.img-slot .placeholder-art{
  position:absolute;inset:0;
  width:100%;height:100%;
  z-index:1;
}
.img-slot .real-photo{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  z-index:3;
  background:transparent;
}
.img-slot .filename-tag{
  position:absolute;
  left:8px;bottom:8px;
  z-index:2;
  background:rgba(20,14,9,.72);
  color:#f4ecd8;
  font-family:'Jost',monospace;
  font-size:.62rem;
  letter-spacing:.03em;
  padding:5px 9px;
  max-width:calc(100% - 16px);
  overflow-wrap:anywhere;
  white-space:normal;
  line-height:1.3;
}
.img-slot .filename-tag::before{
  content:"replace: ";
  opacity:.65;
}
/* hero photo needs to be absolutely positioned full-bleed, overriding the
   generic .img-slot position:relative rule above (higher specificity) */
.hero-photo.img-slot{
  position:absolute;
  inset:0;
  z-index:0;
  width:auto;
  height:auto;
}

/* ---------------- Decorative placeholder art ---------------- */
.deco-strand{
  width:100%;height:100%;
  background:
    radial-gradient(circle at 20% 30%, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 45% 55%, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 70% 25%, #fff 0 10px, transparent 11px);
}
.swatch{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
}

/* ---------------- Footer ---------------- */
.site-footer{
  background:var(--wood-dark);
  color:rgba(255,255,255,.82);
  padding:70px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:50px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-grid h4{
  font-family:var(--font-body);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold-light);
  margin-bottom:18px;
}
.footer-grid li{margin-bottom:10px;font-size:.86rem;}
.footer-grid a:hover{color:var(--gold-light);}
.footer-brand .brand-name{font-size:1.3rem;color:var(--gold-light);}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;
  padding-top:24px;font-size:.76rem;color:rgba(255,255,255,.55);
  flex-wrap:wrap;gap:10px;
}

/* ---------------- Chat bubble ---------------- */
.chat-bubble{
  position:fixed;right:26px;bottom:26px;
  display:flex;align-items:center;gap:10px;
  z-index:50;
}
.chat-bubble .prompt{
  background:#fff;border:1px solid var(--rule);
  padding:10px 16px;border-radius:24px;
  font-size:.8rem;box-shadow:0 6px 20px rgba(0,0,0,.08);
}
.chat-bubble .avatar{
  width:44px;height:44px;border-radius:50%;
  background:var(--gold-light);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,.12);
}

/* ---------------- Page header (inner pages) ---------------- */
.page-hero{
  background:var(--wood-dark);
  color:#fff;
  padding:70px 0 60px;
  text-align:center;
}
.page-hero .eyebrow{color:var(--gold-light);margin-bottom:14px;}
.page-hero h1{font-size:clamp(2.2rem,4vw,3rem);color:#fff;}
.breadcrumb{
  font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;
  color:rgba(255,255,255,.6);margin-top:14px;
}
.breadcrumb a:hover{color:var(--gold-light);}

/* ---------------- Form (Reserve a Viewing) ---------------- */
.form-shell{
  max-width:760px;margin:0 auto;
  background:#fff;
  padding:56px;
  box-shadow:0 12px 40px rgba(59,42,30,.08);
  border:1px solid var(--rule);
}
.form-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:24px 24px;
}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:22px;}
.field.full{grid-column:1/-1;}
.field label{
  font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft);
}
.field input, .field select, .field textarea{
  font-family:var(--font-body);
  border:1px solid var(--rule);
  background:var(--cream);
  padding:13px 14px;
  font-size:.92rem;
  color:var(--ink);
}
.field textarea{resize:vertical;min-height:110px;}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--gold);
}
.form-note{font-size:.8rem;color:var(--ink-soft);margin-top:-8px;margin-bottom:26px;}
.form-submit{width:100%;}
.form-success{
  display:none;
  text-align:center;
  padding:40px 20px;
}
.form-success.show{display:block;}
.form-success .mark-check{
  width:52px;height:52px;border-radius:50%;
  border:1px solid var(--gold);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;
}
.time-slots{
  display:grid;grid-template-columns:repeat(3,1fr);gap:10px;
}
.time-slot{
  border:1px solid var(--rule);
  padding:11px 8px;text-align:center;
  font-size:.8rem;background:var(--cream);
}
.time-slot.selected{
  border-color:var(--gold);
  background:var(--gold-light);
}

/* ---------------- Blog / article ---------------- */
.article{
  max-width:760px;margin:0 auto;padding:70px 0 100px;
}
.article .meta{
  font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink-soft);margin-bottom:18px;
}
.article h1{font-size:clamp(2.1rem,4vw,2.8rem);line-height:1.15;margin-bottom:24px;}
.article .lede{font-size:1.15rem;color:var(--ink-soft);line-height:1.7;margin-bottom:36px;}
.article figure{margin:40px 0;}
.article figure figcaption{
  font-size:.76rem;color:var(--ink-soft);margin-top:10px;text-align:center;
}
.article p{line-height:1.85;margin-bottom:22px;font-size:1.02rem;}
.article h2{font-size:1.5rem;margin:44px 0 18px;}
.article blockquote{
  border-left:2px solid var(--gold);
  margin:36px 0;padding:6px 0 6px 28px;
  font-family:var(--font-display);
  font-size:1.3rem;font-style:italic;color:var(--ink);
}
.article-figure-photo{aspect-ratio:16/9;overflow:hidden;}

/* ---------------- Responsive ---------------- */
@media (max-width:1100px){
  .product-grid{grid-template-columns:repeat(3,1fr);}
  .carousel-track{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .tile{grid-template-columns:1fr;}
  .tile .media{min-height:260px;}
}
@media (max-width:860px){
  .main-nav ul{gap:22px;flex-wrap:wrap;padding:14px 20px;}
  .split{grid-template-columns:1fr;}
  .split .copy{padding:50px 30px;}
  .form-grid{grid-template-columns:1fr;}
  .form-shell{padding:34px 22px;}
}
@media (max-width:640px){
  .wrap{padding:0 20px;}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .carousel-track{grid-template-columns:1fr;}
  .hero-copy p{max-width:100%;}
  .header-row{padding:0 4px;}
  .brand-name{font-size:1.15rem;}
  .footer-grid{grid-template-columns:1fr;}
  .time-slots{grid-template-columns:repeat(2,1fr);}
}
