/* ============================
   Fallen Timbers – Base Styles
   ============================ */

/* Palette */
:root{
  --gumleaf:#A9C1B1;
  --eucalyptus:#6E8F7A;
  --bark:#6B4F3A;
  --sand:#EDE8E3;
  --charcoal:#2F3A3E;
  --offwhite:#FAF8F6;
  --white:#fff;

  --radius:16px;
  --shadow:0 10px 24px rgba(0,0,0,.08);
}

/* Reset-ish */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--offwhite);
  color:var(--charcoal);
  font-family:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height:1.6;
  font-size:16px;
}
h1,h2,h3{
  font-family:"Playfair Display", serif;
  line-height:1.25;
  color:var(--eucalyptus);
  margin:0 0 .5rem;
}
h1{font-size:clamp(28px, 4vw, 44px)}
h2{font-size:clamp(22px, 3vw, 32px)}
h3{font-size:clamp(18px, 2.2vw, 24px)}
p{margin:0 0 1rem}
img{max-width:100%; height:auto; display:block}
a{color:var(--eucalyptus); text-decoration:none}
a:hover{opacity:.9}

/* Layout helpers */
.container{width:min(1200px, 92%); margin-inline:auto}
.section-pad{padding:64px 0}
.bg-sand{background:var(--sand)}
.center{text-align:center}
.muted{opacity:.8}

/* Buttons */
.btn{
  display:inline-block;
  padding:.8rem 1.1rem;
  border-radius:999px;
  font-weight:600;
  border:2px solid transparent;
  transition:transform .05s ease, opacity .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--eucalyptus); color:var(--white)}
.btn-outline{border-color:var(--eucalyptus); color:var(--eucalyptus); background:transparent}

/* ============================
   Header / Navigation
   ============================ */

.site-header{
  position: sticky;
  top: 0;
  z-index: 900;                   /* lower than logo badge */
  background: var(--white);
  border-bottom: 1px solid #eae6e1;
  overflow: visible;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:.75rem 0;
  position:relative;
}

/* Navigation links */
.main-nav{
  flex:1;
  display:flex;
  justify-content:flex-end;
}
.nav-list{
  display:flex;
  gap:2.75rem;
  align-items:center;
  list-style:none;
  margin:0;
  padding:0;
}

/* Hide menu toggle on desktop */
.main-nav .menu-toggle{display:none}

/* Mobile nav */
@media (max-width:860px){
  .nav{
    justify-content:space-between;
  }
  .main-nav .menu-toggle{
    display:inline-block;
    background:none;
    border:1px solid #ddd;
    border-radius:999px;
    padding:.35rem .75rem;
    font-size:.9rem;
  }
  .nav-list{
    position:absolute;
    right:4%;
    top:64px;
    flex-direction:column;
    align-items:flex-start;
    background:var(--white);
    padding:.75rem;
    border-radius:14px;
    box-shadow:var(--shadow);
    display:none;
    min-width:220px;
  }
  .nav-list.show{display:flex}
}

/* ============================
   Hero + Frosted Badge
   ============================ */

.hero-full{
  position: relative;
  height: 50vh;
  min-height: 430px;
  background: url("../images/hero-bg.png") center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: visible;
}

/* Soft fog fade at top */
.hero-full::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:220px;
  background:linear-gradient(to bottom,
    rgba(250,248,246,1) 0%,
    rgba(250,248,246,0.7) 20%,
    rgba(250,248,246,0) 100%);
  z-index:1;
  pointer-events:none;
}

/* Frosted circular logo */
.brand-badge {
  position: absolute;
  top: -70px;
  left: 150px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1200;
  transition: transform .25s ease, backdrop-filter .3s ease;
}

.brand-badge img {
  height: 190px;
  width: auto;
  display: block;
}

.brand-badge:hover{
  transform:translateY(-3px);
  backdrop-filter:blur(20px);
}

/* Hero overlay */
.hero-overlay{
  background:rgba(0,0,0,0.35);
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 1.5rem;
}
.hero-content{
  position:relative;
  z-index:2;
  max-width:800px;
  opacity:0;
  animation:fadeUp 1.8s ease-out forwards;
  animation-delay:.2s;
}
.hero-content h1{
  font-family:"Playfair Display",serif;
  font-weight:500;
  letter-spacing:.5px;
  font-size:clamp(1.8rem,4vw,2.8rem);
  line-height:1.25;
  color:var(--white);
  margin-bottom:.75rem;
  text-shadow:0 2px 6px rgba(0,0,0,0.3);
}
.hero-content p{
  font-family:"Inter",sans-serif;
  font-size:1.05rem;
  font-weight:300;
  color:rgba(255,255,255,0.92);
  max-width:700px;
  margin:0 auto 1.5rem;
}
.hero-actions .btn{margin:0 .5rem}

/* Mobile adjustments */
@media (max-width:640px){
  .brand-badge{
    position:static;
    width:auto;
    height:auto;
    border:0;
    box-shadow:none;
    background:transparent;
    margin-bottom:1rem;
  }
  .brand-badge img{height:48px}
}

.page-hero {
  position: relative;
}

/* push text down so it doesn't crash into the badge */
.page-hero-text {
  max-width: 640px;
  margin-top: 50px;
  text-align: center;     /* centre heading + paragraph */
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .page-hero-text {
    margin-top: 40px;
  }
}

