/*==========================================================
HVACSENIOR TEMPERATURE CONVERTER
Professional Edition
==========================================================*/

/*----------------------------------------------------------
RESET
----------------------------------------------------------*/

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

:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --secondary:#10b981;
    --dark:#0f172a;

    --text:#334155;
    --text-light:#64748b;

    --bg:#f4f7fb;
    --white:#ffffff;

    --border:#e2e8f0;

    --radius:22px;

    --shadow:
        0 15px 45px rgba(15,23,42,.08);

    --shadow-hover:
        0 22px 55px rgba(15,23,42,.14);

}

/*----------------------------------------------------------
PAGE
----------------------------------------------------------*/

.temperature-page{

    background:var(--bg);

    min-height:100vh;

    padding:20px 0 80px;

}

.temperature-container{

    width:100%;

    max-width:1000px;

    margin:auto;

    padding:0 0px;

}

/*----------------------------------------------------------
BREADCRUMB
----------------------------------------------------------*/

.calculator-breadcrumb{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:30px;

    font-size:15px;

}

.calculator-breadcrumb a{

    color:var(--primary);

    text-decoration:none;

    font-weight:600;

}

.calculator-breadcrumb a:hover{

    text-decoration:underline;

}

.calculator-breadcrumb span{

    color:#64748b;

}

/*----------------------------------------------------------
HERO
----------------------------------------------------------*/

.temperature-hero{

    display:grid;

    grid-template-columns:1.15fr .85fr;

    gap:25px;

    align-items:center;

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8,
        #0f172a
    );

    border-radius:26px;

    padding:28px 35px;

    min-height:420px;

    overflow:hidden;

    position:relative;

    box-shadow:0 20px 45px rgba(15,23,42,.18);

}

/* Decorative Circles */

.temperature-hero::before{

    content:"";

    position:absolute;

    width:50px;

    height:50px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    right:-180px;

    top:-180px;

}

.temperature-hero::after{

    content:"";

    position:absolute;

    width:10px;

    height:50px;

    border-radius:50%;

    background:rgba(255,255,255,.05);

    left:-120px;

    bottom:-120px;

}

/*----------------------------------------------------------
LEFT
----------------------------------------------------------*/

.hero-left{

    position:relative;

    z-index:2;

}

.hero-icon{

    width:40px;

    height:40px;

    border-radius:22px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(8px);

    margin-bottom:30px;

}

.hero-icon i{

    color:#fff;

    font-size:42px;

}

.hero-content h1{

    color:#fff;

    font-size:20px;

    font-weight:800;

    line-height:1.15;

    margin-bottom:20px;

}

.hero-content p{

    color:rgba(255,255,255,.92);

    font-size:10px;

    line-height:1.0;

    margin-bottom:35px;

    max-width:650px;

}

.hero-content strong{

    color:#fff;

}

/*----------------------------------------------------------
FEATURES
----------------------------------------------------------*/

.hero-features{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

}

.hero-feature{

    display:flex;

    align-items:center;

    gap:14px;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.15);

    backdrop-filter:blur(10px);

    border-radius:18px;

    padding:5px;

    transition:.35s;

}

.hero-feature:hover{

    transform:translateY(-5px);

    background:rgba(255,255,255,.18);

}

.feature-icon{

    width:20px;

    height:20px;

    border-radius:14px;

    background:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    color:var(--primary);

    flex-shrink:0;

}

.feature-icon i{

    font-size:18px;

}

.hero-feature strong{

    display:block;

    color:#fff;

    font-size:15px;

    margin-bottom:4px;

}

.hero-feature span{

    color:rgba(255,255,255,.80);

    font-size:13px;

}

/*----------------------------------------------------------
RIGHT
----------------------------------------------------------*/

.hero-right{

    display:flex;

    justify-content:center;

    align-items:center;

    position:relative;

    z-index:2;

}

.hero-right img{
    width:220px !important;
    height:auto !important;
    max-width:100px !important;

    filter:drop-shadow(0 25px 40px rgba(0,0,0,.25));

    animation:heroFloat 5s ease-in-out infinite;

}

@keyframes heroFloat{

    0%{transform:translateY(0);}
    50%{transform:translateY(-12px);}
    100%{transform:translateY(0);}

}

/*----------------------------------------------------------
TABLET
----------------------------------------------------------*/

@media(max-width:1024px){

    .temperature-hero{

        grid-template-columns:1fr;

        text-align:center;

    }

    .hero-right{

        order:-1;

    }

    .hero-icon{

        margin-left:auto;

        margin-right:auto;

    }

    .hero-features{

        grid-template-columns:1fr;

        max-width:500px;

        margin:auto;

    }

}

