/*
  Main stylesheet for the GMR Printing static website.
  This CSS defines a modern, responsive layout inspired by the provided design comps.
  Colours and spacing are managed via CSS variables for easy adjustments.
*/

:root {
  --primary-color: #0d1b2a;      /* dark navy used for headers and footers */
  --light-bg: #f7f9fc;           /* off‑white background for light sections */
  --accent-color: #00bfa6;       /* turquoise accent colour */
  --text-dark: #0d1b2a;          /* dark text */
  --text-light: #e0e1dd;         /* light text for dark backgrounds */
  --muted-text: #6c7a89;         /* muted grey for secondary text */
}

/* Global reset and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: "Arial Black", Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* Utility container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header and navigation */
header {
  background-color: var(--primary-color);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo img {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
}

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

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links .quote-button a {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
}

.nav-links .quote-button a:hover {
  background-color: #019d85;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #019d85;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-secondary:hover {
  background-color: #019d85;
  border-color: #019d85;
  color: var(--primary-color);
}

/* Hero section on home page */
.home-hero {
  position: relative;
  background-image: url('assets/images/hero-embroidery.png');
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 27, 42, 0.85);
  z-index: 0;
}

.home-hero .content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 600px;
  margin-left: 5%;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.home-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.home-hero h1 .highlight {
  color: var(--accent-color);
}

.home-hero p {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 540px;
  color: var(--text-light);
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Introduction section */
.intro-section {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--light-bg);
}

.intro-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
}

.intro-section p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-dark);
  font-size: 1rem;
}

/* Service cards on homepage */
.service-cards {
  background-color: var(--light-bg);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Individual service card structure */
.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease;
  padding-bottom: 1rem;
}

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

/* Small circular icon at the top of each card */
.icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.icon-wrapper img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  /* Icons are provided in white so no filter is necessary */
  filter: none;
}

/* Top image within each service card. Maintains aspect ratio while cropping appropriately. */
.service-image-top {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Taglines for services. Styled in accent colour and uppercase to match the "Get a quote" button aesthetic. */
.tagline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Contact lists in the footer. Each list item contains a coloured square and text/link. */
.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

/* Small coloured squares used for contact icons in the footer */
.icon-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--accent-color);
  border-radius: 6px;
  margin-right: 0.6rem;
}

.icon-square img {
  width: 16px;
  height: 16px;
}

/* Info cards on the contact page use a larger coloured square. */
.info-icon-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--accent-color);
  border-radius: 6px;
  margin-right: 0.75rem;
}

.info-icon-square img {
  width: 20px;
  height: 20px;
}

.service-card h3 {
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0.75rem 0 0.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

/* Learn more button styled like a tab */
/* Reset previous learn-more button style. We'll use a simple centred link instead. */
.learn-more-link {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted-text);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: color 0.2s ease;
}

.learn-more-link:hover {
  color: var(--accent-color);
}

/* Call to action section */
.cta-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1rem;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

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

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

.footer h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-color);
}

.footer ul {
  list-style: none;
  padding: 0;
}


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

.footer ul li a {
  color: var(--text-light);
  text-decoration: none;
}

.footer ul li a:hover {
  color: var(--accent-color);
}

.footer small {
  display: block;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.75rem;
}

.footer small.credit {
  text-align: right;
  margin-top: 0;
  font-size: 0.75rem;
}

/* Services page */
.services-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1rem;
}

.services-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.services-header p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  /* Use the accent colour and uppercase styling to match the Get a quote tab */
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.service-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
}

.service-block:nth-child(even) {
  flex-direction: row-reverse;
}

.service-block .service-image {
  flex: 1 1 45%;
}

.service-block .service-image img {
  width: 100%;
  border-radius: 8px;
}

.service-block .service-info {
  flex: 1 1 45%;
}

.service-block .tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.service-block h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
}

.service-block p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.feature-list li::before {
  /* Display a clean tick inside a coloured circle */
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.quote-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quote-btn:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
}

/* Gallery page */
.gallery-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 1rem;
}

.gallery-header h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
}

.gallery-header p { 
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
   /* Use the accent colour and uppercase styling to match the Get a quote tab */
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gallery-header .page-subnote{
  margin-top: 0.75rem;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text-light);
  opacity: 0.9;
}

.gallery-header .page-subnote a{
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.gallery-header .page-subnote a:hover{
  text-decoration: underline;
}

.gallery-grid {
  background-color: var(--light-bg);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Contact page */
.contact-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 1rem;
}

.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-header p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
   /* Use the accent colour and uppercase styling to match the Get a quote tab */
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 1rem;
  background-color: var(--light-bg);
}

.contact-left {
  flex: 1 1 40%;
}

.contact-right {
  flex: 1 1 50%;
}

.info-card {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.info-text h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-weight: 600;
}

.info-text p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9rem;
}

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

.info-text a:hover {
  text-decoration: underline;
}

.contact-form {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-dark);
}

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

.contact-form button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #019d85;
}

@media (max-width: 768px) {
  .service-block {
    flex-direction: column;
  }
  .service-block:nth-child(even) {
    flex-direction: column;
  }
  .contact-left, .contact-right {
    flex: 1 1 100%;
  }
  .home-hero h1 {
    font-size: 2.5rem;
  }
}
/* White content section used on Info/About page */
.page-white{
  background:#fff;
  padding:70px 0;
}

.page-white-inner{
  max-width: 1100px;
}

.section-title{
  margin:0 0 10px 0;
  font-size: 32px;
  color:#111;
}

