/*
Theme Name: CR International
Theme URI: https://crintnl.com
Author: Denny
Description: Official theme for CR International — luxury artisanal manufacturing.
Version: 1.1.5
License: Proprietary
*/

/* =========================================================
   GOOGLE FONTS — loaded here so WP enqueue can cache-bust
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Cormorant+SC:wght@400;500&family=Jost:wght@300;400;500&family=DM+Sans:wght@300;400;500&display=swap');

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* colours — exact values from Framer export */
  --cr-dark:        #1A1410;        /* rgb(26, 20, 16)  */
  --cr-dark-2:      #0F0D0A;        /* deepest bg       */
  --cr-mid:         #241D15;        /* rgb(36, 29, 21)  */
  --cr-gold:        #C9A24E;        /* rgb(201,162,78)  */
  --cr-gold-deep:   #A87C2A;        /* rgb(168,124,42)  */
  --cr-gold-dim:    #7A5718;        /* rgb(122, 87, 24) */
  --cr-cream:       #F2EEE6;        /* rgb(242,238,230) */
  --cr-cream-2:     #FDF6E3;        /* rgb(253,246,227) */
  --cr-cream-3:     #B8AF9E;        /* rgb(184,175,158) */
  --cr-brown:       #3D3328;        /* rgb(61, 51, 40)  */
  --cr-brown-2:     #5C4A38;        /* rgb(92, 74, 56)  */
  --cr-border:      rgba(201,162,78,0.2);

  /* fonts */
  --font-display:  'Cormorant Garamond', serif;
  --font-sc:       'Cormorant SC', serif;
  --font-body:     'Jost', sans-serif;
  --font-ui:       'DM Sans', sans-serif;

  --transition: 200ms ease;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--cr-dark);
  color: var(--cr-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* =========================================================
   NAV
   ========================================================= */
#crnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cr-dark);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 48px);
  border-bottom: 1px solid rgba(201,162,78,0.16);
  font-family: var(--font-ui);
}

.cr-logo {
  display: flex;
  align-items: center;
}
.cr-logo img {
  height: 44px;
  display: block;
}
/* Text fallback until logo image is uploaded */
.cr-logo-text {
  font-family: var(--font-sc);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--cr-gold);
}

.crlink {
  font-family: var(--font-sc);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 14px;
  text-decoration: none;
  color: var(--cr-cream);
  transition: color var(--transition);
}
.crlink:hover,
.crlink.active { color: var(--cr-gold); }
.crlink-gold   { color: var(--cr-gold); }

/* Desktop nav */
.crdesk {
  display: contents; /* let children participate directly in the nav flex */
}

/* Centre links group */
.crdesk-links {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  align-items: center;
  flex: 1;
  justify-content: center;
}


/* Enquire button in nav */
.cr-enquire-btn {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cr-gold-deep);
  border: 1px solid var(--cr-gold-deep);
  padding: 9px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.cr-enquire-btn:hover {
  background: var(--cr-gold-deep);
  color: var(--cr-dark);
}

/* Hamburger */
#crmenu { display: none; }
.crham {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: none;
  background: none;
}
.crham span {
  width: 24px;
  height: 1.5px;
  background: var(--cr-gold);
  display: block;
}

/* Mobile drawer */
.croverlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}
#crmenu:checked ~ .croverlay {
  visibility: visible;
  pointer-events: auto;
}
.croverlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  cursor: pointer;
}
#crmenu:checked ~ .croverlay .croverlay-backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.crdrawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(78vw, 320px);
  background: rgb(32, 25, 19);
  border-left: 1px solid rgba(201, 162, 78, 0.25);
  padding: 22px 26px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s ease;
}
#crmenu:checked ~ .croverlay .crdrawer {
  transform: translateX(0);
}
.crdrawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.crdrawer-brand {
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cr-gold);
}
.croverlay-close {
  color: var(--cr-gold);
  font-size: 26px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}