/*----------------------------------------------------------
MOBILE
----------------------------------------------------------*/

@media(max-width:768px){

    .temperature-page{

        padding:20px 0 60px;

    }

    .temperature-container{

        padding:0 15px;

    }

    .temperature-hero{

        padding:35px 25px;

        border-radius:22px;

        gap:30px;

    }

    .hero-content h1{

        font-size:34px;

    }

    .hero-content p{

        font-size:16px;

    }

    .hero-right img{

        max-width:250px;

    }

}
/*==========================================================
PART 2
CONVERTER SECTION
==========================================================*/

/*----------------------------------------------------------
CONVERTER SECTION
----------------------------------------------------------*/

.converter-section{

    max-width:1200px;

    margin:10px auto 50px;

    padding:0 20px;

}

.converter-grid{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:30px;

    align-items:start;

}

/*----------------------------------------------------------
CARDS
----------------------------------------------------------*/

.calculator-card,
.results-card,
.scale-card,
.formula-card{

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.35s;

    width:100%;

}

.calculator-card:hover,
.results-card:hover,
.scale-card:hover,
.formula-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow-hover);

}

/*----------------------------------------------------------
CARD HEADER
----------------------------------------------------------*/

.card-header{

    padding:20px 28px;

}

.card-header.blue{

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

}

.card-header.green{

    background:linear-gradient(135deg,#10b981,#16a34a);

}

.card-header.white{

    background:#fff;

    border-bottom:1px solid var(--border);

}

.header-title{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:20px;

    font-weight:700;

    color:#fff;

}

.card-header.white .header-title{

    color:var(--primary);

}

.header-title i{

    font-size:20px;

}

/*----------------------------------------------------------
CARD BODY
----------------------------------------------------------*/

.card-body{

    padding:30px;

}

/*----------------------------------------------------------
FORM
----------------------------------------------------------*/

.form-group{

    margin-bottom:24px;

}

.form-group label{

    display:block;

    margin-bottom:10px;

    font-weight:600;

    color:var(--text);

    font-size:15px;

}

.form-group input,
.form-group select{

    width:100%;

    height:54px;

    padding:0 16px;

    border:1px solid var(--border);

    border-radius:12px;

    background:#fff;

    font-size:16px;

    transition:.3s;

}

.form-group input:focus,
.form-group select:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(37,99,235,.12);

}

/*----------------------------------------------------------
FROM / TO GRID
----------------------------------------------------------*/

.form-grid{

    display:grid;

    grid-template-columns:1fr 60px 1fr;

    gap:16px;

    align-items:end;

}

/*----------------------------------------------------------
SWAP BUTTON
----------------------------------------------------------*/

.swap-button{

    display:flex;

    align-items:center;

    justify-content:center;

}

.swap-button button{

    width:54px;

    height:54px;

    border:none;

    border-radius:14px;

    background:#eef5ff;

    color:var(--primary);

    cursor:pointer;

    transition:.35s;

    font-size:18px;

}

.swap-button button:hover{

    background:var(--primary);

    color:#fff;

    transform:rotate(180deg);

}

/*----------------------------------------------------------
BUTTONS
----------------------------------------------------------*/

.button-row{

    display:flex;

    gap:16px;

    margin-top:10px;

}

.convert-btn{

    flex:1;

    height:56px;

    border:none;

    border-radius:12px;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.35s;

}

.convert-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 28px rgba(37,99,235,.25);

}

.reset-btn{

    width:150px;

    height:56px;

    border:2px solid var(--border);

    border-radius:12px;

    background:#fff;

    color:var(--text);

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

}

.reset-btn:hover{

    border-color:var(--primary);

    color:var(--primary);

}

/*----------------------------------------------------------
RESULTS
----------------------------------------------------------*/

.result-main{

    text-align:center;

}

.result-main h3{

    color:var(--text-light);

    margin-bottom:12px;

    font-size:18px;

}

.result-value{

    font-size:52px;

    font-weight:800;

    color:#10b981;

    line-height:1.1;

    margin-bottom:30px;

    word-break:break-word;

}

.formula-box{

    margin:30px 0;

}

.formula-box h4,
.reference-box h4{

    margin-bottom:14px;

    color:var(--text);

}

#formulaUsed{

    background:#ecfdf5;

    border:1px solid #bbf7d0;

    border-radius:14px;

    padding:18px;

    text-align:center;

    color:#047857;

    font-weight:700;

    font-size:20px;

}

