/*
  Stylesheet for the StatesCorp website

  This CSS file defines a colour palette and layout rules that
  reflect the company’s dark‑navy and gold visual identity. The
  design emphasises legibility and a modern aesthetic while
  retaining a classical feel inspired by the crest imagery. Many
  measurements are defined relative to the root font size for
  responsiveness.
*/

/* Colour variables allow the palette to be adjusted in a single
   place. */
:root {
    --color-bg: #0a1931;           /* primary background (dark navy) */
    --color-surface: #112a45;      /* surfaces such as nav and cards */
    --color-primary: #c1a56f;      /* gold for highlights and headings */
    --color-light: #e2d3b1;        /* light gold for text */
    --color-accent: #96764f;       /* darker gold accent for buttons */
    --color-link-hover: #d9b887;   /* hover state for links */
    --font-title: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-light);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
}

/* Navigation bar */
nav {
    background-color: var(--color-surface);
    color: var(--color-light);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-family: var(--font-title);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    font-weight: bold;
}

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

nav li {
    font-size: 0.95rem;
}

nav li a {
    color: var(--color-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Hero section */
.hero {
    position: relative;
    /* Use the company logo (world map and ship) as the hero banner */
    background-image: url('logo.png');
    background-size: cover;
    background-position: center;
    height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-light);
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 49, 0.5);
    /* dark overlay to improve text legibility */
}

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

.hero h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

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

.button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: var(--color-link-hover);
}

/* Section generic styles */
section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

section h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-align: center;
}

section p {
    max-width: 800px;
    margin: 0.5rem auto 2rem;
    text-align: center;
}

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

.card {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-light);
    text-align: left;
}

/* Crest image styling */
.crest {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.crest img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* StatesMan page */
.statesman-hero {
    position: relative;
    /* Reuse the logo image for the StatesMan page to maintain visual consistency */
    background-image: url('logo.png');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.statesman-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 49, 0.6);
}

.statesman-hero h1 {
    position: relative;
    z-index: 1;
    font-family: var(--font-title);
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Contact form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

label {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--color-accent);
    background-color: var(--color-bg);
    color: var(--color-light);
    font-size: 0.9rem;
}

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

input[type="submit"] {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: var(--color-link-hover);
}

/* Footer */
footer {
    background-color: var(--color-surface);
    color: var(--color-light);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    nav ul {
        gap: 1rem;
    }
}