/**
 * Artessence Custom Styles
 * Modern, warm Mexican-themed coffee shop design
 */

/* ================================
   CSS Variables
   ================================ */
:root {
  --artessence-primary: #C65D3B;
  --artessence-primary-hover: #A34829;
  --artessence-brown: #5C3D2E;
  --artessence-dark: #3D2516;
  --artessence-cream: #F5F0E8;
  --artessence-gold: #C9A227;
  --artessence-sage: #8B9A6B;
  --artessence-orange: #D2691E;
}

/* ================================
   Global Styles
   ================================ */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--artessence-primary);
  color: white;
}

/* ================================
   Header & Navigation
   ================================ */
.superbthemes-navigation-004 {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* Navigation links hover effect */
.wp-block-navigation a {
  position: relative;
  transition: color 0.3s ease;
}

.wp-block-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--artessence-primary);
  transition: width 0.3s ease;
}

.wp-block-navigation a:hover::after {
  width: 100%;
}

/* Order Now button pulse effect */
.order-now-btn .wp-block-button__link {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(198, 93, 59, 0.3);
}

.order-now-btn .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 93, 59, 0.4);
}

/* ================================
   Buttons
   ================================ */
.wp-block-button__link {
  transition: all 0.3s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--artessence-primary) !important;
  color: white !important;
  border-color: var(--artessence-primary) !important;
}

/* ================================
   Hero Section
   ================================ */
.wp-block-cover {
  position: relative;
}

.wp-block-cover::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ================================
   Cards & Sections
   ================================ */
.wp-block-group[style*="border-radius"] {
  overflow: hidden;
}

/* Card hover effects */
.wp-block-columns .wp-block-group.has-contrast-light-background-color {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-columns .wp-block-group.has-contrast-light-background-color:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ================================
   Images
   ================================ */
.wp-block-image img {
  transition: transform 0.5s ease;
}

.wp-block-image:hover img {
  transform: scale(1.02);
}

.wp-block-image.has-custom-border {
  overflow: hidden;
}

/* Gallery hover effect */
.wp-block-gallery .wp-block-image {
  overflow: hidden;
}

.wp-block-gallery .wp-block-image img:hover {
  transform: scale(1.05);
}

/* ================================
   Typography Enhancements
   ================================ */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ================================
   Forms
   ================================ */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--artessence-primary) !important;
  box-shadow: 0 0 0 3px rgba(198, 93, 59, 0.1);
}

/* ================================
   Contact Form 7 Styling
   ================================ */
.wpcf7 {
  max-width: 100%;
}

.wpcf7-form p {
  margin-bottom: 20px;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--artessence-dark);
  font-size: 14px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--artessence-primary);
  box-shadow: 0 0 0 4px rgba(198, 93, 59, 0.1);
}

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

/* Checkboxes and Radio Buttons */
.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 8px;
}

.wpcf7-form .wpcf7-checkbox label,
.wpcf7-form .wpcf7-radio label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
  margin-bottom: 0;
}

.wpcf7-form .wpcf7-checkbox input[type="checkbox"],
.wpcf7-form .wpcf7-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--artessence-primary);
  cursor: pointer;
}

/* File Upload */
.wpcf7-form input[type="file"] {
  width: 100%;
  padding: 20px;
  border: 2px dashed #d0d0d0;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.wpcf7-form input[type="file"]:hover {
  border-color: var(--artessence-primary);
  background: #fff5f2;
}

.wpcf7-form input[type="file"]::file-selector-button {
  background: var(--artessence-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 15px;
  transition: background 0.3s ease;
}

.wpcf7-form input[type="file"]::file-selector-button:hover {
  background: var(--artessence-primary-hover);
}

/* Submit Button */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
  background: var(--artessence-primary);
  color: white;
  border: none;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
  background: var(--artessence-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 93, 59, 0.3);
}

/* Center the submit button */
.wpcf7-form p:last-of-type {
  text-align: center;
  margin-top: 30px;
}

/* Validation Messages */
.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
}

.wpcf7-response-output {
  border-radius: 8px !important;
  padding: 15px 20px !important;
  margin: 20px 0 0 !important;
}

.wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--artessence-sage) !important;
  background: rgba(139, 154, 107, 0.1);
  color: #5a6b47;
}

.wpcf7-form.invalid .wpcf7-response-output {
  border-color: #dc3545 !important;
  background: rgba(220, 53, 69, 0.1);
}

/* Required asterisk styling */
.wpcf7-form .required,
.wpcf7-form abbr[title="required"] {
  color: var(--artessence-primary);
  text-decoration: none;
}

/* ================================
   Footer
   ================================ */
footer.wp-block-template-part {
  border-top: 1px solid rgba(0,0,0,0.05);
}

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

.wp-block-cover__inner-container > * {
  animation: fadeInUp 0.8s ease forwards;
}

.wp-block-cover__inner-container > *:nth-child(1) { animation-delay: 0.1s; }
.wp-block-cover__inner-container > *:nth-child(2) { animation-delay: 0.2s; }
.wp-block-cover__inner-container > *:nth-child(3) { animation-delay: 0.3s; }

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 781px) {
  /* Header: Keep logo and hamburger menu on same row */
  .superbthemes-navigation-004-columns-wrapper {
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
  }

  .superbthemes-navigation-004-columns-logo {
    flex-basis: auto !important;
    flex-shrink: 0;
  }

  /* Hide the Order Now button on mobile - it's in the hamburger menu */
  .superbthemes-navigation-004-columns-button {
    display: none !important;
  }

  /* Navigation column (hamburger icon) - auto width */
  .superbthemes-navigation-004-columns-nav {
    flex-basis: auto !important;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* Ensure the hamburger menu button is visible and properly sized */
  .wp-block-navigation__responsive-container-open {
    padding: 8px;
  }

  /* Stack content columns on mobile (not header) */
  main .wp-block-columns,
  .wp-block-group:not(.superbthemes-navigation-004) .wp-block-columns {
    flex-direction: column;
  }

  main .wp-block-column,
  .wp-block-group:not(.superbthemes-navigation-004) .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ================================
   Accessibility
   ================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--artessence-primary);
  outline-offset: 2px;
}

/* ================================
   Print Styles
   ================================ */
@media print {
  .superbthemes-navigation-004,
  .order-now-btn,
  footer {
    display: none !important;
  }
}
