/* filename: public/css/styles.css */
/* Visual refresh (no functionality changes) */

/* Bootstrap primary override for coherent links/badges/etc. */
:root { --bs-primary: #0f766e; }

/* Base typography & smoothing */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*{ box-sizing:border-box }
html,body{ height:100%; overflow: visible; margin: 0; padding: 0; } /* Added padding: 0 to html and body to eliminate any default padding */

/* === Uniform floral background with soft white veil === */
html{
  background-image:
    linear-gradient(0deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.88) 100%),
    url("/assets/pattern.png");
  background-repeat: repeat, repeat;
  background-position: top left, top left;
  background-size: auto, 700px auto;
  background-attachment: fixed, fixed;
}

body{
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:#222;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  background-color: transparent; /* let the html background show through */
  overflow: visible;
}

/* Layout width */
.container{ max-width:1140px }

/* ===================== */
/* Sticky two-line header */
/* ===================== */
.site-header{
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(140%) blur(4px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  margin-top: 0; /* Ensure no top margin on header */
  padding-top: 0; /* Ensure no top padding on header */
}
.site-header .container{
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2px; /* Reduced row-gap from 6px to 2px to minimize vertical space */
  padding: 2px 16px; /* Further reduced vertical padding from 5px to 2px to save space */
}

/* Title row with phone */
.site-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align left or center as needed */
}

/* Title (first line) */
.site-title{
  display: inline-block;
  color:#0f766e !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); /* Slightly reduced font size to save vertical space */
  text-decoration: none;
  margin-right: 1rem; /* Spacing before phone */
}

/* Phone number */
.site-phone {
  color: #0f766e;
  font-weight: 800;
  font-size: clamp(0.9rem, 1.8vw, 1.3rem); /* Slightly reduced font size to save vertical space */
  white-space: nowrap;
}

/* Nav links (second line) */
.site-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.header-links a{
  color:#374151;
  font-weight: 600;
  text-decoration: none;
  font-size: clamp(0.9rem, 1.2vw, 1rem); /* Slightly reduced font size to save vertical space */
}
.header-links a:hover,
.header-links a:focus{
  color:var(--bs-primary);
  text-decoration: none;
}

/* Cards */
.card{
  background-color:#ffffff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,0.07);
}
.card-img-top{
  height:275px; object-fit:contain; background:#f6f7f9;
}
.card-title{ 
  font-weight:700; 
  letter-spacing:-0.01em;
  font-size: clamp(1rem, 1.4vw, 1.125rem); /* reference for header link size */
}

/* Carousel icons */
.carousel-control-prev-icon,.carousel-control-next-icon{
  filter: invert(1) grayscale(1) opacity(.8);
}

/* Typography */
h1,h2,h3,h4,h5{ color:#1f2937; margin-bottom:.35rem }
h1{ font-size:clamp(1.6rem,2.4vw,2.2rem) }
h2{ font-size:clamp(1.2rem,1.8vw,1.5rem) }
h3{ font-size:clamp(1.05rem,1.5vw,1.25rem) }
p{ color:#374151 }

/* Forms */
.form-control,.form-select,textarea{
  border-radius:12px; background:#f3f4f6; border:1px solid transparent;
  padding:12px 14px;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.form-control:focus,.form-select:focus,textarea:focus{
  background:#fff; border-color:var(--bs-primary);
  box-shadow:0 0 0 .25rem rgba(15,118,110,0.25); outline:none;
}
textarea{ resize:vertical }

/* Stripe element */
#card-element{
  background:#fff; border-radius:12px;
  border:1px solid rgba(0,0,0,0.08); padding:10px; max-width:520px;
}

/* Narrow inputs stay readable */
#email,#phone{ max-width:520px }

/* Buttons */
.btn{ border-radius:12px; font-weight:600 }
.btn-primary{
  background-color:var(--bs-primary); border-color:var(--bs-primary);
  box-shadow:0 8px 22px rgba(15,118,110,0.25);
}
.btn-primary:hover,.btn-primary:focus{ filter:brightness(1.05); border-color:var(--bs-primary) }
.btn-success{ border-radius:12px; box-shadow:0 8px 22px rgba(16,185,129,0.2) }

/* Alerts */
.alert-info{
  background:#ecfeff; color:#155e75; border-color:#a5f3fc; border-radius:12px;
}

/* Helpers */
.shadow-sm{ box-shadow:0 10px 30px rgba(0,0,0,0.07) !important }
.site-footer{ color:#6b7280; text-align:center; padding:24px 0 40px }

/* Accessibility */
:focus-visible{ outline:3px solid rgba(15,118,110,0.35); outline-offset:2px }

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; animation:none !important } }

/* === Checkout section card surface === */
#checkout{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  padding: 24px;
  margin-top: 40px;
}
#checkout h2{ margin-top: 0; }
#checkout h3{ margin-top: 18px; }
#selected-info.alert{ border-radius: 12px; }
#card-element{ background:#fff; }

