/* fonts */
@font-face {
  font-family: 'Archivo Black';
  src: url('./fonts/ArchivoBlack-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('./fonts/LibreFranklin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('./fonts/LibreFranklin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('./fonts/LibreFranklin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17140F;
  --gold: #C8901E;
  --gold-light: #EBC978;
  --gold-text: #A5741A;
  --red: #C1272D;
  --red-deep: #8A1F24;
  --cream: #F5EEE0;
  --muted: #6B6357;
  --footer-bg: #0F0D0A;
  
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Libre Franklin', sans-serif;
  
  --site-width: 1200px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  font-weight: 400;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.top-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.masthead {
  background: var(--ink);
  color: #fff;
  padding: 1rem 0;
  position: relative;
  z-index: 100;
}
.masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand img {
  width: 48px;
  height: 48px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}
.brand-sub {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-links a:hover {
  color: var(--gold-light);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
  min-height: 44px;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
  min-height: 44px;
}
.btn-outline:hover {
  background: rgba(200, 144, 30, 0.1);
}

.fold {
  background: var(--ink);
  color: #fff;
  padding: 4rem 0 5rem;
}
.fold .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.fold-content .kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}
.fold-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}
.fold-content .sub {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.fold-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.fold-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.placard {
  background: #fff;
  padding: 8px;
  border: 3px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.placard img {
  border-radius: 4px;
  width: 100%;
}
.placard-bar {
  text-align: center;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.1rem;
  padding: 1rem 0 0.5rem;
  text-transform: uppercase;
}

.services {
  padding: 6rem 0;
  background: var(--cream);
}
.services-header {
  text-align: center;
  margin-bottom: 4rem;
}
.services-header .kicker {
  color: var(--red-deep);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.services-header h2 {
  font-size: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg {
  width: 24px;
  height: 24px;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.creed {
  background: var(--red);
  color: #fff;
}
.creed-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.creed-image {
  background: url('./img/presa-snow.jpg') center/cover no-repeat;
  min-height: 400px;
}
.creed-content {
  padding: 5rem 4rem;
}
.creed-content .kicker {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.9;
}
.creed-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.creed-1 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.creed-2 {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

.gallery {
  padding: 6rem 0;
  background: var(--cream);
  text-align: center;
}
.gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.gallery-grid img:nth-child(even) {
  margin-top: 2rem;
}

.visit {
  background: var(--ink);
  color: #fff;
  padding: 6rem 0;
}
.visit .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.visit-content .kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.visit-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.visit-content p {
  color: #e0e0e0;
  margin-bottom: 2rem;
}
.visit-phone {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 2rem;
  display: block;
}

.hours-table {
  width: 100%;
  max-width: 400px;
  margin-bottom: 2rem;
  border-collapse: collapse;
}
.hours-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}
.hours-table tr:last-child td {
  border-bottom: none;
}
.hours-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--gold-light);
}

.visit-address {
  font-size: 0.9rem;
  color: var(--muted);
}

.visit-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  color: var(--ink);
}
.visit-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.btn-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 1rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  min-height: 44px;
}
.btn-submit:hover {
  opacity: 0.9;
}
.form-success {
  display: none;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}

.footer {
  background: var(--footer-bg);
  color: var(--muted);
  padding: 3rem 0;
  font-size: 0.85rem;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  opacity: 0.7;
}
.footer-brand-text h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.footer-brand-text span {
  color: var(--gold-text);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-contact {
  text-align: right;
}
.footer-contact strong {
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.25rem;
}

/* Internal Pages */
.page-header {
  background: var(--ink);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.page-header p {
  color: var(--gold-light);
  font-size: 1.25rem;
}

.service-detail {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.service-detail:nth-child(even) {
  background: #fff;
}
.service-detail .container {
  max-width: 800px;
}
.service-detail h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.service-detail h3 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--red-deep);
}
.service-detail ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.service-detail li {
  margin-bottom: 0.5rem;
}

/* Ribbon */
.ribbon {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  font-size: 0.85rem;
  max-width: 300px;
}
.ribbon p {
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.ribbon-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ribbon-actions a, .ribbon-actions button {
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ribbon-actions button {
  background: #eee;
  color: #333;
}

.mobile-nav-toggle, .mobile-call-bar {
  display: none;
}

@media (max-width: 900px) {
  .creed-container {
    grid-template-columns: 1fr;
  }
  .creed-image {
    min-height: 300px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid img:nth-child(even) {
    margin-top: 0;
  }
  .gallery-grid img:last-child, .gallery-grid img:nth-last-child(2) {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }
  .nav-links, .masthead .btn-primary {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .mobile-nav-details summary {
    list-style: none;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: #fff;
  }
  .mobile-nav-details summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav-details[open] .mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 1rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-menu a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .fold .container, .visit .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .fold-content h1 {
    font-size: 2.5rem;
  }
  .fold-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .fold-actions .btn-primary, .fold-actions .btn-outline {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .creed-content {
    padding: 3rem 1.5rem;
  }
  .creed-content h2 {
    font-size: 2rem;
  }
  
  .footer .container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-contact {
    text-align: center;
  }
  
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--red);
    padding: 0.5rem 1rem;
    z-index: 999;
    align-items: center;
    justify-content: center;
  }
  .mobile-call-bar a {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
  }
  .ribbon {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