.section-lead{
  margin:0 0 28px 0;
  color:#333;
  line-height:1.7;
  max-width: 900px;
}

.about-grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}

.about-card{
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.about-card h3{
  margin:0 0 10px 0;
  color:#111;
  font-size: 18px;
}

.about-card p{
  margin:0 0 12px 0;
  color:#222;
  line-height:1.75;
}

.about-list{
  margin: 0;
  padding-left: 18px;
  color:#222;
  line-height:1.75;
}

.about-cta{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 900px){
  .about-grid{
    grid-template-columns: 1fr;
  }
}
/* ABOUT / INFO PAGE TIDY */
.page-white{
  background:#fff;
  padding:70px 0;              /* space above & below */
}

.page-white .container{
  max-width: 980px;            /* keeps it neat, not too wide */
}

.section-title{
  font-size: 34px;
  margin: 0 0 10px 0;
  text-align: center;
  color: #0b1220;
}

.section-lead{
  text-align: center;
  margin: 0 auto 26px auto;
  max-width: 800px;
  line-height: 1.7;
  color: #263247;
}

.page-white h3{
  margin: 28px 0 10px 0;
  text-align: center;
  font-size: 20px;
  color: #0b1220;
}

.page-white p{
  margin: 0 auto 14px auto;    /* gap between paragraphs */
  line-height: 1.8;
  color: #1f2a3a;
  max-width: 900px;
  text-align: center;          /* centralised text */
}

.about-list{
  list-style: none;            /* cleaner look */
  padding: 0;
  margin: 10px auto 0 auto;
  max-width: 760px;
  text-align: center;
}

.about-list li{
  margin: 10px 0;
  line-height: 1.7;
  color: #1f2a3a;
}

/* Optional: tiny separators between sections */
.page-white h3::after{
  content:"";
  display:block;
  width: 70px;
  height: 3px;
  margin: 12px auto 0 auto;
  background: var(--accent, #10bfb4);
  border-radius: 999px;
  opacity: 0.9;
}
/* -----------------------------
   Mobile responsive fixes
   ----------------------------- */
@media (max-width: 900px){

  /* General spacing */
  .container{
    padding-left: 16px;
    padding-right: 16px;
  }

  /* NAV: stack and wrap links */
  .nav-container{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links{
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    padding: 0;
  }

  .quote-button{
    width: 100%;
  }

  .quote-button a{
    display: block;
    text-align: center;
  }

  /* HERO: stop huge text and fix widths */
  .home-hero{
    padding: 56px 0;
  }

  .home-hero h1{
    font-size: 36px;
    line-height: 1.15;
  }

  .home-hero p{
    font-size: 16px;
  }

  .hero-buttons{
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons a{
    width: 100%;
    text-align: center;
  }

  /* Homepage service cards */
  .service-cards{
    grid-template-columns: 1fr;
  }

  /* Services page sections (image + text) */
  .service-section{
    grid-template-columns: 1fr;
  }

  .service-section .service-image,
  .service-section img{
    width: 100%;
    height: auto;
  }

  /* Gallery grid */
  .gallery-grid{
    grid-template-columns: 1fr;
  }

  /* Contact page columns */
  .contact-grid{
    grid-template-columns: 1fr;
  }

  /* Footer columns */
  .footer-container{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
/* =========================
   Legal pages (Terms/Privacy)
   ========================= */

.legal-wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.legal-title{
  text-align: center;
  margin-bottom: 28px;
}

.legal-title h2{
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
}

.legal-underline{
  display: inline-block;
  width: 70px;
  height: 3px;
  margin-top: 10px;
  background: var(--accent-color); /* use your actual accent variable */
  border-radius: 999px;
  opacity: 0.95;
}

/* Bigger, readable legal body text (responsive) */
.legal-content{
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(1.16rem, 0.6vw + 1.05rem, 1.30rem);
  line-height: 1.85;
}

/* Headings inside the white area */
.legal-content h3{
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 800;
  text-align: center; /* matches your About page feel */
  color: #0b1220;
}

/* Paragraphs: match About spacing (keep centred like your design) */
.legal-content p{
  margin: 0 auto 14px auto;
  max-width: 900px;
  text-align: center;
  color: #1f2a3a;
}

/* Lists: keep bullets, but align nicely */
.legal-content ul{
  margin: 10px auto 0 auto;
  padding-left: 18px;
  max-width: 760px;
}

.legal-content li{
  margin: 10px 0;
  line-height: 1.7;
  color: #1f2a3a;
}

/* Last updated line */
.legal-updated{
  margin-top: 28px;
  opacity: 0.85;
  text-align: center;
}
/* --- Terms page typography: match About, slightly larger --- */
.legal-page .services-header h1{
  font-size: 2.5rem; /* same as other headers */
}

.legal-page .legal-content{
  font-size: clamp(1.18rem, 0.65vw + 1.05rem, 1.32rem);
  line-height: 1.85;
}

.legal-page .legal-content h3{
  font-size: 1.28rem;
}
/* =========================
   FIX: Terms page matches About page sizing
   (Only affects /terms-and-conditions.html via .legal-page)
   ========================= */

.legal-title:empty{
  display:none;
  margin:0;
}

body.legal-page .legal-content{
  font-size: 1rem;      /* match About page body text */
  line-height: 1.8;     /* match About page paragraph rhythm */
}

body.legal-page .legal-content h3{
  font-size: 20px;      /* match About page section heading */
}

body.legal-page .legal-content p,
body.legal-page .legal-content li{
  font-size: 1rem;      /* keep lists/paras consistent */
}
