﻿/* ============================================
   KELSO MATTRESS BY APPOINTMENT
   Global Styles & Theme
   ============================================ */

:root {
  --suede-red: #B91C1C;
  --suede-beige: #D4C5B9;
  --dark-grey: #3F3F3F;
  --light-grey: #F5F5F5;
  --white: #FFFFFF;
  --black: #000000;
  --accent-gold: #D4AF37;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-grey);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Montserrat:wght@400;500;600;700&family=Bebas+Neue&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-grey);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--dark-grey);
}

a {
  color: var(--suede-red);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--suede-beige);
  text-decoration: underline;
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */

.btn {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--suede-red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #8b1515;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.3);
}

.btn-secondary {
  background-color: var(--suede-beige);
  color: var(--dark-grey);
  border: 2px solid var(--dark-grey);
}

.btn-secondary:hover {
  background-color: var(--dark-grey);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--suede-red);
  border: 2px solid var(--suede-red);
}

.btn-outline:hover {
  background-color: var(--suede-red);
  color: var(--white);
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: var(--white);
  border-bottom: 3px solid var(--suede-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--suede-red);
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  color: var(--dark-grey);
  font-weight: 400;
  letter-spacing: 0.5px;
}

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

nav a {
  font-weight: 600;
  color: var(--dark-grey);
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--suede-red);
  text-decoration: none;
}

nav a.active {
  color: var(--suede-red);
  border-bottom: 2px solid var(--suede-red);
  padding-bottom: 0.25rem;
}

.header-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.phone-link {
  font-weight: 700;
  color: var(--suede-red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--suede-red);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 3px solid var(--suede-red);
    padding: 2rem;
    text-align: center;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--suede-red) 0%, rgba(185, 28, 28, 0.9) 100%), 
              url('../images/banner/showroom.png') center/cover no-repeat;
  background-blend-mode: overlay;
  color: var(--white);
  padding: 8rem 2rem;
  text-align: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 700px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: var(--light-grey);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero .btn {
  margin: 0.5rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  min-height: calc(100vh - 200px);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 4rem 2rem;
}

section.alternate {
  background-color: var(--light-grey);
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--suede-red);
}

/* ============================================
   PRODUCT GRID
   ============================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(185, 28, 28, 0.2);
}

.product-image {
  width: 100%;
  height: 250px;
  background-color: var(--light-grey);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.75rem;
  color: var(--suede-red);
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.product-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-grey);
  color: var(--dark-grey);
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features li::before {
  content: '✓ ';
  color: var(--suede-red);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ============================================
   FEATURES / BENEFITS SECTION
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--suede-red);
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-grey);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: var(--white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--suede-red);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group,
.radio-group {
  margin-bottom: 1rem;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  cursor: pointer;
  accent-color: var(--suede-red);
}

.checkbox-label,
.radio-label {
  font-size: 0.9rem;
  color: var(--dark-grey);
  cursor: pointer;
  margin: 0;
}

.disclaimer-text {
  font-size: 0.85rem;
  color: #666;
  background-color: var(--light-grey);
  padding: 1rem;
  border-left: 4px solid var(--suede-red);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-message {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--dark-grey);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--suede-red);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--light-grey);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--suede-red);
  text-decoration: none;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--light-grey);
}

.contact-info strong {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--suede-red);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--suede-beige);
  color: var(--dark-grey);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: var(--light-grey);
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin: 0 1rem;
  color: var(--light-grey);
}

/* ============================================
   UTILITIES
   ============================================ */

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

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }

.color-red {
  color: var(--suede-red);
}

.color-beige {
  color: var(--suede-beige);
}

.bg-red {
  background-color: var(--suede-red);
}

.bg-beige {
  background-color: var(--suede-beige);
}

.bg-light {
  background-color: var(--light-grey);
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 4rem 1rem;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

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

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .product-image {
    height: 200px;
  }

  .contact-info {
    flex-direction: column;
    align-items: flex-start;
  }
}
