/* ==========================================
   EAST END MOORING & SALVAGE
   GLOBAL STYLESHEET
   ========================================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f7fa;
    color:#1a1a1a;
    line-height:1.6;
}

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

section{
    padding:30px 20px;
    max-width:1000px;
    margin:auto;
}

h1{
    margin-bottom:15px;
    line-height:1.2;
}

h2{
    color:#023e8a;
    margin-bottom:15px;
    line-height:1.3;
}

h3{
    margin-top:20px;
    margin-bottom:10px;
    line-height:1.4;
}

p{
    margin-bottom:18px;
}

a{
    color:#0077b6;
    transition:all .2s ease;
}

a:hover{
    color:#023e8a;
}

header{
    background:linear-gradient(135deg,#023e8a,#0077b6);
    color:white;
    text-align:center;
    padding:60px 20px;
}

.logo-container{
    background:white;
    display:inline-block;
    padding:20px 30px;
    border-radius:10px;
    margin-bottom:10px;
    box-shadow:0 5px 18px rgba(0,0,0,.15);
}

.logo{
    max-width:320px;
    width:100%;
}

.home-link{
    margin-bottom:20px;
}

.home-link a{
    color:white;
    text-decoration:underline;
}

.cta-btn{
    display:inline-block;
    padding:12px 22px;
    margin:8px;
    background:white;
    color:#023e8a;
    text-decoration:none;
    border-radius:6px;
    font-weight:bold;
    transition:all .25s ease;
}

.cta-btn:hover{
    background:#e9f5ff;
    transform:translateY(-2px);
}
/* ===============================
   CARD BUTTONS
   =============================== */

.service-box .cta-btn,
.location-box .cta-btn{

    margin-top:18px;
    margin-left:0;
    margin-right:0;

    background:#023e8a;
    color:#fff;

    text-align:center;

}

.service-box .cta-btn:hover,
.location-box .cta-btn:hover{

    background:#0353b3;
    color:#fff;

}

/* ===============================
   SERVICE BOXES
   =============================== */

.services{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin-top:20px;
}

.service-box{
    background:white;
    padding:15px;
    border-radius:8px;
    transition:all .25s ease;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.service-box:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 22px rgba(0,0,0,.10);
}

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

.locations{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin-top:20px;
}

.location-box{
    background:white;
    padding:15px;
    border-radius:8px;
    text-align:center;
    transition:all .25s ease;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.location-box:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 22px rgba(0,0,0,.10);
}

.location-box a{
    display:block;
    text-decoration:none;
    color:#023e8a;
    font-weight:bold;
}

.location-box a:hover{
    color:#0077b6;
}

/* ===============================
   CONTACT FORM
   =============================== */

.form-container{
    background:white;
    padding:22px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

input,
textarea{
    width:100%;
    padding:10px;
    margin-bottom:12px;
    border-radius:5px;
    border:1px solid #ccc;
    font-size:16px;
    transition:border-color .2s ease, box-shadow .2s ease;
}

textarea{
    min-height:140px;
    resize:vertical;
}

input:focus,
textarea:focus{
    outline:none;
    border-color:#0077b6;
    box-shadow:0 0 0 3px rgba(0,119,182,.15);
}

button{
    background:#0077b6;
    color:white;
    padding:12px;
    width:100%;
    border-radius:5px;
    border:none;
    cursor:pointer;
    font-size:16px;
    transition:all .25s ease;
}

button:hover{
    background:#005f91;
}

button:disabled{
    background:#5b8fb3;
    cursor:not-allowed;
    opacity:.8;
}

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

footer{
    background:#023e8a;
    color:white;
    text-align:center;
    padding:18px;
    margin-bottom:60px;
}

footer p{
    margin:0;
}

/* ===============================
   STICKY BAR
   =============================== */

.sticky-bar{
    position:fixed;
    bottom:0;
    width:100%;
    background:#023e8a;
    display:flex;
    justify-content:space-around;
    align-items:center;
    padding:10px;
    box-shadow:0 -3px 10px rgba(0,0,0,.15);
    z-index:999;
}

.sticky-bar a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:opacity .2s ease;
}

.sticky-bar a:hover{
    opacity:.8;
}

/* ===============================
   MOBILE
   =============================== */

@media (max-width:768px){

    header{
        padding:45px 20px;
    }

    .logo{
        max-width:260px;
    }

    .cta-btn{
        display:block;
        margin:10px auto;
        max-width:280px;
    }

    .services{
        grid-template-columns:1fr;
    }

    .locations{
        grid-template-columns:1fr;
    }

}