/* ---------- Root Variables ----------
   Define colors, fonts, and spacing scales here
   so you can reuse them consistently.
-------------------------------------- */

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-text: #222222;
  --color-accent: #f9f9f9;
  --color-accent-light: #f1f1f1;
  --color-accent-dark: #d5d5d5;
  --color-border: #dddddd;

  /* Typography */
  --font-base: 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height: 1.6;
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Work Sans', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --max-width: 1440px;
}

/* ---------- CSS Reset ----------
   Normalize differences across browsers.
   (A minimal reset, not as heavy as Normalize.css)
-------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 16px by default */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body), var(--font-base), sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Remove default list & link styles */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Headings: consistent spacing & weight */
h1, h2, h3, h4, h5, h6 {
  margin: var(--space-md) 0 var(--space-sm);
  font-family: var(--font-heading), sans-serif;
  font-weight: 300;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: 0.02rem;
}

/* Paragraphs */
p {
  margin: 0 0 var(--space-sm);
  font-size: clamp(0.75rem, 4vw, 1rem);
}

/* button styling */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 0.5em;
  border: 3px solid #efefef;
  background: #d31510;
  color: #ffffff;
  font-size: 0.9em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  border-color: #f75c46;
  background: #ea3829;
  transition: color 0.3s ease;
}

.btn:active {
  transform: translateY(0);
}

/* ---------- Global Layout ----------
   Containers, sections, and wrapper styles
-------------------------------------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: 3em 1em 3.5em 1em;
}

/* ---------- Header & Nav ---------- */
header.top-bar {
  background: #ffffff;
  color: #222222;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  position: relative;
}

.logo-title {
  display: flex;
  align-items: center;
}

.logo-title .logo {
  display: block;
  position: relative;
  z-index: 11;
  height: clamp(110px, 10vw, 170px);
  border: 2px solid #fff;
  margin-bottom: -75px;
}

.logo-title h1 {
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  margin: 0;
}

header h1 {
  padding: 0 var(--space-sm);
  margin: 0;
  font-size: 1.5rem;
}

nav a {
  margin-left: var(--space-sm);
  color: #222222;
  font-weight: 500;
}

/* Hamburger button */
.mobile-toggle {
  display: none;
}

.mobile-menu-btn {
  background: #ffffff;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
  color: #49bf9d;
}

.hamburger-button {
  right: -300px;
  width: 30px;
  height: 3px;
  background: #787878;
}


/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -400px;
  width: 300px;
  height: 100%;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 2);
  transition: ease-in-out 0.4s;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  margin-top: 53px;
  padding: 25px;
}

.mobile-menu ul li {
  font-size: 20px;
  display: block;
  transition: 0.3s;
  letter-spacing: 0.05rem;
  padding: 0.5rem;
}

.mobile-menu ul li a {
  display: block;
  padding: 10px 20px;
  color: #222222;
  text-align: left;
  text-decoration: none;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 0;
  text-align: center;
  width: 100vw;
  overflow: hidden;
  position: relative;
  height: 500px;
  background: black;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Hero image */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.5;
}

.hero-content {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  padding: 1rem;
  width: clamp(300px, 80%, var(--max-width));
}

.hero-content h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  margin-bottom: 1rem;
  color: #fff;
  word-wrap: break-word;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}

/* ---------- Intro ---------- */
.intro {
  max-width: var(--max-width);
  width: 70%;
  text-align: center;
  margin: 0 auto;
}

.intro h2 {
  margin-bottom: 1.5rem;
}

