@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Lato:wght@400;700&display=swap");

/* Global overflow fix to prevent horizontal scrolling */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Lato", sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  color: #333;
}

main {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Headings and Logo */
h1,
h2,
h3,
h4,
.logo {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: #000;
}

/* Paragraph text */
p {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em 3em;
  font-family: "Lato", sans-serif;
  background-color: white;
  border-bottom: 1px solid #eee;
}

header a.logo {
  font-family: "Dancing Script", cursive; /* Changed from Playfair Display */
  font-size: 2.8rem; /* Slightly larger for better visibility */
  font-weight: 600; /* Medium weight for elegance */
  text-decoration: none;
  letter-spacing: 1px; /* Slight spacing for readability */
  color: #000; /* Changed to black as requested */
  transition: color 0.3s ease;
}

header a.logo:hover {
  color: #d3ab9e; /* Hover effect to brand color */
}

/* Also update the footer logo to match if desired: */
.footer-logo h2 {
  font-family: "Dancing Script", cursive; /* Changed from Playfair Display */
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 2.5em;
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

header nav a {
  text-decoration: none;
  color: #000;
  transition: color 0.2s ease;
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #d3ab9e;
  transition: width 0.3s ease;
}

header nav a:hover {
  color: #d3ab9e;
}

header nav a:hover::after {
  width: 100%;
}

.hero-section .hero-title {
  font-size: 3.5rem;
  margin-bottom: 0.2em;
  color: white !important;
  padding-top: 14rem; /* push title lower on laptop/desktop */
}

/* Adjust hero overlay padding for larger screens */
@media (min-width: 992px) and (max-width: 1399px) {
  .hero-content-overlay {
    padding: 5em 2.5em 4em 2.5em !important;
  }
  .hero-section .hero-title {
    font-size: 3.8rem;
    padding-top: 12rem;
  }
  .hero-section .hero-text {
    font-size: 1.25rem;
  }
}

@media (min-width: 1400px) {
  .hero-content-overlay {
    padding: 6em 3em 5em 3em !important;
  }
  .hero-section .hero-title {
    font-size: 4.2rem;
    padding-top: 13rem;
  }
  .hero-section .hero-text {
    font-size: 1.3rem;
    max-width: 720px;
  }
}

.hero-section .hero-text {
  font-size: 1.2rem;
  max-width: 600px;
  color: white !important;
  margin-top: 0;
}
.site-footer {
  background-color: #d3ab9e;
  color: white;
  padding: 4em 2em 2em;
  font-family: "Lato", sans-serif; /* Changed to match header */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3em;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-logo h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem; /* Increased to match logo size */
  margin: 0;
  color: white;
}

.footer-column h3 {
  font-family: "Lato", serif;
  font-size: 1.2rem;
  margin-bottom: 1em;
  color: white;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 1em;
}

.footer-column a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s ease;
}

.footer-column a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.footer-column a:hover::after {
  width: 100%;
}

.footer-column a:hover {
  text-decoration: none;
}

.circle-icon {
  background: white;
  color: #d3ab9e;
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  margin-right: 0.5em;
  font-weight: bold;
  font-family: sans-serif;
}

.newsletter-form {
  display: flex;
  border: 2px solid white;
  padding: 0.5em;
}

.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
  padding: 0.5em;
}

.newsletter-form input::placeholder {
  color: white;
  opacity: 0.7;
}

.newsletter-form button {
  border: none;
  background: transparent;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  margin-top: 3em;
  font-size: 1rem; /* Made bigger */
  font-family: "Lato", sans-serif;
  opacity: 0.95;
}

.service-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* This creates a 4:5 aspect ratio */
  overflow: hidden;
}

.service-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.service-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-slider {
  position: relative;
  max-width: 100%;
  margin: 2em auto;
  padding: 0 16px;
  color: white;
  font-family: Lato, sans-serif;
}