.reference-box{

    margin-top:25px;

}

.reference-box table{

    width:100%;

    border-collapse:collapse;

}

.reference-box td{

    padding:14px 0;

    border-bottom:1px solid #edf2f7;

    color:var(--text-light);

}

.reference-box tr:last-child td{

    border-bottom:none;

}

/*----------------------------------------------------------
RESPONSIVE
----------------------------------------------------------*/

@media(max-width:900px){

    .converter-grid{

        grid-template-columns:1fr;

    }

    .button-row{

        flex-direction:column;

    }

    .reset-btn{

        width:100%;

    }

}

@media(max-width:768px){

    .converter-section{

        padding:0 15px;

    }

    .card-body{

        padding:22px;

    }

    .form-grid{

        grid-template-columns:1fr;

    }

    .swap-button{

        margin:5px 0;

    }

    .swap-button button{

        width:100%;

    }

    .result-value{

        font-size:40px;

    }

}
/*==========================================================
PART 3
TEMPERATURE SCALE + FORMULA CARD
==========================================================*/

/*----------------------------------------------------------
TEMPERATURE SCALE SECTION
----------------------------------------------------------*/

.temperature-scale-section{

    max-width:1200px;

    margin:70px auto;

    padding:0 20px;

}

.scale-grid{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:30px;

    align-items:start;

}

/*----------------------------------------------------------
TEMPERATURE SCALE CARD
----------------------------------------------------------*/

.scale-wrapper{

    position:relative;

    margin:60px 10px 35px;

}

.temperature-scale{

    position:relative;

    height:22px;

    border-radius:999px;

    overflow:hidden;

    background:linear-gradient(
        to right,
        #1d4ed8 0%,
        #38bdf8 20%,
        #22c55e 45%,
        #facc15 65%,
        #fb923c 82%,
        #ef4444 100%
    );

    box-shadow:
        inset 0 2px 8px rgba(0,0,0,.15);

}

/*----------------------------------------------------------
INDICATOR
----------------------------------------------------------*/

#scaleIndicator{

    position:absolute;

    left:50%;

    top:-48px;

    transform:translateX(-50%);

    transition:left .35s ease;

}

#indicatorValue{

    display:inline-block;

    background:#0f172a;

    color:#fff;

    padding:8px 16px;

    border-radius:12px;

    font-size:14px;

    font-weight:700;

    white-space:nowrap;

}

#scaleIndicator::after{

    content:"";

    display:block;

    width:4px;

    height:40px;

    margin:auto;

    background:#0f172a;

    border-radius:10px;

}

/*----------------------------------------------------------
SCALE LABELS
----------------------------------------------------------*/

.scale-labels{

    display:flex;

    justify-content:space-between;

    margin-top:18px;

    color:#64748b;

    font-size:14px;

    font-weight:600;

}

.zone-labels{

    display:flex;

    justify-content:space-between;

    margin-top:28px;

    font-weight:700;

    font-size:15px;

}

.zone-labels .cold{

    color:#2563eb;

}

.zone-labels .comfort{

    color:#16a34a;

}

.zone-labels .hot{

    color:#ef4444;

}

/*----------------------------------------------------------
FORMULA CARD
----------------------------------------------------------*/

.formula-title{

    text-align:center;

    color:#64748b;

    font-size:15px;

    font-weight:600;

    margin-bottom:20px;

}

.formula-display{

    background:#eef5ff;

    border:1px solid #bfdbfe;

    border-radius:16px;

    padding:30px 20px;

    text-align:center;

    font-size:28px;

    font-weight:800;

    color:#2563eb;

    line-height:1.4;

    word-break:break-word;

}

.copy-formula{

    width:100%;

    height:56px;

    margin-top:25px;

    border:none;

    border-radius:14px;

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:#fff;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.copy-formula:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 28px rgba(37,99,235,.25);

}

/*----------------------------------------------------------
RESPONSIVE
----------------------------------------------------------*/

@media(max-width:900px){

    .scale-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .temperature-scale-section{

        padding:0 15px;

    }

    .scale-wrapper{

        margin:50px 5px 30px;

    }

    .formula-display{

        font-size:22px;

        padding:24px 18px;

    }

    .zone-labels{

        font-size:13px;

    }

}
/*==========================================================
PART 4
INFORMATION CARDS + CTA + RESPONSIVE
==========================================================*/

/*----------------------------------------------------------
INFORMATION SECTION
----------------------------------------------------------*/

.temperature-info-section{

    max-width:1200px;

    margin:70px auto;

    padding:0 20px;

}

.info-grid{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:30px;

}

