/* OuterVision PSU Calculator Main Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Prevent images from overflowing */
img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
#header {
    background: #1d2127;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.header-holder {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Navigation Styles */
#nav {
    position: relative;
}

.nav-drop {
    display: block;
}

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ff7301;
}

.main-nav li.active a {
    color: #ff7301;
}

.nav-opener {
    display: none;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    cursor: pointer;
}

.nav-close {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-opener {
        display: block;
        position: relative;
        z-index: 1002;
    }
    
    .nav-drop {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #1d2127;
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    .nav-drop.active {
        left: 0;
    }
    
    .nav-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 28px;
        color: #fff;
        z-index: 1003;
    }
    
    .main-nav {
        flex-direction: column;
        padding: 60px 20px 20px;
    }
    
    .main-nav li {
        margin: 0 0 15px 0;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }
    
    /* Backdrop overlay */
    .nav-drop.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
}

/* Hero Section */
.hero-block {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 40px;
    display: block;
}

.hero-slick-slider {
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-slick-slider li {
    height: 100%;
}

.img-box {
    height: 100%;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Three Columns Section */
.three-cols {
    padding: 60px 0;
    background: #fff;
}

/* Fourth Tool Section */
.fourth-tool {
    padding: 60px 0;
    background: #f8f9fa;
}

.fourth-tool h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #1d2127;
}

.tool-description {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-description .img {
    flex: 0 0 300px;
}

.tool-description .img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tool-description .text {
    flex: 1;
    text-align: left;
}

.tool-description h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1d2127;
}

.tool-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.tool-description .btn {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .tool-description {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-description .img {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    
    .tool-description .text {
        text-align: center;
    }
}

.three-cols h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #1d2127;
}

.col-holders {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.col-holders li {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.col-holders .title {
    display: block;
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 20px;
    color: #1d2127;
}

.col-holders .img {
    margin-bottom: 20px;
}

.col-holders .main-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.col-holders p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
}

.btn-blue {
    background: #007bff;
    color: #fff;
}

.btn-blue:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-blue:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

/* Parallax Block */
.parallax-block {
    padding: 80px 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.parallax-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 33, 39, 0.7);
}

.text-box {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.text-box h3 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 300;
}

.text-box p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* Four Columns Section */
.four-columns {
    padding: 60px 0;
    background: #fff;
}

.four-columns h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #1d2127;
}

.responsive-slick-slider {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.responsive-slick-slider li {
    flex: 0 0 calc(25% - 15px);
    min-width: 280px;
}

.responsive-slick-slider .box {
    display: block;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.responsive-slick-slider .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.responsive-slick-slider .img {
    height: 200px;
    overflow: hidden;
}

.responsive-slick-slider .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.responsive-slick-slider .text {
    padding: 20px;
}

.responsive-slick-slider .text h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #1d2127;
}

.responsive-slick-slider .text p {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
}

/* Footer Styles */
#footer {
    background: #1d2127;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-holder {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.left-form-box {
    flex: 1;
    min-width: 300px;
}

.left-form-box .title {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #ff7301;
}

.left-form-box img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.right-links {
    flex: 2;
    min-width: 400px;
}

.link-lists-holder {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.link-lists {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.link-lists .col {
    flex: 1;
    min-width: 150px;
}

.link-lists .title {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #ff7301;
    display: block;
}

.link-lists .nav {
    list-style: none;
}

.link-lists .nav li {
    margin-bottom: 8px;
}

.link-lists .nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-lists .nav a:hover {
    color: #ff7301;
}

.social-networks {
    display: flex;
    list-style: none;
    gap: 15px;
}

.social-networks a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-networks a:hover {
    background: #ff7301;
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Cookie Consent */
.cc-window {
    background: #1d2127 !important;
    border-top: 3px solid #ff7301;
}

.cc-btn {
    background: #ff7301 !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
}

/* Tablet and Mobile Optimization */
@media (max-width: 992px) {
    .three-cols h1 {
        font-size: 2em;
    }
    
    .col-holders li {
        min-width: calc(50% - 15px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .logo img {
        height: 40px;
    }
    
    #header {
        padding: 12px 0;
    }
    
    /* Hide hero banner on mobile */
    .hero-block {
        display: none;
    }
    
    .three-cols {
        padding: 30px 0 40px;
    }
    
    .three-cols h1 {
        font-size: 1.6em;
        margin-bottom: 25px;
        padding: 0 10px;
        line-height: 1.3;
    }
    
    .three-cols h1 sup {
        font-size: 0.5em;
        vertical-align: super;
    }
    
    .col-holders {
        flex-direction: column;
        gap: 20px;
    }
    
    .col-holders li {
        min-width: 100%;
        padding: 25px 20px;
    }
    
    .col-holders .title {
        font-size: 1.15em;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    .col-holders .main-img {
        max-width: 140px;
    }
    
    .col-holders p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .fourth-tool {
        padding: 40px 0;
    }
    
    .fourth-tool h2 {
        font-size: 1.6em;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .tool-description .img {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .tool-description h3 {
        font-size: 1.4em;
    }
    
    .tool-description p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .four-columns {
        padding: 40px 0;
    }
    
    .four-columns h2 {
        font-size: 1.6em;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .responsive-slick-slider {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .responsive-slick-slider li {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
    }
    
    .box {
        padding: 15px;
    }
    
    .box .text h3 {
        font-size: 1em;
    }
    
    .box .text p {
        font-size: 13px;
    }
    
    .footer-holder {
        flex-direction: column;
        gap: 30px;
    }
    
    .left-form-box {
        min-width: 100%;
        text-align: center;
    }
    
    .left-form-box img {
        margin: 0 auto 15px;
    }
    
    .right-links {
        min-width: 100%;
    }
    
    .link-lists {
        flex-direction: column;
        gap: 25px;
    }
    
    .link-lists .col {
        min-width: 100%;
        text-align: center;
    }
    
    .link-lists .nav {
        padding: 0;
    }
    
    .social-networks {
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
        margin-top: 30px;
    }
    
    .parallax-block {
        padding: 50px 0;
        background-attachment: scroll;
        background-position: center;
    }
    
    .text-box {
        padding: 30px 20px;
        background: rgba(0,0,0,0.7);
        border-radius: 8px;
    }
    
    .text-box h3 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    
    .text-box p {
        font-size: 0.95em;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 35px;
    }
    
    /* Keep hero hidden on small mobile */
    .hero-block {
        display: none;
    }
    
    .three-cols {
        padding: 20px 0 30px;
    }
    
    .three-cols h1 {
        font-size: 1.3em;
        margin-bottom: 20px;
        padding: 0 5px;
        line-height: 1.2;
    }
    
    .three-cols h1 sup {
        font-size: 0.45em;
    }
    
    .col-holders li {
        padding: 20px 15px;
    }
    
    .col-holders .title {
        font-size: 1.05em;
        font-weight: 600;
    }
    
    .col-holders .main-img {
        max-width: 120px;
    }
    
    .col-holders p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .btn {
        max-width: 100%;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .fourth-tool {
        padding: 30px 0;
    }
    
    .fourth-tool h2 {
        font-size: 1.3em;
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .tool-description .img {
        margin-bottom: 15px;
    }
    
    .tool-description .img img {
        max-width: 100%;
    }
    
    .tool-description h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    .tool-description p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .four-columns {
        padding: 30px 0;
    }
    
    .four-columns h2 {
        font-size: 1.3em;
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .responsive-slick-slider {
        gap: 12px;
    }
    
    .responsive-slick-slider li {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .box {
        padding: 12px;
    }
    
    .box .img {
        max-width: 100px;
        margin: 0 auto;
    }
    
    .box .text h3 {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
    
    .box .text p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .parallax-block {
        padding: 40px 0;
        background-attachment: scroll;
    }
    
    .text-box {
        padding: 25px 15px;
        background: rgba(0,0,0,0.75);
        border-radius: 8px;
    }
    
    .text-box h3 {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    
    .text-box p {
        font-size: 0.85em;
        line-height: 1.5;
    }
    
    #footer {
        padding: 30px 0 15px;
    }
    
    .left-form-box .title {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    .left-form-box p {
        font-size: 13px;
    }
    
    .link-lists .title {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .link-lists .nav li {
        margin-bottom: 6px;
    }
    
    .link-lists .nav a {
        font-size: 13px;
    }
    
    .social-networks a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Utility Classes */
.visible-xs {
    display: none;
}

@media (max-width: 768px) {
    .visible-xs {
        display: block;
    }
}

.mg-top-50 {
    margin-top: 50px;
}

/* Additional animations and transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.col-holders li {
    animation: fadeIn 0.6s ease-out forwards;
}

.col-holders li:nth-child(2) {
    animation-delay: 0.2s;
}

.col-holders li:nth-child(3) {
    animation-delay: 0.4s;
}

/* Form styling */
form {
    margin-top: 20px;
}

input[type="hidden"] {
    display: none;
}

/* Link styling */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}
