/*
Theme Name: Matamp
Theme URI: https://matamp.co.uk
Description: Matamp child theme for GeneratePress.
Author: Outreach Design
Author URI: https://outreachdesign.co.uk
Template: generatepress
Version: 1.0.0
Text Domain: matamp-gp
*/
/* ============================================================
   0. FONTS
   Fonts are managed by the GeneratePress Font Library (self-hosted,
   no Google) and assigned in Customize > Typography. No @font-face
   or font-family overrides here so the Customizer stays in control.
   ============================================================ */
/* ============================================================
   1. DESIGN TOKENS
   Colour surfaces + accent come from the Customizer palette:
     --base-3 background · --base-2 / --base surfaces
     --contrast / --contrast-2 / --contrast-3 text
     --accent brand green
   The tokens below are only the ones with no Customizer equivalent.
   ============================================================ */
:root{
  --cream:#EDE7D6;        /* vintage faceplate cream, light sections */
  --green-hi:#28994B;     /* green hover */
  --green-wash:rgba(31,122,60,0.14);
  --ink:#14140F;          /* primary text on cream */
  --ink-soft:#4A4A42;     /* secondary text on cream */
  --hair:rgba(246,245,241,0.14);   /* hairline on dark */
  --hair-cream:#CFC7B2;            /* hairline on cream */
  --maxw:1280px;
  --gap-section:96px;
  --pad-card:40px;
  --r:8px;
  --pill:9999px;
  --fs-display:clamp(40px,6vw,74px);   /* H1 */
  --fs-hlg:clamp(32px,4.4vw,46px);     /* H2 / section headers */
  --fs-sub:20px;
  --fs-body:16px;
  --fs-sm:14px;
  --fs-cap:12px;
}
/* ============================================================
   2. BASE
   ============================================================ */
body{
  background:var(--base-3);
  color:var(--contrast);
  font-size:var(--fs-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.grid-container{max-width:var(--maxw)}
/* homepage hero sits flush under the header */
.home .site-content{padding-top:0}
a{color:inherit}
a:hover{color:var(--green-hi)}
h1,h2,h3,h4,h5,h6,
.entry-title,.page-title{
  font-weight:600;
  line-height:1.02;
  letter-spacing:-0.025em;
  color:var(--contrast);
}
h1,.entry-title,.page-title{font-size:var(--fs-display)}
h2{font-size:var(--fs-hlg)}
h3{font-size:22px;letter-spacing:-0.02em}
/* mono eyebrow / caption helper */
.mt-eyebrow{
  font-size:var(--fs-cap);
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--contrast-2);
  display:block;
}

.page-header-image{padding-left:32px;padding-right:32px}
/* ============================================================
   3. BUTTONS  (green pill = the single action colour)
   ============================================================ */
.wp-block-button__link,
.gb-button,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.wc-block-components-button,
.added_to_cart{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--accent)!important;
  color:#fff!important;
  font-weight:500;
  font-size:var(--fs-body);
  line-height:1;
  padding:13px 26px;
  border:1px solid transparent!important;
  border-radius:var(--pill)!important;
  text-decoration:none;
  transition:.18s ease;
}
.wp-block-button__link:hover,
.gb-button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:hover{
  background:var(--green-hi)!important;
}


/* outline / ghost button: add class "mt-ghost" or use is-style-outline */
.is-style-outline .wp-block-button__link,
.mt-ghost{
  background:transparent!important;
  color:var(--contrast)!important;
  border-color:var(--hair)!important;
}
.is-style-outline .wp-block-button__link:hover,
.mt-ghost:hover{border-color:var(--contrast)!important;background:transparent!important}
/* ============================================================
   4. FOOTER
   ============================================================ */
.site-footer,
.site-info{
  background:var(--base-3);
  border-top:3px solid var(--accent);
  color:var(--contrast-2);
}
.site-footer a{color:var(--contrast-2)}
.site-footer a:hover{color:var(--contrast)}
.site-footer .widget-title{
  font-size:var(--fs-cap);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--contrast-3);
  font-weight:400;
}
/* ============================================================
   5. REUSABLE SECTION CLASSES  (apply to GenerateBlocks
      Containers via "Additional CSS class(es)")
   ============================================================ */
