/*--- General site layout ---*/

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex; /* Vertical layout of main elements */
    flex-direction: column;
    align-items: stretch;
    line-height: 1.5; /* Make default line height more accessible */
    font-family: "Calibri Light", Calibri, Arial, sans-serif; 
}

* {
    box-sizing: border-box;
}

.content {
    width: min(1100px, 90%);
    margin: 40px auto;
}

/*--- Header styling ---*/

header {
    background-image: url("Images/Santorini.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    margin-bottom: 0.5em;
    text-align: left;
    width: 100%;
}

.page-header {
    width: min(1100px,90%);
    margin: 40px auto;
    text-align: center;
}

.navigation-list {
    align-items:center;
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 20px 40px;
}

nav a {
    color: white;
    font-size: 14pt;
    text-decoration: none;
}

nav a:hover {
    text-decoration:underline;
}

.logo a {
    background-image: url("Images/Company_logo_white.png");
    background-size: 300px;
    width: 300px;
    height: 190px;
    background-repeat: no-repeat;
    display: inline-block;
    text-indent: -99999999px;
}

/*--- footer styling ---*/

footer {
    background-color: #1A3D6D;
    color: white;
    padding: 30px 40px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.footer-links ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media img {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 20px;
}


/*--- typography styling ---*/

h1 {
    color: #000000;
    font-family: "Calibri", Arial, sans-serif;
    font-size: 26pt;
    font-weight: bold;
    letter-spacing: -0.66px;
    line-height:1;
    margin-top: 36pt;
    margin-bottom: 12pt;
    text-align: center; /*---style guide advises left align, but advise center align for website ---*/
}

h2 {
    color: #1A3D6D;
    font-family: "Calibri", Arial, sans-serif;
    font-size: 20pt;
    line-height: 22pt;
    margin-top: 18pt;
    margin-bottom: 12pt;
    text-align: center; /*---style guide advises left align, but advise center align for website ---*/
}

h3 {
    color: #202945;
    font-family: "Calibri", Arial, sans-serif;
    font-size: 18pt;
    letter-spacing: -0.66px;
    margin-top: 18pt;
    margin-bottom: 12pt;
}

h4 {
    color: #202945;
    font-family: "Calibri", Arial, sans-serif;
    font-size: 16pt;
    font-weight: bold;
    margin-top: 18pt;
    margin-bottom: 10pt;
}

p {
    color: #000000;
    font-family: "Calibri Light", 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 14pt; /* Ttyle guide has 11pt font, however this is too small for website */
    line-height: 1.2;
    margin: 10pt 0;
}


.navigation-link {
    color: #374d94;
    padding: 0.7em;
    text-decoration: none;
    font-weight: bold;
}

.copyright {
    color: white;
}

/* --- Images styling --- */

.image-row {
    display: flex;
    gap: 20px;
    margin: 30px auto;
    width:min(1100px,90%)
}

.image-row img {
    flex: 1;
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.closing-image {
    width: 100%;
    margin-top: 40px;
}

.closing-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Section styling ---*/

.about-us h3,
.why-choose-us h3 {
    margin-top: 18pt;
    margin-bottom: 12pt;
    text-align: left;
}
.about-us, 
.why-choose-us {
    width: 80%;
    margin: 30px 0 30px 40px;
    text-align: left;
}

/* --- List styling --- */

ul {
    font-size: 14pt;
    color: #000000;
    list-style-type: circle;
    margin: 3pt 20px;
    padding-left: 0.63cm;
    line-height: 1.2;
    text-align: left;
}

li {
    margin-bottom: 3pt;
}

li a {
    font-size: 14pt;
}

.why-choose-us ul {
    margin-top: 0;
}

/* --- Table styling --- */

.services,
.membership  {
    margin: 30px 0 30px 40px;
    text-align: left;
    width: 80%;
}

.services table {
    width: 100%;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #1A3D6D;
    font-size: 14pt;
    margin: 0;
}

thead {
    background-color: #1A3D6D;
}

td {
    border: 1px solid #1A3D6D;
    padding: 8px 10px;
    text-align: left;
}

th {
    color: white;
    font-weight: bold;
    font-size: 14pt;
    line-height: 1;
    padding-top: 3pt;
    padding-bottom: 3pt;
}

tbody td {
    color: black;
    font-size: 14pt;
    line-height: 1.1;
    padding-top: 3pt;
    padding-bottom: 3pt;
}

tbody tr:nth-child(odd) {
    background-color: white;
}

tbody tr:nth-child(even) {
    background-color: #F8F8F8;
}

/*--- Contact section styling ---*/

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    width: 90%;
    margin: 40px auto;
}

.contact-form {
    flex: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14pt;
    color: rgb(32, 41, 69);
}

.contact-form input,
 .contact-form textarea {
    padding: 10px;
    font-size: 14pt;
    border: 1px solid #1A3D6D;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input[type="submit"] {
    margin-top: 20px;
    background-color: #1A3D6D;
    color: white;
    border: none;
    padding: 12px;
    font-size: 14pt;
    cursor: pointer;
    border-radius: 5px;
}

.contact-form input[type="submit"]:hover {
    background-color: #1A3D6D;
}

/*--- Accessibility ---*/

a:hover,
a:focus{
    text-decoration:underline;
}


button:hover,
button:focus{
    opacity:0.9;
}

textarea:focus {
    outline: 2px solid #1A3D6D;
    outline-offset: 2px;
}

/* --- Responsive layout --- */

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}