/*
Theme Name: Cropac Landing
Theme URI: https://cropac.com
Author: Cropac
Author URI: https://cropac.com
Description: Custom landing page theme for Cropac Equipment
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cropac-landing
*/

:root {
    --cropac-red: #eb312f;
    --text-dark: #222;
    --text-grey: #555;
    --white: #ffffff;
    --bg-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: "proxima-nova", sans-serif;
}

.cropac-nav-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}


.navbar .container {
    padding: 20px 1%;
}

.navbar .logo-placeholder {
    display: flex;
    align-items: center;
}

.navbar .logo-placeholder img {
    max-width: 80%;
    height: auto;
    width: auto;
}

.navbar .d-flex.gap-3 {
    gap: 15px;
    flex-wrap: nowrap;
}


.social-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s;
    color: #000;
    flex-shrink: 0;
}

.social-btn i {
    font-size: 1.5rem;
    line-height: 1;
}

.social-btn:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
    color: #E31837;
}

/* --- CAROUSEL HEIGHT & BACKGROUNDS --- */
/* Force carousel to take full viewport height or min-height */
.carousel-item {
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay on top of images */
/* .carousel-overlay {
    background: rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
} */

/* --- CONTENT TYPOGRAPHY --- */
.hero-title {
    font-size: clamp(3.7rem, 5vw, 3.5rem) !important;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 45px;
}

.hero-desc {
    font-size: 33px !important;
    font-weight: 300;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* --- CUSTOM RED BUTTON (The "Cropac" Style) --- */
.btn-cropac {
  background-color: #eb312f;
    text-decoration: none;
    padding: 16px 25px;
    display: inline-block;
    border-radius: 15px;
    font-size: 23px;
    color: #fff;
    font-weight: 800;
    margin-top: 25px;
}

.btn-cropac:hover {
    background-color: #c41e1c;
    color: #fff;
}



/* --- CUSTOM CONTROLS (Bottom Right) --- */
/* Reposition Bootstrap indicators/controls */
.carousel-custom-controls {
    position: absolute;
    bottom: 8%;
    /* Position from bottom */
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Customizing the prev/next buttons to be slanted squares */
.custom-control-btn {
    width: 55px;
    height: 85px;
    background: #fff;
    color: #000;
    border: none;
    transform: skewX(-20deg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-control-btn span {
    transform: skewX(20deg);
    /* Un-skew icon */
    font-size: 1.5rem;
    font-weight: bold;
}

.custom-control-btn:hover {
    background: #EB312F;
    color: white;
}

/* Override Bootstrap's indicators to be dots */
.carousel-indicators {
    margin: 0 15px;
}

.carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    border: none;
    margin: 0 5px;
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
}

/* === CTA RED BANNER === */
.cta-banner {
    background-color: var(--cropac-red);
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-text {
    flex: 1;
    min-width: 300px;
}

.cta-text h2 {
    color: white;
    font-size: 3.1rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-text p {
    max-width: 90%;
    color: white;
    font-size: 25px;
    line-height: 1.3;
}

.btn-white {
    background-color: white;
    color: black;
    padding: 28px 40px;
    font-size: 1.7rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    background-color: #f1f1f1;
}

/* === FOOTER === */
footer {
    padding-top: 60px;
    background-color: white;
}

.container {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.company-intro {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.footer-logo img {
    min-width: 210px;
    height: auto;
}

.company-intro p {
    color: var(--text-grey);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-left: 40px;
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 5px;
    margin-bottom: 60px;
    text-align: center;
}

.location-card h3 {
    font-size: 0.97rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: black;
}

.location-card p {
    font-size: 0.89rem;
    color: var(--text-grey);
    line-height: 1.5;
    margin-bottom: 20px;
}

.location-card .phone {
    margin-bottom: 10px;
}

.maps-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.maps-link img {
    width: 20px;
    height: auto;
}

/* Bottom Bar */
.bottom-bar {
    background-color: black;
    color: white;
    padding: 20px 0;
}

.bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.legal-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--cropac-red);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */

/* Extra Large Devices (Large Desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-desc {
        font-size: 32px;
    }
}

/* Large Devices (Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium to Large Devices (Tablets to Desktops, 992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-desc {
        font-size: 28px;
    }
    
    .cta-text h2 {
        font-size: 2.5rem;
    }
    
    .cta-text p {
        font-size: 22px;
    }
    
    .btn-white {
        padding: 24px 35px;
        font-size: 1.5rem;
    }
}

/* Medium Devices (Tablets, 768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-desc {
        font-size: 24px;
    }
    
    .carousel-item {
        min-height: 500px;
    }
    
    .cta-banner {
        padding: 35px 4%;
    }
    
    .cta-text h2 {
        font-size: 2.2rem;
    }
    
    .cta-text p {
        font-size: 20px;
    }
    
    .btn-white {
        padding: 22px 32px;
        font-size: 1.4rem;
    }
    
    .btn-cropac {
        padding: 0.9rem 3rem 0.9rem 1.8rem;
    }
    
    .btn-cropac::before {
        right: -22px;
        width: 32px;
    }
    
    .custom-control-btn {
        width: 50px;
        height: 75px;
    }
    
    .company-intro {
        gap: 15px;
    }
    
    .footer-logo img {
        min-width: 180px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    /* Social buttons */
    .social-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }
    
    .social-btn i {
        font-size: 1.3rem;
    }
    
    .navbar .d-flex.gap-3 {
        gap: 12px !important;
    }
}

/* Small to Medium Devices (Landscape Phones to Tablets, 576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-desc {
        font-size: 22px;
    }
    
    .carousel-item {
        min-height: 450px;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 4%;
        gap: 25px;
    }
    
    .cta-text {
        min-width: 100%;
    }
    
    .cta-text h2 {
        font-size: 2rem;
    }
    
    .cta-text p {
        font-size: 18px;
        max-width: 100%;
    }
    
    .btn-white {
        padding: 20px 30px;
        font-size: 1.3rem;
    }
    
    .btn-cropac {
        padding: 0.8rem 2.5rem 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-cropac::before {
        right: -20px;
        width: 28px;
        font-size: 1.3rem;
    }
    
    .custom-control-btn {
        width: 45px;
        height: 65px;
    }
    
    .custom-control-btn span {
        font-size: 1.3rem;
    }
    
    .carousel-custom-controls {
        bottom: 6%;
    }
    
    .company-intro {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-logo img {
        min-width: 180px;
    }
    
    .company-intro p {
        text-align: center;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .bar-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .legal-links a {
        margin: 0 5px;
    }
    
    /* Social buttons */
    .social-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    
    .social-btn i {
        font-size: 1.2rem;
    }
    
    .navbar .d-flex.gap-3 {
        gap: 10px !important;
    }
    
    .navbar .container {
        padding: 15px 4%;
    }
    
    .navbar .logo-placeholder img {
        max-width: 200px;
        height: auto;
    }
}

/* Extra Small to Small Devices (Portrait Phones, up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 4%;
    }
    
    /* Navigation */
    .cropac-nav-overlay {
        padding: 15px 0;
    }
    
    .navbar .container {
        padding: 12px 4% !important;
    }
    
    .navbar .d-flex.gap-3 {
        gap: 8px !important;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .social-btn i {
        font-size: 1.2rem;
    }
    
    .navbar .logo-placeholder img {
        max-width: 180px;
        height: auto;
        width: auto;
    }
    
    /* Hero Carousel */
    .carousel-item {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-desc {
        font-size: 18px !important;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .btn-cropac {
        padding: 0.7rem 2rem 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn-cropac::before {
        right: -18px;
        width: 25px;
        font-size: 1.2rem;
    }
    
    .carousel-custom-controls {
        bottom: 5%;
        padding: 0 15px;
    }
    
    .custom-control-btn {
        width: 40px;
        height: 55px;
    }
    
    .custom-control-btn span {
        font-size: 1.1rem;
    }
    
    .carousel-indicators {
        margin: 0 10px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px !important;
        height: 10px !important;
        margin: 0 3px;
    }
    
    /* CTA Banner */
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px 4%;
        gap: 20px;
    }
    
    .cta-text {
        min-width: 100%;
    }
    
    .cta-text h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .cta-text p {
        font-size: 16px;
        max-width: 100%;
        line-height: 1.4;
    }
    
    .btn-white {
        padding: 18px 25px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    footer {
        padding-top: 40px;
    }
    
    .company-intro {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-logo img {
        min-width: 150px;
        max-width: 200px;
    }
    
    .company-intro p {
        font-size: 0.85rem;
        text-align: center;
        line-height: 1.5;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .location-card {
        padding: 15px;
    }
    
    .location-card h3 {
        font-size: 1rem;
    }
    
    .location-card p {
        font-size: 0.85rem;
    }
    
    .maps-link {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .bottom-bar {
        padding: 15px 0;
    }
    
    .bar-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .legal-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .legal-links a {
        margin: 0 5px;
        font-size: 0.85rem;
    }
}

/* Very Small Devices (Small Phones, up to 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 3%;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-desc {
        font-size: 16px !important;
    }
    
    .btn-cropac {
        padding: 0.6rem 1.5rem 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-cropac::before {
        right: -15px;
        width: 22px;
        font-size: 1rem;
    }
    
    .custom-control-btn {
        width: 35px;
        height: 50px;
    }
    
    .cta-text h2 {
        font-size: 1.5rem;
    }
    
    .cta-text p {
        font-size: 14px;
    }
    
    .btn-white {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .social-btn {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
    }
    
    .social-btn i {
        font-size: 1rem;
    }
    
    .navbar .d-flex.gap-3 {
        gap: 6px !important;
    }
    
    .navbar .logo-placeholder img {
        max-width: 140px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .carousel-item {
        min-height: 100vh;
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-desc {
        font-size: 18px !important;
    }
    
    .carousel-custom-controls {
        bottom: 3%;
    }
    
    .navbar .container {
        padding: 10px 4% !important;
    }
    
    .social-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
    
    .social-btn i {
        font-size: 1.1rem;
    }
    
    .navbar .logo-placeholder img {
        max-width: 160px;
    }
}

/* Print Styles */
@media print {
    .cropac-nav-overlay,
    .carousel-custom-controls,
    .btn-cropac,
    .btn-white,
    .social-btn,
    .bottom-bar {
        display: none;
    }
    
    .carousel-item {
        height: auto;
        min-height: auto;
    }
}
