/*
Theme Name:   Ryvr Tech Child
Theme URI:    https://ryvrtech.com
Description:  Child theme for Rara Business — customised for Ryvr Tech Ltd.
              Removes Rara demo portfolio items, adjusts colours, typography
              and header/footer to match the original ryvrtech.com appearance.
Author:       Herve Jourdain
Author URI:   https://ryvrtech.com
Template:     rara-business
Version:      1.0.0
Text Domain:  ryvrtech-child
*/

/* ── Import parent theme ─────────────────────────────────────────── */
@import url('../rara-business/style.css');

/* ── Colour overrides (match original site) ──────────────────────── */
:root {
    --rara-primary:     #1a73a7;
    --rara-primary-rgb: 26, 115, 167;
    --rara-accent:      #f47b20;
}

/* Primary colour applications */
a,
.read-more,
.site-header .primary-menu > li > a:hover,
.site-header .primary-menu > li.current-menu-item > a {
    color: #1a73a7;
}

.site-header,
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.btn-primary,
button[type="submit"],
input[type="submit"],
.widget-title,
.rara-service-icon,
.counter-section {
    background-color: #1a73a7;
}

/* Top info bar */
.header-top-bar {
    background-color: #222222;
    color: #aaaaaa;
    font-size: 12px;
    padding: 8px 0;
}
.header-top-bar a { color: #cccccc; }
.header-top-bar a:hover { color: #ffffff; }

/* Site header border */
.site-header {
    border-bottom: 3px solid #1a73a7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Hero / banner section */
.rara-hero-section,
.page-header {
    background: linear-gradient(135deg, #0d2d42 0%, #1a5a7a 50%, #0d2d42 100%);
}

/* Service section boxes */
.rara-service-box {
    border-top: 4px solid #1a73a7;
    transition: box-shadow 0.25s, transform 0.25s;
}
.rara-service-box:hover {
    box-shadow: 0 4px 20px rgba(26,115,167,0.12);
    transform: translateY(-4px);
}

/* ── Hide Rara portfolio/demo remnants ───────────────────────────── */
/* The Rara Business free theme ships with demo portfolio items —
   hide their navigation entries and any "Portfolio" section headings */
.portfolio-section,
.rara-portfolio-section,
.widget_rara_portfolio,
a[href*="portfolio-category"],
.nav-item-portfolio {
    display: none !important;
}

/* ── Typography ──────────────────────────────────────────────────── */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #444444;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: #222222;
}

/* ── Code blocks (blog posts) ────────────────────────────────────── */
pre,
pre code {
    background: #1e2d3d;
    color: #a8c7e0;
    border-radius: 6px;
    padding: 20px 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    border-left: 4px solid #1a73a7;
    display: block;
    margin: 20px 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background: #f0f4f8;
    color: #c0392b;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
    background-color: #1c1c1c;
    color: #bbbbbb;
}
.site-footer .footer-bottom {
    background-color: #111111;
    color: #666666;
    font-size: 12px;
}
.site-footer .widget-title {
    color: #ffffff;
    border-bottom: 2px solid #1a73a7;
}
.site-footer a { color: #999999; }
.site-footer a:hover { color: #ffffff; }

/* ── Contact form (CF7) ──────────────────────────────────────────── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 10px 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #444444;
    background: #ffffff;
    transition: border-color 0.2s;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #1a73a7;
    outline: none;
}
.wpcf7-form input[type="submit"] {
    background: #1a73a7;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
}
.wpcf7-form input[type="submit"]:hover {
    background: #155f8a;
}

/* ── Sidebar widgets ─────────────────────────────────────────────── */
.widget-area .widget {
    margin-bottom: 28px;
}
.widget-area .widget-title {
    background: #1a73a7;
    color: #ffffff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 18px;
    margin-bottom: 0;
}
.widget-area .widget-body,
.widget-area .widget > ul,
.widget-area .widget > div {
    border: 1px solid #e5e5e5;
    border-top: none;
    padding: 16px 18px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    pre, pre code {
        font-size: 11px;
        padding: 14px 16px;
    }
}