/* ============================
   Story
   ============================ */
.story-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:36px;
  align-items:center;
}
.story-image img{
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  object-fit:cover;
  width:100%;
  height:100%;
  max-height:450px;
}
.story-copy p{max-width:65ch}
.link-arrow{font-weight:600;display:inline-flex;gap:.35rem;align-items:center}
.link-arrow::after{content:"→"}
@media (max-width:960px){.story-grid{grid-template-columns:1fr}}

/* ============================
   Category Tiles
   ============================ */
.section-title{text-align:center;margin-bottom:1.5rem}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  justify-items: center;      /* centres tiles so they don’t bunch left */
}

.tile {
  position: relative;
  width: 100%;
  max-width: 230px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  text-align: left;
}

.tile img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.92;
  transition:opacity .25s ease, transform .25s ease;
}

.tile span {
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  background:rgba(255,255,255,.9);
  color:var(--charcoal);
  padding:.45rem .6rem;
  border-radius:10px;
  font-weight:600;
  font-size:.9rem;
}

.tile:hover img{
  opacity:.98;
  transform:scale(1.02);
}

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

/* ============================
   Cards (for other pages if needed)
   ============================ */
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--white);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.card-body{padding:14px}
.card-title{margin-bottom:.25rem}
.card-text{opacity:.85}
@media (max-width:960px){.card-grid{grid-template-columns:1fr}}

/* Species cards on timber page */
.species-grid .card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.species-grid .card img{
  width:100%;
  height:140px;          /* tweak 130–150px if you want */
  object-fit:cover;      /* crops nicely, no distortion */
  flex-shrink:0;
  display:block;
}

.species-grid .card-body{
  flex:1;
  padding:16px;
}

/* ============================
   Values Strip — Slimmer Version
   ============================ */

.values {
  background: var(--sand);
  padding: 36px 0;          /* reduced vertical height */
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* Smaller value cards */
.value {
  flex: 1 1 180px;
  max-width: 200px;
  background: var(--white);
  border: 1px solid #e0dbd5;
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.value:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Icon bubbles */
.value-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--white);            /* svg stroke will be white */
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* INDIVIDUAL COLOURS – these bring your greens/browns back */
.value-leaf  { background:#7c9f88; }   /* sustainability */
.value-hand  { background:#b48967; }   /* handcrafted */
.value-truck { background:#8fa49b; }   /* delivery */
.value-custom{ background:#b69a7c; }   /* custom */

.value-icon svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* subtle shimmer on hover – optional but pretty */
.value-icon::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,
      rgba(255,255,255,0) 30%,
      rgba(255,255,255,0.3) 60%,
      rgba(255,255,255,0) 80%);
  transform:translateX(-100%);
  transition:transform 0.6s ease;
}
.value:hover .value-icon::after{
  transform:translateX(100%);
}

/* Mobile adjustments */
@media (max-width: 960px) {
  .values-row {
    flex-direction: row;
    justify-content: center;
  }

  .value {
    flex: 1 1 140px;
    max-width: 180px;
  }
}

/* ============================
   Gallery carousel (home)
   ============================ */

.gallery-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-track-wrapper {
  overflow: hidden;
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

/* Thumbnails – smaller than shop tiles */
.gallery-thumb {
  flex: 0 0 auto;
  width: 140px;           /* shop tiles are ~230px max; this is smaller */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.04);
  opacity: 1;
}

/* Nav arrows */
.gallery-nav {
  border: none;
  background: var(--white);
  color: var(--charcoal);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.gallery-nav:hover {
  background: var(--gumleaf);
  transform: translateY(-1px);
}

.gallery-nav:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

/* Mobile: hide arrows and allow swipe/scroll */
@media (max-width: 640px) {
  .gallery-carousel {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    display: none;
  }

  .gallery-track-wrapper {
    overflow-x: auto;
  }

  .gallery-track {
    padding-bottom: 0.25rem;
  }
}

/* ============================
   Enquiry Form – Fallen Timbers
   ============================ */

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.enquiry-form label {
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #d7d2cb;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: var(--eucalyptus);
  box-shadow: 0 0 0 3px rgba(110,143,122,0.25);
  outline: none;
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 140px;
}

.enquiry-form button[type="submit"] {
  align-self: flex-start;
}

/* ============================
   Footer
   ============================ */
.site-footer{
  background:var(--white);
  border-top:1px solid #e9e5df;
  padding:28px 0;
  color:var(--charcoal);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:18px;
  align-items:start;
}
.footer-brand{
  display:flex;
  flex-direction:column;
  gap:.25rem;
  align-items:flex-start;   /* add this */
}
.footer-brand img {
  height: 80px;
  width: auto;
}
.footer-copy{
  font-size:.8rem;
}
.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:.4rem;
}
.footer-links a{opacity:.9}
.social-links{
  list-style:none;
  display:flex;
  gap:10px;
  padding:0;
  margin:0;
}
.social-circle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:var(--gumleaf);
  color:var(--white);
  transition:background .25s ease, transform .15s ease;
}
.social-circle:hover{background:var(--eucalyptus);transform:translateY(-2px)}
.social-circle svg{width:20px;height:20px;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:960px){
  .footer-grid{grid-template-columns:1fr}
}

/* ============================
   Animations
   ============================ */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(25px)}
  to{opacity:1;transform:translateY(0)}
}