:root {
  --gold: #c5a46d;
  --black: #000000;
  --white: #ffffff;
  --dark-gray: #111111;
  --light-gold: #d4c6a4;
  --red: #ff0000;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--black);
  color: var(--white);
}
header {
  text-align: center;
  padding: 40px 20px 20px;
  background-color: var(--black);
  opacity: 0;
  animation: fadeInAnim 1.5s ease forwards;
}
/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gold);
}
.navbar a {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease, transform 0.3s ease;
}
.navbar a:hover {
  color: var(--light-gold);
  text-decoration: none;
  transform: scale(1.05);
}
/* Header Logo Group Styling */
.header-logo-group a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
.header-logo-group h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em; /* Adjusted font size */
  margin: 0;
  color: var(--gold);
  /* NEW: keep logo + title on one line everywhere */
  white-space: nowrap;
  flex-wrap: nowrap;
  gap: 8px;
}
.header-logo-group h1 svg {
  width: 100px; /* Logo is now larger than the text */
  height: auto;
  fill: var(--gold);
  filter: drop-shadow(0 0 2px var(--gold));
  margin-right: 8px; /* Spacing has been reduced */
  transition: fill 0.3s ease;
}
.header-logo-group a:hover h1 svg {
    fill: var(--light-gold);
}
.header-logo-group a:hover h1 {
    color: var(--light-gold);
}
.btn {
  display: inline-block;
  background-color: var(--gold);
  color: var(--black);
  padding: 12px 25px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: bold;
  box-shadow: 0 0 10px var(--gold);
}
.btn:hover {
  background-color: #a9853d;
  color: var(--white);
  box-shadow: 0 0 15px #a9853d;
}
main {
    max-width: 1000px;
    margin: auto;
}
section {
  padding: 40px 20px;
  opacity: 0;
  animation: fadeInAnim 1.5s ease forwards;
  animation-fill-mode: forwards;
}
#images-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  animation-delay: 0.3s;
}
#images-row::-webkit-scrollbar {
    height: 8px;
}
#images-row::-webkit-scrollbar-track {
    background: var(--dark-gray);
    border-radius: 10px;
}
#images-row::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 10px;
    border: 2px solid var(--dark-gray);
}
#images-row img {
  max-height: 250px;
  min-width: 300px;
  border-radius: 15px;
  box-shadow: 0 0 20px var(--gold);
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
#about {
  animation-delay: 0.3s;
}
#services {
  animation-delay: 0.6s;
}
#testimonials {
    animation-delay: 0.9s;
}
#request-quote {
  animation-delay: 1.2s;
  max-width: 600px;
  margin: auto;
}
#privacy-policy, #terms-and-conditions {
    animation-delay: 0.3s; /* Revert to faster animation for policies as they are on new pages */
}
@keyframes fadeInAnim {
  to {
    opacity: 1;
  }
}
h2 {
    color: var(--gold);
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.service {
  flex: 1 1 250px;
  background-color: var(--dark-gray);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px var(--gold);
  color: var(--white);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.service:hover {
  background-color: #222222;
  box-shadow: 0 0 25px var(--gold);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.testimonial {
    background-color: var(--dark-gray);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(197, 164, 109, 0.5);
    font-style: italic;
}
.testimonial p {
    margin: 0 0 10px;
}
.testimonial .author {
    display: block;
    text-align: right;
    font-weight: bold;
    color: var(--gold);
    font-style: normal;
}
form {
  display: grid;
  gap: 15px;
}
input,
textarea {
  padding: 12px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  width: 100%;
  font-size: 1em;
  box-sizing: border-box;
  background-color: var(--dark-gray);
  color: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: #a9853d;
  box-shadow: 0 0 8px #a9853d;
  background-color: #222222;
}
button[type="submit"] {
  background-color: var(--gold);
  color: var(--black);
  padding: 12px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px var(--gold);
}
button[type="submit"]:hover {
  background-color: #a9853d;
  color: var(--white);
  box-shadow: 0 0 15px #a9853d;
}
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8em;
    line-height: 1.4;
    color: var(--light-gold);
}
.form-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.form-consent a {
    color: var(--gold);
    text-decoration: none;
}
.form-consent a:hover {
    text-decoration: underline;
}
footer {
  background-color: var(--dark-gray);
  color: var(--light-gold);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid var(--gold);
}
footer a {
    color: var(--gold);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
html {
  scroll-behavior: smooth;
}
/* Specific styling for the gold phone link */
.gold-link {
    color: var(--gold);
    font-weight: bold;
    transition: color 0.3s ease;
}
.gold-link:hover {
    color: #d4c6a4;
    text-decoration: none;
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 15px;
  }
  .header-logo-group {
  display: flex;
  justify-content: center;   /* centers horizontally */
  align-items: center;       /* centers vertically within header */
  text-align: center;
  width: 100%;               /* take full header width */
}
/* Phones only: 300px and below */
}
@media (max-width: 300px) {
  .site-title {
    font-size: 1.4rem;   /* smaller main text */
    line-height: 1.2;
  }

  .site-title .subtitle {
    font-size: 1rem;     /* shrink "Service" too */
  }
}

/* ===== FINAL APPENDED FIXES (Safari-friendly) ===== */

/* A) Safari: prevent unexpected text auto-zoom */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* B) Center the logo block on all screens */
.header-logo-group,
.header-logo-group a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* C) Restore the earlier, working phone-only sizing for logo/title */
@media (max-width: 600px) {
  header { padding: 24px 16px 16px; }
  .header-logo-group h1 {
    font-size: 1.6em;
    gap: 6px;
    white-space: nowrap;
  }
  .header-logo-group h1 svg {
    width: 56px;
    margin-right: 6px;
  }
}
@media (max-width: 360px) {
  .header-logo-group h1 { font-size: 1.4em; }
  .header-logo-group h1 svg { width: 48px; }
}

/* D) Center a single photo (auto-detect aspect ratio, no black bars) */
#images-row {
  display: grid;
  place-items: center;
  overflow: visible;
  gap: 0;
  padding-bottom: 20px;
  width: min(100%, 1000px);
  margin-left: auto;
  margin-right: auto;
}
#images-row img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  /* Cancel older strip/gallery rules if present */
  min-width: 0;
  flex-shrink: 1;
}

/* ===== iPhone Safari Specific Overrides ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Ensure header brand is centered on all screens */
.header-logo-group,
.header-logo-group a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Center a single photo (no gallery strip) */
#images-row {
  display: grid;
  place-items: center;
  overflow: visible;
  gap: 0;
  padding-bottom: 20px;
  width: min(100%, 1000px);
  margin-left: auto;
  margin-right: auto;
}
#images-row img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  min-width: 0;
  flex-shrink: 1;
}

/* Standard mobile sizing (works on most browsers) */
@media (max-width: 600px) {
  .header-logo-group h1 { font-size: 1.6rem; gap: 6px; white-space: nowrap; }
  .header-logo-group h1 svg { width: 56px; margin-right: 6px; }
}
@media (max-width: 360px) {
  .header-logo-group h1 { font-size: 1.4rem; }
  .header-logo-group h1 svg { width: 48px; }
}

/* iOS Safari-only reinforcement using a WebKit capability check */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 600px) {
    .header-logo-group h1 { font-size: 1.6rem !important; gap: 6px !important; white-space: nowrap !important; }
    .header-logo-group h1 svg { width: 56px !important; margin-right: 6px !important; }
  }
  @media (max-width: 360px) {
    .header-logo-group h1 { font-size: 1.4rem !important; }
    .header-logo-group h1 svg { width: 48px !important; }
  }
}