/*----------------------------------------------------------
INFO CARD
----------------------------------------------------------*/

.info-card{

    background:#fff;

    border-radius:22px;

    padding:35px;

    box-shadow:var(--shadow);

    transition:.35s;

}

.info-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow-hover);

}

.info-icon{

    width:70px;

    height:70px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:18px;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

    margin-bottom:25px;

}

.info-icon i{

    font-size:28px;

}

.info-card h3{

    font-size:28px;

    color:var(--dark);

    margin-bottom:18px;

}

.info-card p{

    color:var(--text-light);

    line-height:1.8;

    margin-bottom:18px;

}

.info-card ul{

    margin:0;

    padding-left:20px;

}

.info-card li{

    color:var(--text);

    margin-bottom:12px;

    line-height:1.7;

}

/*----------------------------------------------------------
TABLES
----------------------------------------------------------*/

.info-table{

    width:100%;

    border-collapse:collapse;

}

.info-table tr{

    border-bottom:1px solid #edf2f7;

}

.info-table tr:last-child{

    border-bottom:none;

}

.info-table td{

    padding:14px 0;

    color:var(--text);

    font-size:15px;

}

.info-table td:last-child{

    text-align:right;

    font-weight:700;

    color:var(--primary);

}

/*----------------------------------------------------------
CTA
----------------------------------------------------------*/

.calculator-cta{

    max-width:1200px;

    margin:80px auto 40px;

    padding:0 20px;

}

.cta-box{

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:#fff;

    text-align:center;

    border-radius:28px;

    padding:60px 50px;

    box-shadow:
        0 25px 60px rgba(37,99,235,.22);

}

.cta-box h2{

    color:#fff;

    font-size:40px;

    margin-bottom:20px;

}

.cta-box p{

    max-width:760px;

    margin:0 auto 35px;

    font-size:18px;

    line-height:1.8;

    color:rgba(255,255,255,.92);

}

.cta-button{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    padding:18px 42px;

    border-radius:50px;

    background:#fff;

    color:var(--primary);

    text-decoration:none;

    font-weight:700;

    font-size:17px;

    transition:.35s;

}

.cta-button:hover{

    background:#eff6ff;

    transform:translateY(-3px);

}

/*----------------------------------------------------------
TABLET
----------------------------------------------------------*/

@media(max-width:1024px){

    .info-grid{

        grid-template-columns:1fr;

    }

    .cta-box{

        padding:45px;

    }

    .cta-box h2{

        font-size:34px;

    }

}

/*----------------------------------------------------------
MOBILE
----------------------------------------------------------*/

@media(max-width:768px){

    .temperature-info-section,
    .calculator-cta{

        padding:0 15px;

    }

    .info-card{

        padding:25px;

    }

    .info-icon{

        width:60px;

        height:60px;

    }

    .info-icon i{

        font-size:24px;

    }

    .info-card h3{

        font-size:24px;

    }

    .info-card p{

        font-size:15px;

    }

    .info-table td{

        font-size:14px;

        padding:12px 0;

    }

    .cta-box{

        padding:35px 25px;

        border-radius:22px;

    }

    .cta-box h2{

        font-size:28px;

        line-height:1.3;

    }

    .cta-box p{

        font-size:16px;

    }

    .cta-button{

        width:100%;

        padding:16px;

    }

}

/*----------------------------------------------------------
SMALL MOBILE
----------------------------------------------------------*/

@media(max-width:480px){

    .temperature-container{

        padding:0 12px;

    }

    .hero-content h1{

        font-size:30px;

    }

    .hero-content p{

        font-size:15px;

    }

    .result-value{

        font-size:34px;

    }

    .formula-display{

        font-size:20px;

    }

    .info-card{

        border-radius:18px;

    }

    .cta-box{

        padding:28px 20px;

    }

    .cta-box h2{

        font-size:24px;

    }

}
/*==========================================================
EXTRA SMALL PHONES
==========================================================*/

@media (max-width:375px){

    .hero-content h1{
        font-size:26px;
    }

    .hero-content p{
        font-size:14px;
        line-height:1.6;
    }

    .card-body{
        padding:18px;
    }

    .result-value{
        font-size:30px;
    }

    .formula-display{
        font-size:18px;
        padding:18px 12px;
    }

    .header-title{
        font-size:18px;
    }

    .form-group input,
    .form-group select,
    .convert-btn,
    .reset-btn{
        height:50px;
        font-size:15px;
    }

    .scale-labels{
        font-size:11px;
    }

    .zone-labels{
        font-size:11px;
    }

}