/* cream band (featured product, light sections) */
.mt-cream{background:var(--cream);color:var(--ink)}
.mt-cream h1,.mt-cream h2,.mt-cream h3{color:var(--ink)}
.mt-cream p{color:var(--ink-soft)}
.mt-cream .mt-eyebrow{color:var(--ink-soft)}
/* green wash band (custom shop) */
.mt-wash{background:var(--green-wash);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
/* hairline top+bottom rule band (statement) */
.mt-ruled{border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
/* muted trailing text inside a heading */
.mt-muted{color:var(--contrast-3)}
/* spec chips row */
.mt-chip{
  display:inline-block;font-size:var(--fs-sm);font-weight:500;
  padding:7px 15px;border-radius:var(--pill);
  border:1px solid var(--hair);color:var(--contrast);margin:0 8px 8px 0;
}
.mt-cream .mt-chip{border-color:var(--hair-cream);color:var(--ink)}
/* category / range card */
.mt-card{
  border:1px solid var(--hair);border-radius:var(--r);overflow:hidden;
  background:var(--base-2);display:block;
}
.mt-card-link{display:block;color:inherit;text-decoration:none}
.mt-card .mt-card-img{display:block;aspect-ratio:1/1;overflow:hidden;background:#fff;border-bottom:1px solid var(--hair)}
.mt-card .mt-card-img img{width:100%;height:100%;object-fit:cover}


/* card text lines */
.mt-card-body{
  padding:22px 24px 26px 24px;
  text-align:left;
}
h3.mt-card-title{
  margin:0;
  font-size:22px!important;
}
.mt-card-meta{display:block;margin-top:6px;color:var(--contrast-2);font-size:var(--fs-sm)}
.mt-card-go{display:block;margin-top:16px;color:var(--green-hi);font-size:var(--fs-sm);font-weight:500}
.mt-card-go::after{content:"\2192";margin-left:6px;display:inline-block;transition:transform .18s ease}
.mt-card:hover .mt-card-go::after{transform:translateX(3px)}
/* values / feature row */
.mt-values{border:1px solid var(--hair);border-radius:var(--r);overflow:hidden}

/* product loop card: match the category card */
.woocommerce ul.products li.product:not(.product-category){
  text-align:left;
}
.woocommerce ul.products li.product:not(.product-category) .woocommerce-loop-product__title,
.woocommerce ul.products li.product:not(.product-category) .price,
.woocommerce ul.products li.product:not(.product-category) .mt-card-go{
  padding-left:24px;
  padding-right:24px;
}
.woocommerce ul.products li.product:not(.product-category) .woocommerce-loop-product__title{
  font-size:22px!important;
}
.woocommerce ul.products li.product:not(.product-category):hover .mt-card-go::after{
  transform:translateX(3px);
}

/* ============================================================
   6. SWATCH GRID  (opt-in: add CSS class "mt-swatch-grid" to the GB Grid)
   ============================================================ */
.gb-grid-wrapper.mt-swatch-grid{
  display:grid !important;
  grid-template-columns:repeat(6,1fr) !important;
  gap:20px !important;
}
.gb-grid-wrapper.mt-swatch-grid > .gb-container{
  width:100% !important;
  max-width:none !important;
}
.gb-grid-wrapper.mt-swatch-grid .wp-block-image img{
  width:100%;
  height:auto;
}
@media(max-width:782px){
  .gb-grid-wrapper.mt-swatch-grid{grid-template-columns:repeat(3,1fr) !important}
}
/* ============================================================
   7. WOOCOMMERCE
   ============================================================ */
.woocommerce div.product p.price,
.woocommerce div.product span.price{color:var(--contrast);font-weight:600}
.woocommerce ul.products li.product:not(.product-category),
.wc-block-grid__product{
  border:1px solid var(--hair);
  border-radius:var(--r);
  overflow:hidden;
  background:var(--base-2);
  padding:0 0 18px;
}
.woocommerce ul.products li.product a img{border-radius:0;margin-bottom:14px;border-bottom:1px solid var(--hair)}

.woocommerce-Price-amount,
.woocommerce ul.products li.product .price{color:var(--contrast-2)!important}
.woocommerce .woocommerce-products-header__title,
.woocommerce div.product .product_title{font-size:var(--fs-hlg)}

.gb-menu-toggle,
.gb-menu-toggle:hover,
.gb-menu-toggle:focus,
.gb-menu-toggle:focus-visible,
.gb-menu-toggle:active,
.gb-menu-toggle[aria-expanded="true"]{
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}
.gb-site-header a img,
.site-footer .gbp-footer img {
  height: 38px;
  width: auto;
}

/* quantity box on the dark theme: light border, light spinner arrows */
.woocommerce div.product form.cart .quantity .qty{
  color-scheme:dark;                      /* makes the native up/down arrows light */
  background:transparent;
  color:var(--contrast);
  border:1px solid rgba(255,255,255,.35);
  border-radius:6px;
}

/* --- WAPF product options (moved here from functions.php) --- */
/* totals block labels (Product total / Options total / Grand total) */
.wapf-product-totals *{
  font-size:13px !important;
  letter-spacing:.05em !important;
  text-transform:uppercase !important;
  font-weight:700 !important;
  color:#4a4b4c !important;
}
.wapf-product-totals span:not(:last-child)::after{content:":"}
.wapf-product-totals .price{font-weight:400 !important}
.wapf-product-totals div span:last-child{float:none}
.wapf-product-totals .wapf--inner{padding:0}
/* breathing room between the options/totals and the buy row */
.woocommerce div.product form.cart .wapf-product-totals{margin-bottom:28px}
/* dropdown option text — a little smaller */
form.cart .wapf select{font-size:14px}
/* engraving upload sits under the options */
.matamp-engraving{margin:18px 0 22px}

/* basket + checkout: hide the "Including £x in taxes" note under the total */
.wc-block-components-totals-footer-item-tax{display:none !important}

/* block checkout / basket: dark fields, readable labels */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="url"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-textarea textarea,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-select .components-custom-select-control__button,
.wc-block-components-form .wc-block-components-select select{
  background:var(--base-2) !important;
  color:var(--contrast) !important;
  border:1px solid rgba(255,255,255,.35) !important;
  border-radius:6px !important;
}
.wc-block-components-text-input label,
.wc-block-components-textarea label,
.wc-block-components-combobox label,
.wc-block-components-select label{
  color:var(--contrast-2) !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-combobox.is-active label{
  color:var(--contrast) !important;
}
.wc-block-components-text-input input::placeholder,
.wc-block-components-textarea textarea::placeholder{
  color:var(--contrast-3) !important;
}

/* ============================================================
   8. PRODUCT TABS + SPEC TABLE
   ============================================================ */
/* tab nav */
.woocommerce div.product .woocommerce-tabs ul.tabs{
  margin:0 0 28px;padding:0;
  display:flex;gap:28px;flex-wrap:wrap;
  border:0;border-bottom:1px solid var(--hair);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{
  margin:0;padding:0;background:transparent;border:0;border-radius:0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display:inline-block;padding:0 0 14px;margin-bottom:-1px;
  font-size:var(--fs-cap);letter-spacing:.16em;text-transform:uppercase;
  font-weight:500;color:var(--contrast)!important;
  border-bottom:2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{color:var(--contrast)!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:transparent}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{
  color:var(--contrast)!important;border-bottom-color:var(--accent);
}
/* panel */
.woocommerce-tabs .woocommerce-Tabs-panel{color:var(--contrast-2)}
.woocommerce-tabs .woocommerce-Tabs-panel h2{font-size:var(--fs-hlg);margin-bottom:16px}
/* spec / attributes table */
.woocommerce-product-attributes.shop_attributes{
  width:100%;border:0;border-top:1px solid var(--hair);border-collapse:collapse;
}
.woocommerce-product-attributes.shop_attributes tr{border-bottom:1px solid var(--hair)}
.woocommerce-product-attributes.shop_attributes th,
.woocommerce-product-attributes.shop_attributes td{
  padding:14px 0;text-align:left;border:0;
}
.woocommerce-product-attributes.shop_attributes th{
  width:34%;color:var(--contrast-3);font-weight:500;
  font-size:var(--fs-cap);letter-spacing:.08em;text-transform:uppercase;
}
.woocommerce-product-attributes.shop_attributes td{color:var(--contrast);font-weight:400}
.woocommerce-product-attributes.shop_attributes td p{margin:0}

/* ============================================================
   9. CARD GRID (reusable) — add CSS class "mt-cardgrid" to any GB Grid.
   Shell + image + label. Used by speakers, logo designs, vinyl colours.
   ============================================================ */
.mt-cardgrid .gb-container{
  border:1px solid var(--hair);
  border-radius:var(--r);
  overflow:hidden;
  background:var(--base-2);
}
.mt-cardgrid .gb-inside-container{padding:0}
.mt-cardgrid figure.wp-block-image{margin:0;line-height:0}
.mt-cardgrid figure.wp-block-image img{
  display:block;width:100%;height:auto;border-bottom:1px solid var(--hair);
}
.mt-cardgrid .gb-container p{
  margin:0;padding:14px 18px;text-align:left;
  color:var(--contrast);font-size:var(--fs-sm);
}

/* speakers only: padded white driver image + a second (spec) line */
.mt-speakers figure.wp-block-image img{background:#fff;padding:20px}
.mt-speakers .gb-container p:first-of-type{padding:22px 24px 0;font-size:22px}
.mt-speakers .gb-container p:last-of-type{padding:6px 24px 26px;color:var(--contrast-2)}

/* ============================================================
   10. PRODUCT GALLERY
   ============================================================ */
/* MAIN product image: fixed square, photo fills it (hard cropped) */
.woocommerce div.product .woocommerce-product-gallery__image{
  aspect-ratio:1 / 1 !important;
  overflow:hidden;
  background:var(--base-3);
}
.woocommerce div.product .woocommerce-product-gallery__image > a{
  display:block;
  width:100%;
  height:100%;
}
.woocommerce div.product .woocommerce-product-gallery__image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
}

/* THUMBNAILS: 6 per row, even gap, last thumb flush with the main image's right edge */
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs{
  display:grid !important;
  grid-template-columns:repeat(6,1fr);
  gap:12px !important;
  width:100% !important;
  margin:12px 0 0 !important;
  padding:0 !important;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li{
  width:auto !important;
  float:none !important;
  margin:0 !important;
  padding:0 !important;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img{
  display:block;
  width:100%;
  height:auto;
}
@media(max-width:782px){
  .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs{grid-template-columns:repeat(3,1fr)}
}

/* ============================================================
   11. GLOBAL IMAGE RADIUS
   ============================================================ */
/* rounded corners on all content images (not the header/footer logos) */
img{border-radius:4px}
.gb-site-header img,
.site-footer img{border-radius:0}


