/*
Theme Name: RIVOCEAN Theme
Author: KKA
Description: A custom theme for RIVOCEAN.
Version: 1.0
*/

body {
    height: 3000px;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background:
        linear-gradient(rgba(0, 204, 204, 0.5), rgba(0, 204, 204, 0.5)),
        url('<?php echo get_template_directory_uri(); ?>/images/A1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #000;
    position: relative;
    height: 120px;
}

header::after {
    content: "";
    display: block;
    width: 100%;
    height: 20px;
    background-color: #4d4d4d;
    position: absolute;
    bottom: -20px;
    left: 0;
}

header h1, .header-left {
    font-size: 1em;
    display: flex;
    align-items: center;
}

.header-left h1 {
    margin-right: 10px;
}

#rivocean-logo {
    height: 60px;
    width: auto;
    margin-left: 5px;
    vertical-align: middle;
}

nav {
    margin-top: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin-left: auto;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s;
    font-size: 1.2em;
}

nav ul li a:hover {
    color: #333;
}

.main-section {
    padding: 60px 20px;
    background-color: #f4f4f4;
}

.main-section h1, .main-section h2, .main-section h3 {
    text-align: center;
}

.section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
}

.section-content p {
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-content {
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.section-content h3 {
    margin-bottom: 0;
}

.section-content p {
    margin-top: 0;
}

.about-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.red-text {
    color: red;
}

.services-photos, .machine-photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.service-item, .machine-item {
    max-width: 200px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: #f4f4f4;
    padding: 20px;
}

.service-item img, .machine-item img {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0;
}

.service-item h3, .machine-item h3 {
    margin-top: 30px;
    color: #d32f2f;
}

.service-item p, .machine-item p {
    margin-top: 5px;
    color: #333;
}

.card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 300px;
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
    text-align: center;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card h3 {
    margin-top: 0;
    color: #d32f2f;
}

.card p {
    color: #333;
}

.cta-button, .back-button {
    display: inline-block;
    padding: 10px 15px;
    border: none;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.cta-button:hover, .back-button:hover {
    background-color: #0056b3;
}

footer {
    background-color: #4d4d4d;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

footer .footer-content div {
    text-align: center;
    margin-bottom: 20px;
}

footer .footer-content div h3 {
    margin-top: 0;
    color: #fff;
}

footer .footer-content div p, footer .footer-content div a {
    color: #fff;
}

footer .footer-content div a:hover {
    color: #ffcccb;
}

.welcome-section, .image-section {
    background:
        linear-gradient(rgba(0, 204, 204, 0.5), rgba(0, 204, 204, 0.5)),
        url('<?php echo get_template_directory_uri(); ?>/images/A.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 200px;
    padding: 100px 30px;
    text-align: center;
    color: #000;
}

.image-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-section {
    color: #333;
    padding: 60px 20px;
    text-align: center;
}

.contact-section h1,
.contact-section .contact-info,
.contact-section .map,
.contact-section h2,
.contact-section form {
    padding: 20px;
    border-radius: 5px;
    margin: 10px 0;
}

.contact-section form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
}

.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 80px;
    margin: 20px 0;
}

.contact-info div {
    max-width: 300px;
    text-align: center;
    margin: 0;
    padding: 5px 0;
}

.contact-info h3 {
    color: #d32f2f;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.contact-info h3 i {
    margin-right: 10px;
}

.contact-info p {
    color: #333;
}

.map img {
    max-width: 100%;
    height: auto;
}

form label {
    grid-column: span 1;
    text-align: left;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form textarea {
    resize: vertical;
    height: 100px;
}

form button {
    grid-column: span 1;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}
/* ============ RIVOCEAN improvements (16/08/2026) ============ */

/* Fix forced 3000px body height (leftover hack) */
body { height: auto !important; }

/* WhatsApp floating button */
.wa-float {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    width: 56px; height: 56px; border-radius: 50%;
    background-color: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; }

/* Green WhatsApp + red phone buttons in the welcome section */
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 15px; }
.cta-wa  { background-color: #25D366 !important; }
.cta-wa:hover  { background-color: #1eb955 !important; }
.cta-tel { background-color: #d32f2f !important; }
.cta-tel:hover { background-color: #b71c1c !important; }

/* ===== Mobile responsive ===== */
@media (max-width: 768px) {
    header { flex-direction: column; height: auto !important; padding: 10px; gap: 8px; }
    .header-left { justify-content: center; }
    nav ul { gap: 12px; padding: 0; }
    nav ul li a { font-size: 1em; }
    .welcome-section, .image-section { height: auto; padding: 60px 20px; }
    .services-photos, .machine-photos { flex-direction: column; align-items: center; }
    .service-item, .machine-item { max-width: 90%; }
    .contact-info { flex-direction: column; gap: 20px; }
    .card { flex: 1 1 100%; max-width: 90%; }
    .main-section { padding: 40px 12px; }
    .section-content { gap: 16px; }
    .section-content p { max-width: 100%; }
    footer .footer-content { padding: 0 10px; }
}
@media (max-width: 480px) {
    nav ul { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .cta-button { margin: 4px; }
    #rivocean-logo { height: 45px; }
}