/* Import elegant font pairing - Playfair Display for headings, Source Sans Pro for body */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Source+Sans+Pro:wght@400;500;600&display=swap');

:root {
  /* Brand Colors */
  --primary: #506167;
  --primary-light: #6b7a81;
  --warm-white: #fefcf8;
  --ivory: #f8f6f0;
  --soft-grey: #f1f1f1;
  --text-dark: #2a2a2a;
  --text-secondary: #666666;
  --text-light: #888888;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --container-max: 900px;
  --section-padding: clamp(4rem, 8vw, 8rem);
  --section-padding-small: clamp(2rem, 4vw, 3rem);
  
  /* Border radius */
  --radius: 8px;
  --radius-small: 4px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 1.5rem 0;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  margin-bottom: 1.5rem;
}

.large-text {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  margin-bottom: 1.5rem;
  color: var(--warm-white);
}

p {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--ivory) 0%, var(--warm-white) 100%);
  text-align: center;
  padding: var(--section-padding) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Services Image Cards */
.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--ivory);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(80, 97, 103, 0.08);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.service-card:hover {
  box-shadow: 0 4px 24px rgba(80, 97, 103, 0.16);
}

.service-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: var(--radius-small);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(80, 97, 103, 0.08);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(80, 97, 103, 0.03) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.section.dark {
  color: var(white);
  background:none;
}

.section.about {
  text-align: left;
}

/* About Me Article Layout */
.about-content {
  position: relative;
}

.about-image {
  width: 100%;
  max-width: 280px;
  margin: 0 0 2rem 0;
  text-align: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 25px rgba(80, 97, 103, 0.15);
  transition: var(--transition);
}

.about-image img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(80, 97, 103, 0.2);
}

.about-text {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: left;
}

.about-text p {
  margin: 1.5rem 0;
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.section {
  padding: var(--section-padding) 0;
  background: var(--warm-white);
  text-align: center;
}

.section.alt {
  background: var(--ivory);
}

/* Services */
.services {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.services li {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 20px rgba(80, 97, 103, 0.08);
  transition: var(--transition);
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.services li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.services li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(80, 97, 103, 0.12);
}

.services li:hover::before {
  opacity: 1;
}

/* Testimonials */
blockquote {
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 20px rgba(80, 97, 103, 0.06);
  border-left: 4px solid var(--primary);
  position: relative;
}

blockquote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  line-height: 1;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.contact h2 {
  color: white;
  margin-bottom: 3rem;
}

/* Form Styling */
form {
  display: grid;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
}

input {
  padding: 1rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  color: var(--text-dark);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 56px; /* Exhibition-friendly tap targets */
}

input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

input::placeholder {
  color: var(--text-light);
}

select {
  padding: 1rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  color: var(--text-dark);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 56px; /* Exhibition-friendly tap targets */
  cursor: pointer;
  appearance: none; /* Remove default styling */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  background-size: 1rem;
  padding-right: 3rem; /* Make room for dropdown arrow */
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-height: 56px; /* Exhibition-friendly */
  line-height: 1.4;
}

.hero .btn {
  background: #506167;
  box-shadow: 0 4px 20px rgba(80, 97, 103, 0.2);
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(80, 97, 103, 0.25);
}

.contact .btn {
  background: white;
  color: var(--primary);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Status and microcopy */
.status {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: var(--radius-small);
}

.microcopy {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.6;
}

.formmicrocopy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  background: var(--soft-grey);
  border-top: 1px solid #e0e0e0;
}

.footer small {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.parallax {
  /* The image used */
  background-image: url("img/E&J528.jpg");

  /* Set a specific height */
  min-height: 300px;

  margin: 0;
  max-width: none;

  /* Create the parallax scrolling effect */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  text-align: center;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


/* Mobile optimizations */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(2.5rem, 6vw, 4rem);
  }
  
  /* .container {
    padding: 0 1rem;
  } */
  
  .hero {
    min-height: 60vh;
    padding: 3rem 0;
  }
  
  .services {
    gap: 1rem;
  }
  
  .services li {
    padding: 1.5rem;
  }
  
  blockquote {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  form {
    gap: 1.25rem;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .parallax {
    background-attachment: unset;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Tablet and Desktop - Article Flow */
@media (min-width: 768px) {
  .about-image {
    float: left;
    margin: 0 2.5rem 1.5rem 0;
    max-width: 320px;
  }
  
  .about-text {
    text-align: justify;
  }
  
  .about-text::after {
    content: "";
    display: table;
    clear: both;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .parallax {
    background-attachment: fixed;
  }
}