/* ============================================================
   Redicom — Main Stylesheet
   ============================================================ */

/* === Custom Properties === */
:root {
    --red:        #dc1f26;
    --red-dark:   #b8181f;
    --dark:       #1a1a1a;
    --mid:        #555;
    --light:      #f7f7f7;
    --border:     #e2e2e2;
    --white:      #fff;
    --font:       'Lato', sans-serif;
    --ease:       0.2s ease;
    --radius:     5px;
    --shadow-sm:  0 2px 10px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 24px rgba(0,0,0,0.10);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    color: var(--dark);
    background-color: #f5f4f2;
    background-image: url(/images/bg-body.png);
    background-size: 1920px auto;
    background-position: top center;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color var(--ease);
}
a:hover { color: var(--red-dark); }

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


/* ============================================================
   NAVBAR
   ============================================================ */

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 999;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 0 var(--border), 0 2px 16px rgba(0,0,0,0.06);
    backdrop-filter: blur(6px);
}

.site-nav .brand { display: flex; align-items: center; gap: 12px; }
.site-nav .brand img { height: 52px; }
.site-nav .brand-sub {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.2px;
    line-height: 1.3;
    border-left: 1px solid var(--border);
    padding-left: 12px;
    display: none; /* shown on wider screens below */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 9px 20px !important;
    border-radius: var(--radius);
    font-size: 0.88rem !important;
    transition: background var(--ease), transform var(--ease) !important;
}
.nav-cta:hover {
    background: var(--red-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO (Homepage)
   ============================================================ */

.hero {
    position: relative;
    margin-top: 76px;
    min-height: calc(100vh - 76px);
    background-image: url(/images/landing-main.jpg);
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.0) 35%,
        rgba(0,0,0,0.6) 100%
    );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.hero-text { flex: 1; }

.hero-text h1 {
    font-size: clamp(1.8rem, 3.5vw, 3.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    margin: 0 0 28px;
    max-width: 600px;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-logos img {
    height: 42px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.5);
    width: auto;
}

.hero-quote {
    width: 300px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-md);
}
.hero-quote h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
}
.hero-quote p {
    font-size: 0.93rem;
    color: var(--mid);
    margin: 0 0 20px;
    line-height: 1.6;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn-redicom {
    display: inline-block;
    background: var(--red);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    padding: 11px 26px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
    line-height: 1.4;
    text-decoration: none !important;
}
.btn-redicom:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,31,38,0.3);
}
.btn-redicom:active { transform: translateY(0); }
.btn-redicom.btn-full { display: block; text-align: center; width: 100%; }

.btn-redicom-outline {
    display: inline-block;
    background: transparent;
    color: var(--red) !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 24px;
    border-radius: var(--radius);
    border: 2px solid var(--red);
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
    text-decoration: none !important;
}
.btn-redicom-outline:hover {
    background: var(--red);
    color: var(--white) !important;
}


/* ============================================================
   PRODUCT SECTIONS (Homepage)
   ============================================================ */

.products {
    padding: 80px 0 56px;
}

.product-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}
.product-row:hover { box-shadow: var(--shadow-md); }
.product-row.reverse { flex-direction: row-reverse; }

