/* ================================================================
   Fani — Rustic Wood Furniture Portfolio
   Colors: cream (#FAF3E0), warm brown (#6B4F1A), golden (#D4A853),
           charcoal (#2C2C2C), forest green (#4A6741)
   Fonts:  Playfair Display (headings), Lato (body)
   ================================================================ */

/* ── Reset & base ── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
  color: #2C2C2C;
  background-color: #FFF8F0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #6B4F1A;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #4A6741;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  color: #3A2A0A;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

/* ── Layout helpers ── */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: #FAF3E0;
}

.text-center {
  text-align: center;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(107, 79, 26, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3A2A0A;
  letter-spacing: 0.02em;
}

.site-logo span {
  color: #4A6741;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: #2C2C2C;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #4A6741;
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4A6741;
}

.header-cta svg {
  width: 18px;
  height: 18px;
}

/* ── Mobile menu ── */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #2C2C2C;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(
    135deg,
    #3A2A0A 0%,
    #6B4F1A 40%,
    #8B6914 70%,
    #4A6741 100%
  );
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.01) 0px,
      rgba(255,255,255,0.01) 1px,
      transparent 1px,
      transparent 60px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.hero h1 {
  color: #FAF3E0;
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: rgba(250, 243, 224, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero .btn {
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
}

/* ── Sub-hero (interior pages) ── */

.sub-hero {
  padding: 8rem 1.5rem 3.5rem;
  background: linear-gradient(135deg, #3A2A0A, #6B4F1A);
  text-align: center;
}

.sub-hero h1 {
  color: #FAF3E0;
  margin-bottom: 0.75rem;
}

.sub-hero p {
  color: rgba(250, 243, 224, 0.75);
  font-size: 1.1rem;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: #4A6741;
  color: #FAF3E0;
}

.btn-primary:hover {
  background-color: #3d5736;
  color: #FAF3E0;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #FAF3E0;
  color: #FAF3E0;
}

.btn-outline:hover {
  background-color: #FAF3E0;
  color: #3A2A0A;
}

/* ── Section titles ── */

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  color: #6B6B6B;
  max-width: 560px;
  margin: 0 auto;
}

.section-title .accent-line {
  display: block;
  width: 60px;
  height: 3px;
  background-color: #D4A853;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ── Portfolio grid ── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid #D4A853;
  border-radius: 30px;
  background: transparent;
  color: #6B4F1A;
  font-family: "Lato", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #D4A853;
  color: #FFF8F0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(107, 79, 26, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(107, 79, 26, 0.15);
}

.card-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

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

.portfolio-card:hover .card-image img {
  transform: scale(1.05);
}

/* Placeholder images (replace with real photos) */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C4A265 0%, #8B6914 50%, #6B4F1A 100%);
  position: relative;
}

.placeholder-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      85deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 12px
    );
}

.placeholder-img::after {
  content: attr(data-label);
  position: relative;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  color: rgba(250, 243, 224, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.card-body p {
  color: #6B6B6B;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Featured (home) ── */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* ── About / Values ── */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(74, 103, 65, 0.1);
  margin-bottom: 1.25rem;
}

.value-icon svg {
  width: 32px;
  height: 32px;
  stroke: #4A6741;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  color: #6B6B6B;
  font-size: 0.95rem;
}

/* ── Process ── */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #D4A853;
  color: #FFF8F0;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: #6B6B6B;
  font-size: 0.9rem;
}

/* ── About story ── */

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: #4A4A4A;
}

/* ── CTA banner ── */

.cta-banner {
  padding: 4.5rem 1.5rem;
  background: linear-gradient(135deg, #4A6741, #3d5736);
  text-align: center;
}

.cta-banner h2 {
  color: #FAF3E0;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(250, 243, 224, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ── Contact ── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3A2A0A;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #E8DCC8;
  border-radius: 4px;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  color: #2C2C2C;
  background-color: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4A6741;
}

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

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background-color: rgba(74, 103, 65, 0.1);
  border-left: 4px solid #4A6741;
  border-radius: 4px;
  color: #3A2A0A;
}

.form-error {
  display: none;
  padding: 1rem 1.25rem;
  background-color: rgba(180, 60, 60, 0.08);
  border-left: 4px solid #b43c3c;
  border-radius: 4px;
  color: #3A2A0A;
}

.contact-info {
  padding-top: 0.5rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(212, 168, 83, 0.15);
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
  stroke: #6B4F1A;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-item p {
  color: #4A4A4A;
  line-height: 1.5;
}

.info-item a {
  font-weight: 600;
}

/* ── Footer ── */

.site-footer {
  background-color: #2C2C2C;
  color: rgba(250, 243, 224, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  color: #FAF3E0;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(250, 243, 224, 0.5);
}

.footer-links h4 {
  color: #D4A853;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(250, 243, 224, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #D4A853;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 243, 224, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(250, 243, 224, 0.5);
}

/* ── Cookie notice ── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2C2C2C;
  color: rgba(250, 243, 224, 0.85);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  max-width: 600px;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  background-color: #4A6741;
  color: #FAF3E0;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.5rem; }

  .about-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(255, 248, 240, 0.98);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