.intro p {
  line-height: 1.6;
  color: var(--color-text, #333);
}

.intro p:last-child {
  margin-bottom: 0;

}

.intro a.btn {
  padding: 0.6rem 1.2rem;
}

/* Wrapper full width section background */
.full-width {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

/* Optional container for centered inner text */
.full-width > * {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

/* ---------- Services ---------- */
.services,
.our-work {
  background: var(--color-accent);
  text-align: center;
}

.services h2 {
  margin-bottom: 2rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.service-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.services p {
  margin: 2rem;
  line-height: 1.6;
  color: var(--color-text, #333);
}

.services a.btn {
  padding: 0.6rem 1.2rem;
}

/* Image */
.service-item picture,
.service-item img,
.work-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Overlay tint */
.service-item picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent, #005bbb);
  opacity: 0.15; /* adjust strength */
  mix-blend-mode: multiply; /* blends with image */
  pointer-events: none;
}

.service-item h3 {
  font-size: clamp(1.15rem, 4vw, 1.3rem);
  margin: 1rem;
}

.service-item p {
  flex-grow: 1;
  margin: 0 1rem 1.5rem;
  color: #555;
  line-height: 1.5;
  font-size: 0.95rem;
}

.service-icon {
  padding-top: 1rem;
}

/* Button */
.service-item a.btn {
  margin: 0 1rem 1.5rem;
  align-self: center;
  padding: 0.6rem 1.2rem;
}

.services-more a:hover,
.services-more a:focus{
  text-decoration: none;
}

.services-more {
  padding-top: 1rem;
}

.services-more h3 {
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- Info ---------- */

.info {
  background: #222;
}
.info .major {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.info h2 {
  color: white;
}

.info-wrapper {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.info-item {
  padding: 2rem;
  flex: 1 1 0;
}

.info-item:nth-child(1) {
  background: var(--color-accent);
}

.info-item:nth-child(2) {
  background: var(--color-accent-light);
}

.info-item:nth-child(3) {
  background: var(--color-accent-dark);
}

.info h2 {
  margin-bottom: 1.5rem;
}

.info h3 {
  margin: 1rem;
}

/* ---------- Our Work ---------- */
.our-work {
  text-align: center;
}

.our-work h2 {
  margin-bottom: 1.5rem;
}

.our-work-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.our-work-wrapper article {
  flex: 1 1 250px; /* grow/shrink, min width 250px */
  max-width: 300px;
  padding: var(--space-sm);
  border-radius: 4px;
  text-align: center;
}

.our-work img {
  border-radius: 4px;
}


/* ---------- Contact Us ---------- */
.contact {
  text-align: center;
  margin-bottom: 0;
}

.contact-wrapper {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.contact-form {
  max-width: 600px;
  width: 100%;
  padding: var(--space-sm) 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #ffffff;
  box-sizing: border-box;
  text-align: left;
}

/* two-column row */
.row {
  display: flex;
  gap: 20px; /* space between name/email */
  margin-bottom: 24px;
}

/* shared field styles */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 0.35em;
  border: 2px solid transparent;
  background: var(--color-accent);
  font-size: 16px;
  outline: none;
}

.field input {
  color: black;
}

/* allow inputs to shrink properly in narrow containers */
.row .field {
  flex: 1 1 0;
  min-width: 0; /* critical to prevent flex children from overflowing */
}

/* message box taller and vertically resizable */
.textarea {
  height: 220px;
  resize: vertical;
  margin-bottom: 28px;
  padding-top: 22px; /* visually matches screenshot spacing */
}

/* placeholder colour */
.field::placeholder {
  color: #909090;
  font-weight: 500;
}
.field:optional:placeholder-shown {
  background: var(--color-accent);
  border: 2px solid transparent;
}

/* Style invalid fields */
.field:invalid:not(:placeholder-shown) {
  border: 2px solid #ff6b6b; /* soft red border */
  background-color: #fff5f5; /* light red background */
}

/* Style valid fields (after user input) */
.field:required:valid, /* required valid */
.field:optional:valid:not(:placeholder-shown) { /* optional with user input */
  border: 2px solid #c3e6cb; /* soft green border */
  background-color: #f6fff8; /* light green background */
}

/* Remove the browser's default outline */
.field:focus,
.field:optional:focus {
  outline: none;
  border-color: #999;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#toast {
  position: fixed;
  top: -80px; /* hidden above the viewport */
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 1rem;
  z-index: 9999;
  transition: top 0.4s ease; /* slide */
}

#toast.show {
  top: 30px; /* slides down */
}



.contact-address {
  max-width: 300px;
  box-sizing: border-box;
  text-align: left;
  padding: 32px 0 32px 0;
}

ul.labeled-icons {
  list-style: none;
  display: inline;
  padding-left: 0;
}

ul.labeled-icons li {
  line-height: 1.75em;
  margin: 1.5em 0 0 0;
  padding-left: 2.25em;
  position: relative;
}

ul.labeled-icons li a {
  color: inherit;
}

ul.labeled-icons li h3 {
  left: 0;
  position: absolute;
  text-align: center;
  top: -25px;
  width: 1em;
  color: inherit;
}

.labeled-icons .label {
  display: none;
}

.contact-icon:before {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  text-transform: none !important;
  font-family: 'Font Awesome 7 Free', sans-serif;
  font-weight: 400;
}



/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  color: #fff;
  padding: 3rem 1rem 1rem 1rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 2rem;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}

.footer-content h2 {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.footer-content a {
  color: var(--color-accent, #f39c12);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-content h2 {
  margin: 0.8rem 0;
}

.opening-times {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opening-times li {
  font-size: clamp(0.8rem, 1.5vw, 1rem);

}

address p {
  margin: 0.2rem 0;
  line-height: 1.5;
  font-style: normal;
  font-family: inherit;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.social-media {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
}

#backToTop {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #ea3829;
  background-color: #ffffff;
  color: #fff;
  cursor: pointer;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

#backToTop svg {
  width: 24px;
  height: 24px;
  stroke: #ea3829;
}

#backToTop:hover {
  transform: scale(1.1);
  background-color: var(--color-accent-dark, #005fa3);
}

#backToTop.show {
  display: flex;
  opacity: 1;
}

/* Mobile stacking */
@media (max-width: 768px) {
  header.top-bar {
  padding: var(--space-sm);
  }

  .logo-title {
    width: 90%;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
    position: absolute;
    width: 30px;
    height: 50px;
    top: 30%;
    right: 10%;
    cursor: pointer;
    z-index: 1000;
  }

  .mobile-menu-btn {
    background: transparent;
  }

  .hamburger-button,
  .hamburger-close-button {
    position: absolute;
    left: 0;
    top: -10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .hamburger-button.visible,
  .hamburger-close-button.visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
  }

  .intro {
    width: 100%;
  }

  .service-item {
    background: var(--color-accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .our-work-wrapper article {
    max-width: 100%;
  }

  .info-wrapper {
    flex-direction: column;
  }

  .contact-form {
    text-align: center;
  }

  .footer-content {
    flex-direction: column; /* stacks all columns */
    align-items: center;    /* optional: center content */
    text-align: center;     /* center text for mobile */
  }

  .footer-content > * {
    width: 100%;           /* makes each column full width */
    max-width: 400px;      /* optional: keeps them from stretching too wide */
  }
}
