/*Primastella — Global Styles*/

/* ---------- Theme Variables ---------- */
:root {
    --bg-color: #FFF2E1;
    --accent-color: #28adcb;
    --text-color: #1E4B5C;
    --button-color: #28adcb;
    --button-hover: #1E4B5C;
}

/* ---------- Base / Reset ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
}

/* sticky header offset */

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
}

p {
    margin-bottom: 1.2em;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text-color);
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Keep labels for screen readers only */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Header / Navigation*/
header {
    background: linear-gradient(to right, #28adcb, #208fa8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    max-height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: color .3s, transform .3s, border-bottom .3s;
}

nav ul li a:hover {
    color: var(--text-color);
    transform: translateY(-2px);
    border-bottom-color: var(--text-color);
}

/* Mobile nav spacing */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .header-container .logo {
        margin-bottom: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* --- Hero two-column layout with shapes --- */

.hero {
    padding: 80px 0 0;

}

.hero-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-column {
    flex: 1 1 0;
}

/* Left image */
.hero-greeting img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    margin: 0;
}

/* Right text column */
.hero-text-column {
    display: flex;
    align-items: center; /* vertically center with the image */
    justify-content: flex-start;
    margin-top: 120px; /* pushes text slightly lower */
}

.hero-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);

    max-width: 520px;
}

/* Sections / Animations */

section {
    display: block;
    padding: 40px 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Fade-up utility */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services */
.services {
    text-align: center;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background-color: #F9E79F;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform .3s, box-shadow .3s, opacity .8s, transform .8s;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.service-card p {
    font-size: .9rem;
}

/* Optional: Font Awesome icon fallback (if ever used) */
.service-card i {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--button-color);
    transition: color .3s;
}

.service-card:hover i {
    color: var(--button-hover);
}

/* Stagger (first 9 cards) */
.service-card:nth-child(1) {
    transition-delay: 0s;
}

.service-card:nth-child(2) {
    transition-delay: .1s;
}

.service-card:nth-child(3) {
    transition-delay: .2s;
}

.service-card:nth-child(4) {
    transition-delay: .3s;
}

.service-card:nth-child(5) {
    transition-delay: .4s;
}

.service-card:nth-child(6) {
    transition-delay: .5s;
}

.service-card:nth-child(7) {
    transition-delay: .6s;
}

.service-card:nth-child(8) {
    transition-delay: .7s;
}

.service-card:nth-child(9) {
    transition-delay: .8s;
}

/* Contact */
.contact {
    padding: 60px 0;
    text-align: center;
    border-top: none; /* ensure no stray line */
    margin-top: 0;
    padding-top: 2rem;
}

.contact-form,
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.contact input,
.contact textarea,
.contact button {
    font-family: 'Montserrat', sans-serif;
}

.contact input,
.contact textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.contact textarea {
    min-height: 120px;
    resize: vertical;
}

.contact button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: var(--button-color);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background .3s;
    width: 100%;
}

.contact button:hover {
    background-color: var(--button-hover);
}

