@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');
@import './variables.css';

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--font-family-body);
    background-color: var(--color-background-light);
    color: var(--color-text-main);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* UI Components - Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-family-body);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn--primary {
    background-color: rgba(18, 26, 41, 0.85);
    border: 2px solid var(--color-secondary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn--primary:hover {
    background-color: rgba(18, 26, 41, 1);
    transform: translateY(-2px);
}

.btn--secondary {
    background: linear-gradient(180deg, #D4AF37 0%, #AA8C2C 100%);
    color: #fff;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn--secondary:hover {
    background: linear-gradient(180deg, #EAC44C 0%, #BFA035 100%);
    transform: translateY(-2px);
}

.btn--full-width {
    width: 100%;
    display: block;
}

/* Layout Helpers */
.main {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

.container, 
.header__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* HEADER */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    height: auto;
    display: flex;
    align-items: flex-start;
    padding-top: 1rem;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.header__logo-img {
    height: 300px;
    width: auto;
    object-fit: contain;
    margin-top: 0;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    transition: height 0.3s ease;
}

@media (min-width: 768px) {
    .header__logo-img {
        height: 350px;
    }
}

@media (min-width: 992px) {
    .header__logo-img {
        height: 450px;
    }
}

/* Desktop Menu (Default state for mobile is hidden/absolute) */
.header__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Mobile Navigation Styles */
@media (max-width: 991px) {
    .header__menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: -1;
    }

    .header__menu--open {
        transform: translateY(0);
    }

    .navigation__list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Mobile: Center logo and hide worker */
@media (max-width: 767px) {
    .header__container {
        justify-content: center;
    }
    
    .hamburger {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
    
    .hero__image-wrapper {
        display: none !important;
    }
    
    .hero__content {
        text-align: center;
        align-items: center;
        width: 100%;
    }
    
    .hero__cta-group {
        align-items: center;
        align-self: center;
        width: 100%;
    }
    
    .hero__actions {
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero__phone-display {
        justify-content: center;
        width: 100%;
    }
    
    .hero__features-list {
        justify-content: center;
    }
}

/* Desktop Navigation Styles */
@media (min-width: 992px) {
    .header__menu {
        position: static;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        transform: none;
        background: transparent;
    }

    .navigation__list {
        display: flex;
        gap: 2rem;
    }
}

.navigation__link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-light); /* Changed to white */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Shadow for readability */
}

.navigation__link:hover {
    color: var(--color-secondary);
}

/* Phone CTA Button (Header) */
.header__cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255,255,255,0.1);
    border: 2px solid var(--color-secondary);
    color: var(--color-text-light); /* Changed to white */
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    transition: all 0.3s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.header__cta-button:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

/* Hamburger Menu Icon */
.hamburger {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger__box {
    width: 30px;
    height: 24px;
    position: relative;
    display: inline-block;
}

.hamburger__inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger__inner,
.hamburger__inner::before,
.hamburger__inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--color-text-light); /* Changed to white */
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hamburger__inner::before,
.hamburger__inner::after {
    content: "";
    display: block;
}

.hamburger__inner::before {
    top: -10px;
}

.hamburger__inner::after {
    bottom: -10px;
}

/* Hamburger Active State */
.hamburger--open .hamburger__inner {
    transform: rotate(45deg);
}

.hamburger--open .hamburger__inner::before {
    top: 0;
    opacity: 0;
}

.hamburger--open .hamburger__inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

@media (min-width: 992px) {
    .hamburger {
        display: none;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    padding-top: 330px;
    padding-bottom: 0;
    background-color: var(--color-primary);
    background-image: url('./images/BACKGROUND.jpg');
    background-size: cover;
    background-position: center top;
    color: var(--color-text-light);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 390px;
    }
}

@media (min-width: 992px) {
    .hero {
        padding-top: 490px;
    }
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    z-index: 10;
    padding-top: 0;
    position: relative;
}

.hero__title {
    font-family: var(--font-family-heading);
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--color-text-light);
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}

.hero__title-highlight {
    color: var(--color-secondary);
    font-size: 1em;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .hero__title {
        font-size: 2.2rem;
    }
}

.hero__subtitle {
    font-family: var(--font-family-body);
    font-size: 1rem;
    font-style: italic;
    color: #e0e0e0;
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    margin-bottom: 0.3rem;
}

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 1.1rem;
    }
}

.hero__features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0.5rem 0;
    color: #cccccc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .hero__features-list {
        font-size: 0.9rem;
    }
}

