/* FURNISHINGS DIRECT LTD — Main Stylesheet */

:root {
  --color-white: #ffffff;
  --color-off-white: #faf9f7;
  --color-grey-50: #f4f3f1;
  --color-grey-100: #ebe9e6;
  --color-grey-200: #d6d3ce;
  --color-grey-400: #9a9590;
  --color-grey-600: #5c5854;
  --color-grey-800: #2e2c2a;
  --color-wood: #8b7355;
  --color-wood-light: #a89070;
  --color-wood-dark: #6b5742;
  --color-wood-soft: #c4a882;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --shadow-sm: 0 2px 8px rgba(46, 44, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(46, 44, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(46, 44, 42, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 72px;
  --transition: 0.3s ease;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-grey-800);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-wood-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-wood);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-wood);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-grey-800);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--color-grey-600);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--grey {
  background-color: var(--color-grey-50);
}

.section--wood {
  background: linear-gradient(135deg, var(--color-wood-dark) 0%, var(--color-wood) 100%);
  color: var(--color-white);
}

.section--wood h2,
.section--wood h3,
.section--wood p {
  color: var(--color-white);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__header p {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
}

.section__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-wood);
  margin-bottom: 0.75rem;
}

/* —— Navigation —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-grey-100);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-grey-800);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__logo span {
  color: var(--color-wood);
  font-weight: 400;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-grey-800);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-grey-600);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-wood-dark);
  background: var(--color-grey-50);
}

.nav__cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--color-wood);
  color: var(--color-white) !important;
  border-radius: 8px;
  font-weight: 500;
}

.nav__cta:hover {
  background: var(--color-wood-dark);
  color: var(--color-white) !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(46, 44, 42, 0.45) 0%,
    rgba(46, 44, 42, 0.55) 50%,
    rgba(46, 44, 42, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 3rem 1.25rem;
  max-width: 800px;
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero--page {
  min-height: 42vh;
  min-height: 42svh;
}

.hero--page .hero__content h1 {
  margin-bottom: 0.5rem;
}

.hero--page .hero__content p {
  margin-bottom: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-wood);
  color: var(--color-white);
  border-color: var(--color-wood);
}

.btn--primary:hover {
  background: var(--color-wood-dark);
  border-color: var(--color-wood-dark);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-grey-800);
  border-color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-wood-dark);
  border-color: var(--color-wood);
}

.btn--secondary:hover {
  background: var(--color-wood);
  color: var(--color-white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* —— Cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-grey-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-grey-100);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.5rem;
}

.card__body h3 {
  margin-bottom: 0.5rem;
}

.card__body p {
  font-size: 0.9375rem;
}

.card--icon {
  text-align: center;
  padding: 2rem 1.5rem;
}

.card--icon .card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--color-grey-50);
  border-radius: 50%;
  color: var(--color-wood);
}

.card--icon .card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card--flat {
  box-shadow: none;
  background: var(--color-grey-50);
}

.card--flat:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* —— Intro / Two-column —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-md);
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__content .section__label {
  text-align: left;
}

.split__content h2 {
  margin-bottom: 1rem;
}

.split__content p + p {
  margin-top: 1rem;
}

.split__content .btn {
  margin-top: 1.5rem;
}

/* —— Feature list —— */
.feature-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-grey-50);
  border-radius: 10px;
  color: var(--color-wood);
}

.feature-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feature-item p {
  font-size: 0.9rem;
}

/* —— Commitment banner —— */
.commitment {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.commitment h2 {
  margin-bottom: 1rem;
}

.commitment p {
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
  opacity: 0.92;
}

.commitment .btn--outline:hover {
  color: var(--color-wood-dark);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  background: var(--color-grey-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-grey-100);
}

.contact-info h2 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail:last-child {
  margin-bottom: 0;
}

.contact-detail__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-wood);
  margin-bottom: 0.35rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 1.0625rem;
  color: var(--color-grey-800);
  line-height: 1.6;
}

.contact-detail a:hover {
  color: var(--color-wood);
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-grey-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form h2 {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.contact-form > p {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-grey-800);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-grey-800);
  background: var(--color-off-white);
  border: 1px solid var(--color-grey-200);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-wood);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
  outline: none;
  background: var(--color-white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--color-grey-400);
  margin-top: 1rem;
}

.form-message {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.form-message--success {
  display: block;
  background: #f0f7f0;
  color: #2d5a2d;
  border: 1px solid #c5dfc5;
}

/* —— Legal pages —— */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.legal h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal li {
  margin-bottom: 0.75rem;
  color: var(--color-grey-600);
}

.legal ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .updated {
  font-size: 0.875rem;
  color: var(--color-grey-400);
  margin-bottom: 2rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--color-grey-800);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer__brand span {
  color: var(--color-wood-soft);
}

.footer__about {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.65);
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--color-wood-soft);
}

.footer__address {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  font-style: normal;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  font-size: 0.875rem;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.5);
}

/* —— Fade-in animations —— */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

/* —— Skip link —— */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-wood);
  color: var(--color-white);
  border-radius: 0 0 8px 8px;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split__image {
    order: -1;
    max-height: 360px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-white);
    padding: 1rem;
    border-bottom: 1px solid var(--color-grey-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition),
      visibility var(--transition);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 0.85rem 1rem;
  }

  .nav__cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .hero {
    min-height: 70vh;
    min-height: 70svh;
  }

  .hero--page {
    min-height: 36vh;
    min-height: 36svh;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
