/*
 * RT85 Website - Main Stylesheet
 * --------------------------------
 * This file contains the core styles for the RT85 website, including
 * variables, base styles, layout, and component-specific styling.
 * It follows a BEM-like methodology and is organized by section.
 */

/* --- CSS Custom Properties (Theming) --- */
:root {
    --primary-orange: #FF6B35;
    --dark-blue: #1B365D;
    --medium-grey: #666666;
    --light-grey: #F8F9FA;
    --white: #FFFFFF;
    --black: #000000;
    --success-green: #28a745;
    --error-red: #dc3545;

    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Open Sans', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* --- Base & Typography --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--medium-grey);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-blue);
    line-height: 1.3;
}

h1 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.5rem;
    /* 40px */
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    /* 36px */
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    /* 24px */
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.2rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--dark-blue);
}

ul {
    list-style: none;
}

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

/* --- Layout & Helpers --- */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.content-section {
    padding: 6rem 0;
}

.bg-light-grey {
    background-color: var(--light-grey);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

.section-intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.btn-primary:hover {
    background-color: #e65c2e;
    border-color: #e65c2e;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

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


/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
}

.header.scrolled {
    box-shadow: var(--box-shadow);
    background-color: var(--white);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--dark-blue);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-blue);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2942&auto=format&fit=crop') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 54, 93, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}


/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text h3 {
    color: var(--dark-blue);
}

.about-text ul {
    margin-top: 1.5rem;
    padding-left: 1rem;
}

.about-text ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.about-text ul li i {
    color: var(--primary-orange);
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 4px;
}


/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.benefit-title {
    margin-bottom: 0.75rem;
}

/* --- Difference Section --- */
.difference-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.testimonial {
    background: var(--light-grey);
    padding: 2rem;
    border-left: 5px solid var(--primary-orange);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial blockquote p {
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1rem;
}

.testimonial blockquote cite {
    font-weight: 600;
    color: var(--dark-blue);
}

.cta-banner {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 5rem;
}

.cta-banner h3 {
    color: var(--white);
    font-size: 1.8rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.cta-banner .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.cta-banner .btn-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
}


/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info ul {
    margin-top: 2rem;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-orange);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.social-link {
    margin-left: 0.5rem;
    font-size: 1.2rem;
    color: var(--dark-blue);
}

/* --- Forms (Contact & EC) --- */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* EC Page Specific */
.ec-page .content-section {
    padding-top: calc(var(--header-height) + 4rem);
}

.form-container {
    max-width: 800px;
    margin: 2rem auto 0;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.error-message {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error select {
    border-color: var(--error-red);
}

.form-group.success input,
.form-group.success select {
    border-color: var(--success-green);
}

.form-group.error .error-message {
    display: block;
}


/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    color: var(--success-green);
    margin-bottom: 1rem;
}

.modal .btn {
    margin-top: 1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo p {
    margin-top: 1rem;
    max-width: 350px;
}

.footer-logo img {
    height: 40px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom a {
    font-weight: 600;
}

/* WordPress Specific Styles */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* Contact Form 7 Styling */
div.wpcf7 {
    width: 100%;
}

.wpcf7-form {
    width: 100%;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.wpcf7-form input[type="submit"] {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    background-color: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
    width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #e65c2e;
    border-color: #e65c2e;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4);
}

.wpcf7-not-valid-tip {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
    border: 2px solid var(--error-red);
    margin: 1rem 0 0;
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--border-radius);
}

div.wpcf7-mail-sent-ok {
    border: 2px solid var(--success-green);
    margin: 1rem 0 0;
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--border-radius);
}