.hero__features-list li:not(:last-child)::after {
    content: "•";
    margin-left: 0.8rem;
    color: var(--color-secondary);
}

.hero__cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    align-self: flex-start;
}

@media (min-width: 768px) {
    .hero__cta-group {
        margin-top: 1.5rem;
    }
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 500px) {
    .hero__actions {
        flex-direction: row;
        gap: 1.2rem;
    }
}

.hero__phone-display {
    font-size: 1.8rem;
    color: var(--color-secondary);
    font-weight: 700;
    margin-top: 1.2rem;
    font-family: var(--font-family-heading);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.3s;
}

.hero__phone-display:hover {
    color: #fff;
}

.hero__phone-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

@media (min-width: 768px) {
    .hero__phone-display {
        font-size: 2.2rem;
    }
    
    .hero__phone-icon {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 992px) {
    .hero__phone-display {
        font-size: 2.5rem;
    }
    
    .hero__phone-icon {
        width: 36px;
        height: 36px;
    }
}

.hero__image-wrapper {
    position: absolute;
    right: -10%;
    bottom: 0;
    top: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 991px) {
    .hero__image-wrapper {
        right: -15%;
    }
}

@media (max-width: 767px) {
    .hero__image-wrapper {
        right: -25%;
    }
}

.hero__worker-img {
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(-10px 0 30px rgba(0,0,0,0.5));
}

/* Section Common Styles */
.section__header {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 1rem;
}

/* Decorative underline for section headers */
.section__header::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 0.5rem auto 0;
}

.section__header--light {
    color: var(--color-text-light);
}

.section__header--left {
    text-align: left;
}

.section__header--left::after {
    margin: 0.5rem 0 0 0;
}

@media (min-width: 768px) {
    .section__header {
        font-size: 2.5rem;
    }
}

/* OFFER SECTION */
.offer {
    padding: 5rem 0;
    background-image: url('./images/BACKGROUND_KREM_V0.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.offer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
}

@media (min-width: 600px) {
    .offer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .offer__grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
}

.service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card__icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.service-card__icon-placeholder {
    font-size: 5rem;
    margin-bottom: 1.25rem;
}

.service-card__title {
    font-family: var(--font-family-heading);
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.service-card__description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.service-card__list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
    color: #666;
}

.service-card__list li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.service-card__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 0.9rem;
}

@media (min-width: 1200px) {
    .service-card__list li {
        font-size: 0.75rem;
    }
}

.offer__cta {
    margin-top: 3rem;
    text-align: center;
    font-size: 1.2rem;
    font-family: var(--font-family-heading);
    color: var(--color-primary);
}

/* FEATURES SECTION */
.features {
    background-color: var(--color-primary); /* Dark Navy */
    background-image: linear-gradient(rgba(24, 35, 53, 0.3), rgba(24, 35, 53, 0.3)), url('./images/dark_background.png');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    color: var(--color-text-light);
}

.features__grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: space-around;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .features__grid {
        flex-direction: row;
    }
}

.feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
}

@media (max-width: 767px) {
    .feature-item {
        justify-content: flex-start;
        padding: 0 10%;
    }
}

.feature-item__icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    min-width: 50px;
    text-align: center;
}

.feature-item__content {
    display: flex;
    flex-direction: column;
}

.feature-item__title {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
    line-height: 1.2;
}

.feature-item__desc {
    font-family: var(--font-family-body);
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* REVIEWS SECTION */
.reviews {
    padding: 5rem 0;
    background-image: url('./images/BACKGROUND_KREM_V0.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-item {
    background: transparent;
    padding: 1.5rem;
    text-align: left;
}

.review-item__stars {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.review-item__title {
    font-family: var(--font-family-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.review-item__text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-item__author {
    font-weight: 700;
    color: var(--color-text-main);
}

/* CONTACT SECTION */
.contact {
    background-color: var(--color-primary);
    background-image: linear-gradient(rgba(24, 35, 53, 0.3), rgba(24, 35, 53, 0.3)), url('./images/dark_background.png');
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
    padding: 5rem 0;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 5rem;
    }
}

.contact__details {
    margin-top: 2rem;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.contact__phone {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    color: var(--color-secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.contact__email:hover, 
.contact__phone:hover {
    color: #fff;
}

/* Form Styles */
.contact__form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(196, 155, 94, 0.2);
}

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

/* Main Footer */
.footer-main {
    background-color: #0b0f19; /* Darker than primary */
    color: #888;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