/* Reviews section */
.reviews-section {
  max-width: 1200px;
  margin: 0 auto; /* Reduced top/bottom margin from 40px to 0 to minimize space */
  padding: 0; /* Reduced padding from 20px to 0 to minimize space */
}

.reviews-container .col-md-6 {
  margin-bottom: 15px; /* Reduced from 30px to 15px to save vertical space between cards */
}

.review-card {
  display: flex;
  align-items: flex-start;
  border-radius: 20px;
  padding: 15px; /* Reduced padding from 30px to 15px to make cards tighter */
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate left-right positioning */
}

@media (max-width: 767px) {
  .review-card, .review-card:nth-child(even) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.customer-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 767px) {
  .customer-photo {
    margin: 0 auto 20px;
  }
}

.review-content {
  flex: 1;
}

.customer-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 15px;
  position: relative;
}

.product-photo {
  width: 200px;
  height: auto;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: rotate(3deg); /* Creative tilt */
  transition: transform 0.3s ease;
}

.review-card:hover .product-photo {
  transform: rotate(0deg);
}

@media (max-width: 767px) {
  .product-photo {
    width: 100%;
    max-width: 300px;
    transform: none;
  }
}

/* Order page styles */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}
h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #212529;
}
.status {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
}
.status-pending {
  background-color: #fff3cd;
  color: #856404;
}
.status-complete {
  background-color: #d4edda;
  color: #155724;
}
.status-approved {
  background-color: #d4edda;
  color: #155724;
}
.status-changes {
  background-color: #f8d7da;
  color: #721c24;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.25rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.info-item {
  margin-bottom: 0.5rem;
}
.info-label {
  font-weight: 700;
}
.pre-text {
  white-space: pre-wrap;
  margin-bottom: 0.5rem;
}
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
  gap: 0.5rem;
}
.image-card {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  cursor: pointer;
}
.image-card img {
  width: 100%;
  height: auto;
  display: block;
}
.proof-section {
  margin-top: 1rem;
  text-align: center;
}
.proof-img-container {
  cursor: pointer;
}
.proof-img {
  max-width: 100%;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}
.btn-group {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.changes-form {
  margin-top: 0.5rem;
  display: none;
}
.changes-list {
  margin-top: 0.5rem;
}
.changes-item {
  background-color: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
}
.no-proof {
  text-align: center;
  font-style: italic;
  color: #6c757d;
}
@media (max-width: 576px) {
  .container {
    padding: 0.5rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Make lead paragraphs bolder and thicker */
.lead {
  font-weight: 700; /* Bolder font weight */
  letter-spacing: -0.02em; /* Slight tightening for thicker appearance */
}

.site-footer a { 
color: #374151; text-decoration: none; } .site-footer a:hover { color: var(--bs-primary); 
}

/* Global override for main container to reduce top margin and save vertical space */
main.container {
  margin-top: 0 !important; /* Reduced to 0 to eliminate space between header and main content */
}