/*
 * Global stylesheet for the hosting business website.
 *
 * This stylesheet defines a consistent look and feel across
 * all pages, utilising a modern colour palette inspired by
 * trustworthy blues and fresh greens. Responsive design is
 * achieved via flexible grids and media queries. Accessibility
 * considerations include high contrast text and clear focus
 * states. Feel free to tweak the CSS variables at the top
 * to customise the theme.
 */

:root {
    /* Core colours */
    --primary-color: #0d47a1;        /* deep blue conveys trust */
    --secondary-color: #1976d2;      /* brighter blue for highlights */
    --accent-color: #009688;         /* teal accent for calls to action */
    --light-color: #f5f5f5;          /* very light grey background */
    --dark-color: #333333;           /* body text colour */
    --max-width: 1200px;             /* maximum content width */
    --transition: all 0.3s ease-in-out;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav li a {
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

nav li a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    nav ul.open {
        max-height: 300px;
    }
    .hamburger {
        display: block;
    }
}

/* Hero section */
.hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 600;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Sections */
.section {
    padding: 4rem 1rem;
}

.section .container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature p {
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Pricing table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-plan {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-plan h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.pricing-plan .price {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--accent-color);
}

.pricing-plan ul {
    list-style: none;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.pricing-plan ul li {
    margin-bottom: 0.5rem;
}

.pricing-plan .btn {
    margin-top: auto;
}

/* Domain search */
.domain-search {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.domain-search input[type="text"] {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    min-width: 250px;
}

.domain-search button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: var(--accent-color);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.domain-search button:hover {
    background-color: var(--secondary-color);
}

.domain-result {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

.contact-form button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: var(--accent-color);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: #0a2540;
    color: #ffffff;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer .column {
    flex: 1 1 200px;
}

.footer h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer ul {
    list-style: none;
}

.footer ul li a {
    color: #bbd4e7;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer ul li a:hover {
    color: #ffffff;
}

.footer .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer .social-icons a {
    color: #bbd4e7;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer .social-icons a:hover {
    color: var(--accent-color);
}

/* Small caption style for image sources */
.image-source {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
}

.image-source a {
    color: #666;
    text-decoration: underline;
}

.image-source a:hover {
    color: var(--secondary-color);
}