/*
Theme Name: Kovert Apparel
Theme URI: https://kovert.uk/
Author: Jules
Description: Bespoke WordPress Theme for Kovert Apparel.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kovert
*/

:root {
  --black: var(--wp--preset--color--black);
  --charcoal: var(--wp--preset--color--charcoal);
  --white: var(--wp--preset--color--white);
  --grey-100: var(--wp--preset--color--grey-100);
  --grey-300: var(--wp--preset--color--grey-300);
  --grey-500: var(--wp--preset--color--grey-500);
  --grey-700: var(--wp--preset--color--grey-700);
  --max: 1170px;
  --nav-border: 3px;
  --nav-radius: 30px;
  --nav-spacing: 1vw;
  --nav-item-padding: 1vw;
  --nav-item-height: 1.8em;
  --header-padding-x: 4vw;
  --header-padding-top: 0.5vw;
  --header-padding-bottom: 0.8vw;
}

/* Header — Ekantika theme (kovert.uk) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
}

.inside-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2vw;
  max-width: 100%;
  padding: var(--header-padding-top) var(--header-padding-x) var(--header-padding-bottom);
}

.header-tagline {
  margin: 0;
  text-align: center;
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

.logo img, .wp-block-site-logo img {
  display: block;
  width: 250px;
  max-width: 250px;
  height: auto;
}

.main-navigation {
  justify-self: right;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nav-spacing);
  margin: 0;
  padding: 0;
}

.main-navigation a, .wp-block-navigation-item__content {
  display: block;
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 18px);
  text-transform: uppercase;
  text-decoration: none;
  line-height: var(--nav-item-height);
  padding: 0 var(--nav-item-padding);
  background: var(--charcoal);
  color: var(--white);
  border: var(--nav-border) solid var(--white);
  border-radius: var(--nav-radius);
  transition: background 0.2s, color 0.2s, transform 0.3s;
}

.main-navigation a:hover,
.wp-block-navigation-item__content:hover {
  background: var(--white);
  color: var(--black);
  transform: scale(0.9);
}

.cart-link::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 6px;
  vertical-align: -0.1em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.menu-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  padding: 0.6em 1em;
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--charcoal);
  border: var(--nav-border) solid var(--white);
  border-radius: var(--nav-radius);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background: var(--black);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%),
    url("https://kovert.uk/wp-content/uploads/2026/06/retro-trucker-hat-black-front-6a2749a3e7aae.jpg") center / cover no-repeat;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 48px 24px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 36px;
}

.btn, .wp-block-button__link {
  display: inline-block;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--white);
  transition: background 0.2s, color 0.2s;
  background: transparent;
  color: var(--white);
}

.btn:hover, .wp-block-button__link:hover {
  background: var(--white);
  color: var(--black);
}

.btn-secondary .wp-block-button__link {
  margin-left: 12px;
  background: transparent;
  border-color: rgba(255,255,255,0.4);
}

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-300);
  border-bottom: 1px solid var(--grey-300);
}

.trust-item {
  background: var(--white);
  padding: 24px 32px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 14px;
  color: var(--grey-500);
}

/* Section */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-image {
  aspect-ratio: 1;
  background: var(--grey-100);
  margin-bottom: 16px;
  overflow: hidden;
}

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

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

.product-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-price {
  font-size: 14px;
  color: var(--grey-500);
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.3s, transform 0.4s;
}

.category-card:hover img {
  opacity: 0.75;
  transform: scale(1.03);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
}

.category-card span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
  display: block;
}

/* Brand story */
.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--grey-100);
  padding: 80px 32px;
}

.brand-story .text h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.brand-story .text p {
  font-size: 16px;
  color: var(--grey-700);
  margin-bottom: 16px;
  line-height: 1.7;
}

.brand-story .image {
  aspect-ratio: 4/3;
  background: var(--black);
  overflow: hidden;
}

.brand-story .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Newsletter — Ekantika / Contact Form 7 form style */
.newsletter {
  background: var(--charcoal);
  color: var(--white);
  padding: 4vw;
  font-family: Archivo, system-ui, sans-serif;
}

.newsletter-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-copy {
  flex: 1 1 280px;
}

.newsletter-copy h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.newsletter-copy p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
  opacity: 0.85;
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  flex: 1 1 360px;
  justify-content: flex-end;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 200px;
  padding: 0.8rem 1rem;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--white);
  background: var(--charcoal);
  border: 3px solid var(--white);
  border-radius: 0;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  color: var(--charcoal);
  background: var(--white);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter-form input[type="email"]:focus::placeholder {
  color: rgba(30, 30, 30, 0.45);
}

.newsletter-form button {
  padding: 10px 20px;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white);
  background: var(--charcoal);
  border: 3px solid var(--white);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.newsletter-form button:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* Footer — Ekantika site-info */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
}

.site-info {
  padding: 1vw 4vw 3vw;
  text-align: center;
}

.ekantika-footer-title {
  display: inline-block;
  margin-bottom: 20px;
}

.ekantika-footer-title img, .ekantika-footer-title .wp-block-site-logo img {
  width: 200px;
  max-width: 100%;
  height: auto;
}

.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 0 28px;
  padding: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
  color: #dddddd;
  transform: scale(0.92);
}

.social-links svg, .wp-block-social-links .wp-social-link svg {
  width: clamp(28px, 5vw, 48px);
  height: clamp(28px, 5vw, 48px);
  fill: currentColor;
}

.site-info .copyright {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  opacity: 0.85;
}

.site-info a {
  color: var(--white);
  text-decoration: none;
}

.site-info a:hover {
  color: #dddddd;
}

@media (max-width: 900px) {
  .inside-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .logo img, .wp-block-site-logo img {
    width: 120px;
    max-width: 120px;
  }

  .header-tagline {
    font-size: 13px;
    text-align: left;
  }

  .main-navigation, .wp-block-navigation { display: none; }
  .menu-toggle { display: block; }

  .products, .wp-block-group.products { grid-template-columns: repeat(2, 1fr) !important; }
  .categories, .wp-block-group.categories { grid-template-columns: 1fr !important; }
  .brand-story, .wp-block-group.brand-story { grid-template-columns: 1fr !important; }
  .trust-bar, .wp-block-group.trust-bar { grid-template-columns: 1fr !important; }

  .newsletter-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .newsletter-form {
    justify-content: center;
  }

  .site-info {
    font-size: 16px;
  }
}
