/* =========================================================
   AJR PAINTS & CH CHEMICALS — Core Dark Gold Stylesheet
   Luxury Dark Onyx & Metallic Gold Theme
   Matches Brand Banners & Packaging Graphics
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Nunito+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root{
  /* ---- Luxury Light Cream Palette ---- */
  --bg-dark:       #f9f6f0;
  --bg-dark-2:     #f2ede4;
  --paper:         #ffffff;
  --paper-hover:   #ffffff;
  
  --walnut:        #231911;
  --walnut-soft:   #5c4a3b;
  --muted-text:    #8c7664;

  --honey:         #d98e04;
  --honey-deep:    #b57300;
  --gold-glow:     rgba(217, 142, 4, 0.25);

  --sky:           #1b75d0;
  --forest:        #1f9d55;
  --brick:         #d93838;

  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-body:    'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;

  color-scheme: light;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ margin:0; padding:0; }

body{
  background: var(--bg-dark);
  color: var(--walnut);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Light Cream animated background with texture drift */
body::before{
  content: "";
  position: fixed;
  inset: -20%;
  width: 140%;
  height: 140%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(217, 142, 4, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(181, 115, 0, 0.07), transparent 65%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(242, 237, 228, 0.6), transparent 70%),
    repeating-linear-gradient(45deg, rgba(217, 142, 4, 0.015) 0px, rgba(217, 142, 4, 0.015) 2px, transparent 2px, transparent 12px),
    linear-gradient(180deg, #faf7f2 0%, #f2ebe0 100%);
  animation: cream-texture-anim 16s ease-in-out infinite alternate;
}

@keyframes cream-texture-anim {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-1.5%, 1.5%) scale(1.02); }
  100% { transform: translate(1%, -1%) scale(1.01); }
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor:pointer; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); position: relative; z-index: 1; }
section{ position: relative; z-index: 1; overflow: clip; }

/* ---- Typography ---- */
h1, h2, h3, h4{
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: #1f150d;
}

.eyebrow{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--honey);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.eyebrow::before{
  content:"";
  width: 24px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--honey), var(--honey-deep));
  display:inline-block;
}

.lede{
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--walnut-soft);
  max-width: 46ch;
}

.warm-gradient-text{
  background: linear-gradient(100deg, var(--honey), #ffffff 50%, var(--honey-deep) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-drift 6s ease-in-out infinite;
}
@keyframes gradient-drift{
  0%, 100%{ background-position: 0% 0; }
  50%{ background-position: 100% 0; }
}

/* ---- Buttons ---- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid var(--honey);
  background: transparent;
  color: var(--honey);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease, box-shadow .3s ease;
}
.btn:hover{
  background: linear-gradient(120deg, var(--honey), var(--honey-deep));
  color: #0d0a07;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -8px var(--gold-glow);
}
.btn.solid{
  background: linear-gradient(120deg, var(--honey), var(--honey-deep));
  color: #0d0a07;
  border-color: transparent;
  box-shadow: 0 14px 30px -8px var(--gold-glow);
}
.btn.solid:hover{ transform: translateY(-3px) scale(1.02); }

/* ---- Light Glass Navigation ---- */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--gutter);
  display:flex;
  align-items:center;
  justify-content: space-between;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 142, 4, 0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.brand{
  display:flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .01em;
  color: #1f150d;
}
.brand .brand-ajr {
  color: var(--honey-deep);
  text-shadow: 0 0 15px rgba(217, 142, 4, 0.25);
}
.brand-sub{
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--walnut-soft);
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links{
  display:flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
  font-size: 14px;
  color: var(--walnut-soft);
}
.nav-links a{ position: relative; padding-bottom: 4px; transition: color .25s ease; }
.nav-links a::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:0; height:2px;
  border-radius: 2px;
  background: var(--honey);
  transition: width .3s ease;
}
.nav-links a:hover{ color: #1f150d; }
.nav-links a:hover::after{ width:100%; }

.nav-toggle{
  display:none;
  background: none;
  border: 2px solid var(--honey);
  border-radius: 10px;
  width: 42px; height: 36px;
  position: relative;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 5px;
}
.nav-toggle span{
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--honey);
  display:block;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px){
  .site-nav{ padding: 14px 20px; }
  .nav-toggle{ display:flex; width: 46px; height: 40px; }
  .nav-links{
    position: fixed;
    top: 64px; right: 16px;
    left: 16px;
    flex-direction: column;
    gap: 0;
    background: #faf7f2;
    border: 1px solid rgba(217, 142, 4, 0.3);
    border-radius: var(--radius-md);
    padding: 8px 0;
    box-shadow: 0 20px 50px -20px rgba(60,40,20,0.25);
    transform-origin: top right;
    transform: scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.open{ opacity: 1; transform: scale(1); pointer-events: auto; }
  .nav-links li{ border-bottom: 1px solid rgba(217, 142, 4, 0.15); }
  .nav-links li:last-child{ border-bottom: none; }
  .nav-links a{ display:block; padding: 16px 20px; font-size: 15px; color: #231911 !important; }
  .nav-links a::after{ display:none; }
  .brand{ font-size: 18px; }
  .brand small{ display: none; }
}

/* ---- Reveal Animation ---- */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in{ opacity: 1; transform: translateY(0); }

/* ================= FOOTER ================= */
.site-footer{
  padding: 80px 0 40px;
  background: #0d0a07 !important;
  border-top: 3px solid #d9922f !important;
  color: #e5cba3 !important;
  position: relative;
  z-index: 10;
}
.footer-grid{ display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 190, 46, 0.2); }
.footer-brand .brand-ajr { font-family: var(--f-display); font-size: 30px; font-weight: 700; color: #ffbe2e !important; }
.footer-brand .brand-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #e5cba3 !important; }
.footer-brand p { font-size: 14px; color: #e5cba3 !important; line-height: 1.65; max-width: 38ch; margin: 8px 0 0; }
.site-footer h4{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffbe2e !important;
  margin-bottom: 18px;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul li, .site-footer ul li a{ color: #e5cba3 !important; font-size: 14px; text-decoration: none; transition: color .25s; line-height: 1.55; }
.site-footer ul li a:hover{ color: #ffffff !important; text-decoration: underline; }
.footer-bottom{
  display:flex; justify-content: space-between; align-items:center;
  padding-top: 28px;
  font-family: var(--f-mono); font-size: 11.5px; color: #ffbe2e !important;
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 760px){
  .site-footer{ padding: 50px 0 30px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; gap: 8px; }
}
