/* ============================================================
   Plaster Centre – Custom CSS
   Brand colours: Red #C8102E · Blue #2B3990 · Dark #1A1A2E
   ============================================================ */

/* Typography base */
body { font-family: 'Open Sans', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

/* ══════════════════════════════════════════════════════
   EYE-CATCHING ANNOUNCEMENT RIBBON
══════════════════════════════════════════════════════ */
@keyframes ribbonShimmer {
    0%   { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(250%) skewX(-15deg); }
}
@keyframes ribbonPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.85; }
}
@keyframes starSpin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.ribbon-bar {
    background: linear-gradient(90deg,
        #8B0000 0%,
        #C8102E 20%,
        #E8182E 40%,
        #C8102E 60%,
        #A00D24 80%,
        #8B0000 100%
    );
    background-size: 200% 100%;
    animation: ribbonPulse 3s ease-in-out infinite;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 3px 12px rgba(200,16,46,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

.ribbon-shimmer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.2) 50%,
        transparent 70%
    );
    animation: ribbonShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

.ribbon-text {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.ribbon-star {
    color: #FFD700;
    font-size: 0.85rem;
    animation: starSpin 4s linear infinite;
    display: inline-block;
    text-shadow: 0 0 8px rgba(255,215,0,0.8);
}

.ribbon-btn {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}
.ribbon-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
    transform: scale(1.04);
    box-shadow: 0 2px 12px rgba(255,255,255,0.2);
}

.ribbon-contact-link {
    color: rgba(255,255,255,0.85);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: color 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.ribbon-contact-link:hover { color: #fff; }

.ribbon-social {
    color: rgba(255,255,255,0.75);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.ribbon-social:hover {
    color: #FFD700;
    transform: scale(1.15);
}

/* ══════════════════════════════════════════════════════
   WHITE NAV (matching original theme)
══════════════════════════════════════════════════════ */
.nav-link-white {
    color: #374151;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.85rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
}
.nav-link-white:hover {
    color: #C8102E;
    background-color: rgba(200,16,46,0.06);
}
.nav-active-white {
    color: #C8102E;
    background-color: rgba(200,16,46,0.08);
}
.nav-active-white::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: #C8102E;
    border-radius: 1px;
}

.mobile-nav-link {
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}
.mobile-nav-link:hover {
    color: #C8102E;
    background-color: rgba(200,16,46,0.06);
}

/* ── Navigation (dark, legacy — kept for reference) ── */
.nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nav-link:hover { color: #fff; }
.nav-active { color: #fff; border-bottom: 2px solid #C8102E; }

/* ── Buttons ── */
.btn-primary {
    background-color: #C8102E;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover { background-color: #A00D24; }

.btn-secondary {
    background-color: #2B3990;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary:hover { background-color: #1E2866; }

.btn-outline {
    border: 2px solid #C8102E;
    color: #C8102E;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}
.btn-outline:hover { background-color: #C8102E; color: #fff; }

/* ── Section helpers ── */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1A1A2E;
}
@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
}

.section-subtitle {
    color: #2B3990;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

/* ── Card ── */
.card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
    overflow: hidden;
}
.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* ── Forms ── */
.form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    transition: all 0.2s;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}
.form-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #2B3990;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

/* ── Plaster texture background ── */
.texture-bg {
    background-color: #f8f6f0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8102E' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
══════════════════════════════════════════════════════ */
@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 3.25rem;
    height: 3.25rem;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    animation: waPulse 2.5s ease-in-out infinite;
    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
}
.whatsapp-fab:hover {
    background: #1ebe5d;
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 0.65rem);
    background: #1A1A2E;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.35rem 0.7rem;
    border-radius: 0.375rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.2s, transform 0.2s;
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1A1A2E;
    border-right: none;
}
.whatsapp-fab:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE OVERRIDES
══════════════════════════════════════════════════════ */

/* Ensure all images don't overflow */
img { max-width: 100%; height: auto; }

/* Better tap targets on mobile */
@media (max-width: 640px) {
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 0.65rem 1.2rem;
        font-size: 0.875rem;
    }

    .section-title { font-size: 1.5rem; }

    /* Hero: smaller text on phones */
    h1.font-heading { font-size: 1.85rem; line-height: 1.15; }

    /* Cards: tighter radius on mobile */
    .card { border-radius: 0.625rem; }

    /* Form inputs: prevent iOS zoom (min 16px) */
    .form-input, select, textarea,
    input[type="text"], input[type="email"],
    input[type="tel"], input[type="number"],
    input[type="date"], input[type="password"],
    input[type="search"] {
        font-size: 1rem !important;
    }

    /* FAB: smaller on mobile */
    .whatsapp-fab { width: 3rem; height: 3rem; bottom: 1rem; right: 1rem; }
    .whatsapp-tooltip { display: none; }

    /* Ribbon text on mobile */
    .ribbon-text { font-size: 0.7rem; letter-spacing: 0.06em; }

    /* Sidebar sticky behaviour: disable on mobile */
    .sticky { position: relative !important; top: auto !important; }

    /* Table overflow */
    table { display: block; overflow-x: auto; }

    /* Reduce prose line spacing on mobile */
    .prose { font-size: 0.95rem; }
}

/* Tablet tweaks */
@media (min-width: 641px) and (max-width: 1023px) {
    .section-title { font-size: 1.85rem; }
    h1.font-heading { font-size: 2.75rem; }
}

/* Keep hero min-height reasonable on short screens */
@media (max-height: 700px) {
    .min-h-screen { min-height: 600px; }
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-8px) rotate(2deg); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseRed {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(200,16,46,0); }
}
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes rotateSlowReverse {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

/* Animation utility classes */
.animate-fade-up          { animation: fadeInUp 0.7s ease both; }
.animate-fade-left        { animation: fadeInLeft 0.7s ease both; }
.animate-fade-right       { animation: fadeInRight 0.7s ease both; }
.animate-zoom-in          { animation: zoomIn 0.6s ease both; }
.animate-slide-down       { animation: slideDown 0.5s ease both; }
.animate-float            { animation: float 4s ease-in-out infinite; }
.animate-float-badge      { animation: floatBadge 3s ease-in-out infinite; }
.animate-pulse-red        { animation: pulseRed 2s ease-in-out infinite; }
.animate-rotate-slow      { animation: rotateSlow 30s linear infinite; }
.animate-rotate-slow-rev  { animation: rotateSlowReverse 20s linear infinite; }

/* Delay helpers */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Shimmer text */
.text-shimmer {
    background: linear-gradient(90deg, #ffffff 0%, #ffd6de 40%, #ffffff 60%, #d0d8ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Scroll-reveal: hidden until JS triggers */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible  { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0.0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Hover lift */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* ── Line clamp utilities ── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Prose (blog body content) ── */
.prose { color: #374151; line-height: 1.75; }
.prose p { margin-bottom: 1rem; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; margin-top: 1.5rem; color: #1A1A2E; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: #1A1A2E; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
