/* ==========================================================================
   GRC Textile — Global stylesheet (shared by all 4 pages)
   Warm, tactile palette: cream / beige / caramel / deep brown
   ========================================================================== */

:root {
  --cream:      #faf3e7;
  --beige:      #efe2cd;
  --caramel:    #b9864f;
  --caramel-dk: #9c6b37;
  --brown:      #5b422c;
  --brown-dk:   #3f2e1f;
  --ink:        #33251a;
  --muted:      #6f5d4a;
  --white:      #ffffff;

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  'Segoe UI', Arial, Helvetica, sans-serif;

  --shadow: 0 10px 30px rgba(91, 66, 44, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--caramel-dk); }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--brown-dk);
}

.wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: var(--caramel);
  color: var(--white);
  border: 2px solid var(--caramel);
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--caramel-dk); border-color: var(--caramel-dk); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn--ghost:hover { background: var(--cream); color: var(--brown); }

/* ----- Header / Nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 231, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(63, 46, 31, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brown-dk);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.logo em { font-style: normal; color: var(--caramel); }

.nav-links { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--brown);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--caramel);
  transition: width .2s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--caramel-dk); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--brown-dk); border-radius: 2px; transition: .25s; }

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  background-color: var(--brown-dk);
  background-size: cover;
  background-position: center;
}
.hero::before { /* dark overlay for text legibility */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(51,37,26,.55), rgba(51,37,26,.78));
}
.hero-inner { position: relative; max-width: 720px; padding: 5rem 0; }
.hero h1 { color: var(--cream); font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 1rem; }
.hero p { font-size: 1.15rem; color: rgba(250,243,231,.9); margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Breadcrumb band (subpages) */
.page-band {
  background: linear-gradient(135deg, var(--brown) , var(--brown-dk));
  color: var(--cream);
  padding: 3.4rem 0 2.6rem;
  text-align: center;
}
.page-band h1 { color: var(--cream); margin: 0 0 .4rem; font-size: clamp(1.8rem,4vw,2.6rem); }
.page-band p { margin: 0; color: rgba(250,243,231,.85); }

/* ----- Sections --------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--beige); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.8rem; }
.section-head h2 { font-size: clamp(1.7rem,3.5vw,2.4rem); margin: 0 0 .6rem; }
.section-head .kicker {
  color: var(--caramel-dk);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 700;
}
.section-head p { color: var(--muted); margin: 0; }

/* ----- Product cards ---------------------------------------------------- */
.grid { display: grid; gap: 1.6rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(91,66,44,.2); }

/* Placeholder visual: warm gradient behind a translucent product img + centered label */
.product-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f4e6cd, #e7d0ab, #d9b98a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img.product-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-img figcaption {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: rgba(91,66,44,.85);
  text-align: center;
  padding: 0 0.8rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

.product-body { padding: 1.1rem 1.2rem 1.3rem; }
.product-body h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.product-body .uses {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 .6rem;
}
.product-body .desc { margin: 0 0 .8rem; font-size: .95rem; }

/* Pill separator between desc and uses */
.tag { display: inline-block; background: var(--beige); color: var(--brown); border-radius: 999px; padding: .15rem .7rem; font-size: .78rem; margin: 0 .35rem .35rem 0; }

.card-foot a { text-decoration: none; font-weight: 600; }
.card-foot a:hover { text-decoration: underline; }

/* ----- Feature strip (home) -------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.feature h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.feature .ico { font-size: 1.6rem; }

/* ----- Factory / About -------------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.figure img { width: 100%; }
.figure figcaption { padding: .6rem .9rem; font-size: .85rem; color: var(--muted); background: var(--cream); }

.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { padding: .9rem 0; border-bottom: 1px dashed var(--beige); color: var(--brown); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list strong { color: var(--brown-dk); }

/* ----- Contact form ----------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--brown); }
.form-field input, .form-field select, .form-field textarea {
  padding: .75rem .9rem;
  border: 1px solid var(--beige);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: .98rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(185,134,79,.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { color: var(--muted); font-size: .88rem; }

.contact-box { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-box h3 { margin-top: 0; }
.contact-box ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.contact-box li { padding: .5rem 0; display: flex; gap: .6rem; align-items: baseline; }

/* ----- Scroll reveal ---------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ----- CTA -------------------------------------------------------------- */
.cta { background: linear-gradient(135deg, var(--caramel) , var(--caramel-dk)); color: var(--cream); text-align: center; }
.cta h2 { color: var(--white); margin: 0 0 .6rem; }
.cta p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 1.6rem; }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--brown-dk); color: rgba(250,243,231,.85); padding: 3rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--cream); margin: 0 0 .8rem; font-family: var(--serif); }
.site-footer a { color: rgba(250,243,231,.8); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .two-col { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid--4, .grid--2, .grid--3 { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    box-shadow: 0 10px 20px rgba(63,46,31,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { display: block; padding: .95rem 4%;
  border-top: 1px solid var(--beige); }
}
/* ================= PRODUCT LINE BLOCKS ================= */
.line-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.2rem;
}
.line-nav a {
  display: inline-block;
  padding: .5rem 1.1rem;
  border: 1px solid var(--brown, #8a6d4f);
  border-radius: 999px;
  color: var(--brown, #8a6d4f);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.line-nav a:hover {
  background: var(--brown, #8a6d4f);
  color: var(--white, #fff);
}
.section--line .section-head h2 {
  font-size: 2rem;
}
.section--line {
  padding-bottom: .5rem;
}

/* ================= DROPDOWN NAV ================= */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  background: var(--cream, #faf6ef);
  border: 1px solid var(--beige, #e6dcc9);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(63,46,31,.14);
  padding: .4rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.has-dropdown .dropdown li { margin: 0; }
.has-dropdown .dropdown a {
  display: block;
  padding: .55rem 1.2rem;
  font-size: .9rem;
  color: var(--ink, #3a2f24);
  text-decoration: none;
  white-space: nowrap;
}
.has-dropdown .dropdown a:hover { background: var(--beige, #e6dcc9); }
.caret { font-size: .7em; }

@media (max-width: 640px) {
  .has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: none;
    padding: 0 0 0 1rem;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown .dropdown a { padding: .7rem 4%; }
}

/* ================= CLICKABLE PRODUCT CARDS ================= */
a.product-card.clickable {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.product-card.clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(63,46,31,.16);
}
a.product-card.clickable .product-body h3 { color: var(--ink, #3a2f24); }