.testimonial {
  opacity: 0;
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.testimonial.active {
  opacity: 1;
  display: block;
}

.testimonial-button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  transition: color 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.testimonial-button:hover {
  color: #d3ab9e;
  background-color: rgba(255, 255, 255, 0.1);
}

.testimonial-button.prev {
  left: -50px;
}

.testimonial-button.next {
  right: -50px;
}

/* Hero specific animations */
.hero-section.fade-in {
  opacity: 1;
  overflow: hidden;
}

/* Keep the fade for hero text elements */
.hero-section .hero-title.fade-in,
.hero-section .hero-text.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.hero-section .hero-title.fade-in.visible,
.hero-section .hero-text.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keep existing general animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Base image fade animation */
.image-fade {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.image-fade.visible {
  opacity: 1;
  transform: scale(1);
}

/* Service section specific animations */
.service-item:nth-child(1) .image-fade {
  transition-delay: 0.6s;
}

.service-item:nth-child(2) .image-fade {
  transition-delay: 1.2s;
}

.service-item:nth-child(3) .image-fade {
  transition-delay: 1.8s;
}

.service-item:nth-child(4) .image-fade {
  transition-delay: 2.4s;
}

/* Text appears after its corresponding image */
.service-item:nth-child(1) .fade-in {
  transition-delay: 0.8s;
}

.service-item:nth-child(2) .fade-in {
  transition-delay: 1.4s;
}

.service-item:nth-child(3) .fade-in {
  transition-delay: 2s;
}

.service-item:nth-child(4) .fade-in {
  transition-delay: 2.6s;
}

/* Cart notification styles */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1em 1.5em;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Lato", sans-serif;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
}

.cart-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.cart-notification.success {
  background-color: #d3ab9e;
  color: white;
}

.cart-notification.error {
  background-color: #e74c3c;
  color: white;
}

/* ============================================
   CHECKOUT FULFILLMENT OPTIONS
   ============================================ */

.checkout-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em;
}

.checkout-description {
  color: #666;
  margin-bottom: 2em;
  font-size: 0.95em;
  text-align: center;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 1.5em 0;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 1.5em;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
}

.radio-option:hover {
  border-color: #d3ab9e;
  background-color: #faf8f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.radio-option input[type="radio"] {
  margin-top: 0.2em;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #d3ab9e;
}

.radio-option input[type="radio"]:checked ~ .option-content {
  color: #000;
}

.radio-option:has(input:checked) {
  border-color: #d3ab9e;
  background-color: #faf8f7;
  box-shadow: 0 4px 12px rgba(211, 171, 158, 0.2);
}

.option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.option-content strong {
  font-size: 1.1em;
  color: #333;
  display: block;
}

.option-content small {
  color: #666;
  font-size: 0.9em;
}

.checkout-note {
  font-size: 0.85em;
  color: #888;
  font-style: italic;
  margin-top: 1em;
  text-align: center;
}

.form-section {
  margin-bottom: 2em;
}

.form-section h3 {
  font-size: 1.3em;
  margin-bottom: 1em;
  color: #333;
}

.checkout-summary {
  background-color: #f9f9f9;
  padding: 1.5em;
  border-radius: 8px;
  margin: 2em 0;
}

.checkout-summary h3 {
  margin-top: 0;
  font-size: 1.2em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0;
  font-size: 1em;
}

.summary-row.total-row {
  border-top: 2px solid #d3ab9e;
  margin-top: 0.5em;
  padding-top: 1em;
  font-weight: bold;
  font-size: 1.2em;
}

.form-actions {
  display: flex;
  gap: 1em;
  justify-content: space-between;
  margin-top: 2em;
}

.btn-primary,
.btn-secondary {
  padding: 1em 2em;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-primary {
  background-color: #d3ab9e;
  color: white;
}

.btn-primary:hover {
  background-color: #c19484;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 171, 158, 0.3);
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: #fff;
  color: #333;
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  border-color: #d3ab9e;
  color: #d3ab9e;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .checkout-form-container {
    padding: 1em;
  }

  .radio-option {
    padding: 1em;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* Square Shop Banner Styles */
.square-shop-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin: 0 auto 2em;
  max-width: 1200px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  animation: slideDown 0.5s ease-out;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding: 1.5em 2em;
  color: white;
}

.banner-icon {
  font-size: 3rem;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

.banner-text {
  flex: 1;
}

.banner-text strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.3em;
  font-weight: 700;
}

.banner-text p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.95rem;
}

.square-shop-btn {
  background-color: white;
  color: #667eea;
  padding: 0.8em 1.8em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.square-shop-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #764ba2;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Mobile responsiveness for Square Shop Banner */
@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5em 1em;
    gap: 1em;
  }

  .banner-icon {
    font-size: 2.5rem;
  }

  .banner-text strong {
    font-size: 1.1rem;
  }

  .banner-text p {
    font-size: 0.85rem;
  }

  .square-shop-btn {
    width: 100%;
    padding: 1em;
  }
}