.product-image {
    flex: 0 0 48%;
    min-height: 340px;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-row:hover .product-image img { transform: scale(1.03); }

.product-details {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-details h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 14px;
}

.product-details p {
    font-size: 0.97rem;
    color: var(--mid);
    line-height: 1.7;
    margin: 0 0 18px;
}

.product-details ul {
    padding-left: 20px;
    margin: 0 0 30px;
    color: #666;
    font-size: 0.93rem;
    line-height: 1;
}
.product-details ul li { margin-bottom: 7px; }


/* ============================================================
   PAGE HERO (Contact / Terms)
   ============================================================ */

.page-hero {
    position: relative;
    margin-top: 76px;
    min-height: 260px;
    background-color: #1e2d3d;
    background-image: url(/images/bg-contact-us.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 64px 0;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.page-hero p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    margin: 0;
}

/* Terms page uses a plain dark hero (no bg image) */
.page-hero.hero-plain {
    background-image: none;
    background-color: var(--dark);
    min-height: 180px;
}
.page-hero.hero-plain::after { background: none; }


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-body {
    padding: 64px 0 88px;
}

.contact-info-block { padding-right: 32px; }

.contact-info-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.info-icon {
    width: 38px;
    height: 38px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--red);
    font-size: 1rem;
}

.info-text {
    font-size: 0.92rem;
    color: var(--mid);
    line-height: 1.65;
}
.info-text strong {
    color: var(--dark);
    display: block;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.info-text a { color: var(--mid); }
.info-text a:hover { color: var(--red); }

.contact-map {
    margin-top: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 6px;
}

.contact-form-card .form-desc {
    color: var(--mid);
    font-size: 0.93rem;
    margin: 0 0 30px;
    line-height: 1.6;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    display: block;
}
.form-label .req { color: var(--red); margin-left: 2px; }

.form-control {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--ease), box-shadow var(--ease);
    outline: none;
    -webkit-appearance: none;
}
.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,31,38,0.1);
}
.form-control::placeholder { color: #aaa; }
textarea.form-control { height: 130px; resize: vertical; }

.form-row { margin-bottom: 20px; }


/* ============================================================
   TERMS PAGE
   ============================================================ */

.terms-body {
    background: var(--white);
    padding: 64px 0 88px;
}

.terms-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 6px;
}
.terms-content .lead {
    color: var(--mid);
    font-size: 1rem;
    margin-bottom: 48px;
}
.terms-content h2 {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin: 40px 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.terms-content p,
.terms-content li {
    font-size: 0.96rem;
    color: #444;
    line-height: 1.8;
}
.terms-content ol,
.terms-content ul {
    padding-left: 22px;
    margin: 0 0 16px;
}
.terms-content ol li ol { font-size: 0.93rem; }


/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 0.93rem;
    margin-bottom: 24px;
    line-height: 1.5;
}
.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}
.alert-danger {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}
.alert ul { margin: 0; padding-left: 18px; }


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--dark);
    padding: 52px 0 28px;
    color: rgba(255,255,255,0.55);
}

.footer-brand img {
    height: 36px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.7;
}
.footer-brand a {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}
.footer-brand a:hover { color: var(--white); }

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
.footer-nav li { margin-bottom: 8px; }
.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    letter-spacing: 0.2px;
}
.footer-nav a:hover { color: var(--white); }

.footer-hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 32px 0 20px;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 992px) {
    .site-nav .brand-sub { display: block; }
}

@media (max-width: 991px) {
    .product-details { padding: 36px 32px; }
    .product-details h2 { font-size: 1.55rem; }
    .hero-quote { width: 270px; }
    .contact-info-block { padding-right: 16px; }
    .contact-form-card { padding: 32px; }
}

@media (max-width: 767px) {
    /* Navbar */
    .site-nav { padding: 0 20px; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { display: block; padding: 13px 24px; }
    .nav-cta {
        background: var(--red) !important;
        border-radius: 0 !important;
        margin: 0;
    }

    /* Hero */
    .hero { min-height: 520px; align-items: flex-end; }
    .hero-inner {
        flex-direction: column;
        padding: 0 20px 36px;
        gap: 20px;
        align-items: stretch;
    }
    .hero-logos { display: none; }
    .hero-quote { width: 100%; }

    /* Products */
    .product-row,
    .product-row.reverse { flex-direction: column; }
    .product-image { flex: none; min-height: 220px; }
    .product-details { flex: none; padding: 28px 22px; }

    /* Page hero */
    .page-hero-content { padding: 48px 0; }

    /* Contact */
    .contact-body { padding: 40px 0 60px; }
    .contact-info-block { padding-right: 0; margin-bottom: 36px; }
    .contact-form-card { padding: 24px 18px; }

    /* Terms */
    .terms-body { padding: 48px 0 64px; }

    /* Footer */
    .footer-nav { text-align: left; margin-top: 28px; }
}

@media (max-width: 480px) {
    .hero { min-height: 460px; }
    .product-image { min-height: 180px; }
}