/* Footer (restored look) */
footer {
    background-color: #22aeca; /* flat turquoise like before */
    color: #fff;
    text-align: center;
    padding: 40px 15px;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-info p {
    margin: 8px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Map placeholder + iframe */
.map-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
    color: #333;
    min-height: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.footer-map {
    width: 100%;
    max-width: 400px;
}

.footer-map iframe {
    border: none;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

footer .copyright {
    font-size: .9rem;
    color: #e5e5e5;
    margin-top: 30px;
}

/* Footer layout on wider screens */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-info {
        text-align: left;
    }
}

/* Service Detail Pages */
.service-detail {
    padding: 60px 0;
}

.service-detail h1 {
    text-align: left;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* Title + "back" button row */
.service-title-bar {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.service-title-bar h1 {
    margin: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    background-color: var(--button-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    transition: background .3s ease;
}

.back-button:hover {
    background-color: var(--button-hover);
}

/* Text + image layout */
.service-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;   /* change from center → flex-start */
    gap: 30px;
    margin-bottom: 60px;
}

.service-text {
    flex: 1 1 45%;
    text-align: left;
}

.service-image {
    flex: 1 1 45%;
    text-align: center;
}

.service-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* Responsive stacking on smaller screens */
@media (max-width: 768px) {
    .service-main {
        flex-direction: column;
        text-align: center;
    }

    .service-text {
        text-align: left;
    }
}

/* Modal (if used) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.modal-content input,
.modal-content textarea,
.modal-content button {
    width: 100%;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.modal-content textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-content button {
    background-color: var(--button-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color .3s ease;
}

.modal-content button:hover {
    background-color: var(--button-hover);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
}

/* Touch tweaks */
@media (hover: none) and (pointer: coarse) {
    nav ul li a:active, nav ul li a:focus {
        color: var(--text-color);
        border-bottom: 2px solid var(--text-color);
        transform: none;
    }

    .service-card:active, .service-card:focus {
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-5px);
    }

    .back-button:active, .back-button:focus,
    .inquiry-button:active, .inquiry-button:focus {
        background-color: var(--button-hover);
        color: #fff;
    }
}

a, button, .service-card {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

/* Image Slider (for gallery section in services) */

.image-slider {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-image.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

/* Slider arrows */
.image-slider button.prev,
.image-slider button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 2;
}

.image-slider button.prev:hover,
.image-slider button.next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.image-slider button.prev {
    left: 10px;
}

.image-slider button.next {
    right: 10px;
}


/* Make the standalone contact form look like before */

/* section-style spacing even if there's no #contact wrapper */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 60px auto; /* top/bottom spacing + center */
    text-align: left;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* inputs + textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--button-color) 20%, transparent);
}

/* submit button */
.contact-form button,
.contact-form input[type="submit"] {
    all: unset;
    box-sizing: border-box;
    display: inline-block;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    background-color: var(--button-color);
    color: #fff;
    font: 700 1rem 'Montserrat', Arial, sans-serif;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, transform .02s;
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover {
    background-color: var(--button-hover);
}

.contact-form button:active,
.contact-form input[type="submit"]:active {
    transform: translateY(1px);
}

/* status line */
.contact-form .form-status {
    margin-top: 6px;
    font-size: .95rem;
}

/* --- Calendar fade transition --- */
.slider-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
}

.slider-image.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.image-slider {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Calendar fade transition --- */
.image-slider {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    display: block;
}

.slider-image.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.image-slider button.prev,
.image-slider button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
}

.image-slider button.prev {
    left: 10px;
}

.image-slider button.next {
    right: 10px;
}

/* --- Match slider arrows with brand color --- */
.image-slider button.prev,
.image-slider button.next {
    background: rgba(40, 173, 203, 0.8); /* turquoise tint */
    color: #fff;
}

.image-slider button.prev:hover,
.image-slider button.next:hover {
    background: var(--button-hover); /* your dark blue text color */
    color: #fff;
}

/* --- Hero animation effects --- */

/* Left: greeting image slides in from left */
.hero-greeting {
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.2s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Right: hero text paragraphs fade in one by one */
.hero-text p {
    opacity: 0;
    transform: translateY(12px);
    animation: heroTextFadeUp 0.7s ease-out forwards;
}

/* Staggered delays */
.hero-text p:nth-child(1) {
    animation-delay: 0.4s;
}

.hero-text p:nth-child(2) {
    animation-delay: 0.65s;
}

.hero-text p:nth-child(3) {
    animation-delay: 0.9s;
}

@keyframes heroTextFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile hero layout ===== */
@media (max-width: 768px) {

    .hero-layout {
        flex-direction: column; /* stack */
        align-items: center;
        gap: 24px;
        max-width: 100%;
        padding: 0 16px;
    }

    .hero-column {
        flex: 0 0 auto;
        width: 100%;
    }

    /* Image centered + a bit smaller */
    .hero-greeting img {
        max-width: 90%;
        margin: 0 auto;
    }

    /* Text under image, centered */
    .hero-text-column {
        margin-top: 0;
        align-items: center;
        justify-content: flex-start;
    }

    .hero-text {
        max-width: 90%;
        text-align: center;
        margin: 0 auto;
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-text p {
        margin-bottom: 0.8em;
    }

    /* Optional: nicer animation on mobile (fade up instead of from left) */
    .hero-greeting {
        animation: heroImageMobile 0.7s ease-out 0.2s forwards;
    }

    @keyframes heroImageMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.hero {
    padding-bottom: 0 !important;
}

.services {
    margin-top: 0 !important;
    padding-top: 32px !important; /* or 24px if you want it tighter */
}

.services h2 {
    margin-top: 0;
}