.crdrawer-link {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 19px;
  color: var(--cr-cream);
  padding: 6px 0;
  transition: color var(--transition);
}
.crdrawer-link:hover { color: var(--cr-gold); }
.crdrawer-sub {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 1px solid rgba(201, 162, 78, 0.3);
  margin: 4px 0 16px;
}
.crdrawer-sub a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--cr-cream-3);
  padding: 5px 0;
  transition: color var(--transition);
}
.crdrawer-sub a:hover { color: var(--cr-gold); }
.crdrawer-minor {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: rgba(242, 238, 230, 0.55);
}
.crdrawer-minor a { color: inherit; }
.crdrawer-minor a:hover { color: var(--cr-gold); }
.crdrawer-enquire {
  margin-top: 24px;
  padding: 12px;
  margin-bottom: 4px;
  border: 1px solid var(--cr-gold);
  border-radius: 2px;
  text-align: center;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cr-gold);
  transition: background var(--transition), color var(--transition);
}
.crdrawer-enquire:hover {
  background: var(--cr-gold);
  color: var(--cr-dark);
}
body:has(#crmenu:checked) { overflow: hidden; }


@media (max-width: 880px) {
  .crdesk        { display: none; }
  .crdesk-links  { display: none; }
  .crham         { display: flex; }
}

/* =========================================================
   BUTTONS (shared)
   ========================================================= */
.btn-gold {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cr-dark);
  background: var(--cr-gold);
  padding: 14px 32px;
  border-radius: 2px;
  border: 1px solid var(--cr-gold);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
}
.btn-gold:hover {
  background: var(--cr-gold-deep);
  border-color: var(--cr-gold-deep);
}

.btn-outline-light {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cr-cream);
  background: transparent;
  padding: 14px 32px;
  border-radius: 2px;
  border: 1px solid rgba(242,238,230,0.5);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
}
.btn-outline-light:hover {
  background: var(--cr-cream);
  color: var(--cr-dark);
  border-color: var(--cr-cream);
}

/* =========================================================
   IMAGE PLACEHOLDER (replaces blob: srcs until real images)
   ========================================================= */
.cr-img-placeholder {
  background: repeating-linear-gradient(
    135deg,
    rgb(58,47,34),  rgb(58,47,34)  10px,
    rgb(51,42,31),  rgb(51,42,31)  20px
  );
  position: relative;
  overflow: hidden;
}
.cr-img-placeholder::after {
  content: attr(data-label);
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: rgba(184,175,158,0.6);
}

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--cr-dark);
  padding: clamp(48px,7vh,72px) clamp(24px,6vw,48px) 28px;
  font-family: var(--font-ui);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(61,51,40,0.9);
}
.footer-col-head {
  font-family: var(--font-sc);
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 500;
  color: var(--cr-gold);
  margin-bottom: 18px;
}
.footer-link {
  display: block;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 14px;
  color: rgba(242,238,230,0.72);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--cr-gold); }
.footer-body-text {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(242,238,230,0.65);
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 13px;
  color: rgba(242,238,230,0.45);
}
.footer-social {
  display: flex;
  gap: 22px;
}
.footer-social span,
.footer-social a {
  font-family: var(--font-sc);
  letter-spacing: 0.12em;
  font-size: 12px;
  color: rgba(242,238,230,0.55);
  text-decoration: none;
  transition: color var(--transition);
  cursor: pointer;
}
.footer-social a:hover { color: var(--cr-gold); }

/* =========================================================
   CARD HOVER OVERLAY (products grid)
   ========================================================= */
.cr-card-link { text-decoration: none; display: block; }
.cr-card-link .ov {
  transition: opacity var(--transition);
  opacity: 0.85;
}
.cr-card-link:hover .ov { opacity: 1; }

@media (max-width: 640px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .footer-cols > div:last-child  { grid-column: 1 / -1; }
}
