/* =========================================================
   BASIC WEBSITE STYLES
   ---------------------------------------------------------
   This file controls the appearance of the whole website.

   Most colours, spacing and sizes can be changed in the
   :root section below without editing every CSS rule.
========================================================= */


/* =========================================================
   1. WEBSITE VARIABLES
   ---------------------------------------------------------
   Change these values to quickly customise the site.
========================================================= */

:root {
    /* Main website colours */
    --page-background: #fbfbf2;
    --content-background: #ffffff;
    --nav-background: #7C2946;
    --nav-text: #ffffff;
    --main-text: #25282c;
    --muted-text: #636b74;
    --accent-colour: #951661;
    --accent-hover: #56368f;
    --border-colour: #d9dde3;
	--hero-background: #52001E;

    /* Width of the main page content */
    --maximum-page-width: 1200px;

    /* Rounded corner sizes */
    --small-radius: 6px;
    --large-radius: 14px;

    /* Shadows */
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    /* Main font */
    --main-font: Arial, Helvetica, sans-serif;
}


/* =========================================================
   2. BASIC RESET
   ---------------------------------------------------------
   These rules help the site look consistent in different
   web browsers.
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--main-font);
    color: var(--main-text);
    background: var(--page-background);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.h2center {
	text-align: center;
}

.p-justify {
	text-align: justify;
}

/* =========================================================
   3. SHARED PAGE WIDTH
   ---------------------------------------------------------
   Apply the page-width class to sections that should stay
   centred and not stretch across the full screen.
========================================================= */

.page-width {
    width: min(100% - 40px, var(--maximum-page-width));
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   4. NAVIGATION BAR
   ---------------------------------------------------------
   Change --nav-background and --nav-text in :root to alter
   the main navigation colours.
========================================================= */

.main-nav {
    position: sticky;       /* Keeps the nav visible while scrolling */
    top: 0;
    z-index: 1000;
    background: var(--nav-background);
    color: var(--nav-text);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.nav-inner {
    width: min(100% - 40px, var(--maximum-page-width));
    min-height: 68px;
    margin: 0 auto;

    /* Flex puts the website name and links on one line */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-name {
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a {
    padding: 9px 13px;
    text-decoration: none;
    border-radius: var(--small-radius);
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}


/* =========================================================
   5. HERO SECTION
   ---------------------------------------------------------
   The hero is the large introductory area below the nav.
========================================================= */

.hero {
    padding: 50px 0;
    text-align: center;
    color: #ffffff;
    background: var(--hero-background);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 18px;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.1;
}

.hero p {
    max-width: 680px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
}


/* =========================================================
   6. BUTTONS AND LINKS
========================================================= */

.button {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
    background: var(--accent-colour);
    border-radius: var(--small-radius);
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.text-link {
    color: var(--accent-colour);
    font-weight: bold;
    text-decoration: none;
}

.text-link-service {
    color: #FFFFFF;
    font-weight: bold;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.service-button {
	
	display: inline-block; 
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    background: var(--accent-colour);
    border-radius: var(--small-radius);
}

.service-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* =========================================================
   7. GENERAL SECTIONS
========================================================= */

.section {
    padding: 70px 0;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}


/* =========================================================
   8. FLEX CARD CONTAINER
   ---------------------------------------------------------
   display:flex places the cards next to each other.

   flex-wrap:wrap lets them move to another row if there is
   not enough space.

   gap controls the space between cards.
========================================================= */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.flex-card {
    /*
       flex-grow: 1 means cards expand to fill available space.
       280px is the preferred minimum width of each card.
    */
    flex: 1 1 280px;
	margin-top: 0px;
	display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 28px;
    background: var(--content-background);
    border: 1px solid var(--border-colour);
    border-radius: var(--large-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flex-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 35px rgba(0, 0, 0, 0.12);
}

.flex-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.flex-card p {
    color: var(--muted-text);
}


/* =========================================================
   9. TWO-COLUMN FLEX LAYOUT
   ---------------------------------------------------------
   This creates two flexible columns.
   Change 360px to control when the columns begin stacking.
========================================================= */

.two-column-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 30px;
}

.column {
    flex: 1 1 360px;
}

.highlight-box {
    padding: 30px;
    background: var(--content-background);
    border-left: 6px solid var(--accent-colour);
    border-radius: var(--large-radius);
    box-shadow: var(--card-shadow);
}


/* =========================================================
   10. CONTACT SECTION
========================================================= */

.contact-section {
    margin-bottom: 70px;
    padding-left: 30px;
    padding-right: 30px;
    background: var(--content-background);
    border: 1px solid var(--border-colour);
    border-radius: var(--large-radius);
    box-shadow: var(--card-shadow);
}


/* =========================================================
   11. FOOTER
========================================================= */

.footer {
    padding: 25px 0;
    text-align: center;
    color: #dfe4ea;
    background: var(--hero-background);
}

.footer p {
    margin: 0;
}


/* =========================================================
   12. MOBILE SCREEN SETTINGS
   ---------------------------------------------------------
   These rules apply when the screen is 700px wide or less.
========================================================= */

@media (max-width: 700px) {

    .nav-inner {
        padding: 15px 0;
        flex-direction: column;
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
    }

    .hero {
        padding: 65px 0;
    }

    .section {
        padding: 50px 0;
    }
}


/* =========================================================
   EXTRA CUSTOMISATION IDEAS
   ---------------------------------------------------------
   1. Change the colour values in :root.
   2. Change --maximum-page-width to make content wider.
   3. Duplicate a .flex-card div in the HTML to add cards.
   4. Change "Arial" in --main-font to another web-safe font.
   5. Increase or decrease padding values to change spacing.
   6. Remove position: sticky from .main-nav if you do not
      want the navigation bar to stay at the top.
========================================================= */
