/* Swish Curtain Track - Custom Styles */

/* ===== FONTS ===== */
body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== HERITAGE TEAL COLOUR PALETTE =====
   Chosen for the curtain-track niche: refined, calm, and
   well-suited to British interiors. Classes are named "coral"
   for template compatibility but hold teal values. */
.bg-coral-100 {
    background-color: #e8f1f2;
}
.bg-coral-200 {
    background-color: #c7dfe2;
}
.bg-coral-500 {
    background-color: #2d6a70;
}
.bg-coral-600 {
    background-color: #1e4e54;
}
.text-coral-200 {
    color: #c7dfe2;
}
.text-coral-500 {
    color: #2d6a70;
}
.text-coral-600 {
    color: #1e4e54;
}
.border-coral-500 {
    border-color: #2d6a70;
}
.ring-coral-500 {
    --tw-ring-color: #2d6a70;
}

/* Override the orange gradient utility to match the palette */
.from-orange-50 { --tw-gradient-from: #edf5f3 var(--tw-gradient-from-position); --tw-gradient-to: rgb(237 245 243 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-orange-50 { --tw-gradient-to: rgb(237 245 243 / 0)  var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #edf5f3 var(--tw-gradient-via-position), var(--tw-gradient-to); }
.to-orange-50 { --tw-gradient-to: #edf5f3 var(--tw-gradient-to-position); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }
.animate-fade-up-delay { animation: fadeUp 0.6s ease-out 0.2s forwards; opacity: 0; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-pulse { animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ===== HEADER STYLES ===== */
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ===== MOBILE MENU TRANSITIONS ===== */
#mobile-menu { transition: all 0.3s ease-in-out; }
#mobile-menu.open { display: block; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f5f5f4; }
::-webkit-scrollbar-thumb { background: #a8a29e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #78716c; }

/* ===== FOCUS STYLES ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #2d6a70;
    outline-offset: 2px;
}

/* ===== FORM INPUT STYLES ===== */
input::placeholder { color: #a8a29e; }
input:focus { outline: none; }

/* ===== CARD HOVER EFFECTS ===== */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===== SECTION SPACING ===== */
.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) {
    .section-padding { padding-top: 6rem; padding-bottom: 6rem; }
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background-color: #2d6a70;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgb(45 106 112 / 0.3);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(45 106 112 / 0.3);
}

/* ===== TESTIMONIAL CAROUSEL (MOBILE) ===== */
#testimonial-carousel { position: relative; }
#testimonial-track { display: flex; transition: transform 0.3s ease; }
#testimonial-track > div { flex: 0 0 100%; padding: 0 1rem; }
.testimonial-dot {
    width: 8px; height: 8px; border-radius: 9999px;
    background-color: #d6d3d1;
    transition: background-color 0.3s ease; cursor: pointer;
}
.testimonial-dot.active { background-color: #2d6a70; }

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
    .hero-stats { flex-direction: column; gap: 1rem; }
    .hero-stats .w-px { width: 100%; height: 1px; }
}

/* ===== PRINT STYLES ===== */
@media print {
    header, footer, #mobile-menu, button, .no-print { display: none !important; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== SELECTION STYLES ===== */
::selection { background-color: #2d6a70; color: white; }
::-moz-selection { background-color: #2d6a70; color: white; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs a { color: #57534e; }
.breadcrumbs a:hover { color: #2d6a70; }
.breadcrumbs .separator { color: #a8a29e; margin: 0 0.5rem; }

/* ===== PROSE CONTENT (inner pages) ===== */
.prose-content p { margin-bottom: 1rem; line-height: 1.75; color: #44403c; }
.prose-content h2 { font-size: 1.875rem; font-weight: 700; color: #292524; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose-content h3 { font-size: 1.375rem; font-weight: 700; color: #292524; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-content ul, .prose-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: #44403c; }
.prose-content ul li { list-style-type: disc; margin-bottom: 0.5rem; line-height: 1.7; }
.prose-content ol li { list-style-type: decimal; margin-bottom: 0.5rem; line-height: 1.7; }
.prose-content strong { color: #1c1917; font-weight: 700; }
.prose-content a { color: #2d6a70; font-weight: 600; }
.prose-content a:hover { color: #1e4e54; text-decoration: underline; }
