/* =========================================
   Innovative Funds — Brand stylesheet
   ========================================= */

:root {
  --ink:      #1F2A37;
  --gold:     #B08A3E;
  --gold-lt:  #D4B97A;
  --sage:     #5C6B5A;
  --cream:    #F6F1E7;
  --stone:    #E7E2D6;
  --med:      #8A8A8A;
  --light:    #FAFAF7;
  --serif:    "Times New Roman", Georgia, "Source Serif Pro", serif;
  --sans:     -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout ---------- */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.container-narrow {
  width: min(720px, 92vw);
  margin: 0 auto;
}

section { padding: 80px 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: bold;
  color: var(--ink);
}
.brand img { width: 40px; height: 40px; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-top: -2px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 24px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 100px 0 80px;
  background: var(--cream);
  position: relative;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 80px;
  height: 1px;
  background: var(--gold);
}
.hero::before { top: 60px; transform: translateX(-50%); }
.hero::after { bottom: 30px; transform: translateX(-50%); }
.hero-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage);
}
.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--sage);
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  opacity: 1;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
  opacity: 1;
}
.btn-gold {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  opacity: 1;
}

/* ---------- Section headers ---------- */
.section-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: normal;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.15;
}
.section-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--sage);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.gold-rule {
  width: 70px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto 0;
}

/* ---------- Featured product ---------- */
.featured-product {
  background: var(--light);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.featured-image {
  border: 1px solid var(--stone);
  box-shadow: 0 30px 60px -30px rgba(31, 42, 55, .25);
}
.featured-content h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: 16px;
}
.featured-content .price {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  margin: 18px 0 24px;
}
.featured-content ul {
  list-style: none;
  margin: 18px 0 28px;
}
.featured-content ul li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 15px;
}
.featured-content ul li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ---------- Catalog grid ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px;
  margin-top: 40px;
}
.product-card {
  background: var(--light);
  border: 1px solid var(--stone);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(31, 42, 55, .25);
}
.product-card-image {
  background: var(--stone);
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-image.coming-soon::after {
  content: "COMING SOON";
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--ink);
  color: var(--gold-lt);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
  padding: 6px 12px;
}
.product-card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.product-card-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
  font-weight: normal;
}
.product-card-blurb {
  font-size: 14px;
  color: var(--med);
  margin-bottom: 18px;
  flex: 1;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.product-card-price {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold);
}

/* ---------- Categories tile ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.category-tile {
  border: 1px solid var(--stone);
  padding: 36px 26px;
  text-align: center;
  background: var(--light);
  transition: all .25s;
  position: relative;
}
.category-tile:hover {
  border-color: var(--gold);
  background: var(--cream);
  transform: translateY(-2px);
}
.category-tile h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 8px;
}
.category-tile p {
  font-size: 13px;
  color: var(--med);
  margin-bottom: 14px;
}
.category-tile span {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--gold);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.newsletter .section-title { color: var(--cream); }
.newsletter .section-subtitle { color: var(--gold-lt); }
.newsletter .gold-rule { background: var(--gold); }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 30px auto 0;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 0;
  outline: none;
}
.newsletter-form button {
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all .2s;
}
.newsletter-form button:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
}

/* ---------- Quote ---------- */
.quote-block {
  text-align: center;
  padding: 60px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--sage);
  line-height: 1.5;
}
.quote-block cite {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--med);
  font-style: normal;
  font-family: var(--sans);
  letter-spacing: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
}
.footer-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gold-lt);
  margin-top: 8px;
  font-style: italic;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a {
  color: var(--cream);
  font-size: 13px;
}
.footer-grid ul a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--med);
}

/* ---------- Page header ---------- */
.page-header {
  text-align: center;
  padding: 80px 0 50px;
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: normal;
  line-height: 1.1;
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
}
.product-detail-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-detail-images img {
  border: 1px solid var(--stone);
}
.product-detail-content h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: 14px;
}
.product-detail-content .price {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  margin: 14px 0 22px;
}
.product-detail-content h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: normal;
  margin: 30px 0 14px;
}
.product-detail-content p { margin-bottom: 14px; }
.product-detail-content ul { margin-bottom: 14px; padding-left: 20px; }
.product-detail-content ul li { margin-bottom: 6px; }
.product-detail-content .buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

/* ---------- About page ---------- */
.about-content {
  font-size: 16px;
  line-height: 1.7;
}
.about-content h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: normal;
  margin: 40px 0 14px;
  color: var(--ink);
}
.about-content p { margin-bottom: 16px; }
.about-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--sage);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 18px 24px;
    border-bottom: 1px solid var(--stone);
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .featured-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
