/*
Theme Name: Wheres Ralph
Theme URI: https://wheresralph.com
Description: Custom theme for the Tribute Bottle project
Author: Daniel Bereza
Version: 1.0.0
*/

/* ------------------------------
   Fonts
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Poppins:wght@300;400;500&display=swap');

:root {
  /* Colors */
  --color-primary: #2E4057;     /* Deep Slate Blue */
  --color-secondary: #CBBF9D;   /* Warm Sand */
  --color-accent: #7BAFD4;      /* Light Sky Blue */
  --color-neutral: #F5F3EF;     /* Off White */
  --color-dark: #1E1E1E;        /* Charcoal */

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  /* Sizing */
  --line-height-base: 1.6;
  --max-content-width: 1200px;
}

.modal {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .8 ) 
                url('/wp-content/themes/wheresralph/public/images/loader.gif') 
                50% 50% 
                no-repeat;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading .modal {
    overflow: hidden;   
}

/* Anytime the body has the loading class, our
   modal element will be visible */
body.loading .modal {
    display: block;
}




/* ------------------------------
   Base Styles
------------------------------ */
body {
  font-family: var(--font-body) !important;
  color: var(--color-dark);
  background-color: var(--color-neutral);
  line-height: var(--line-height-base);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  color: var(--color-primary);
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

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

/* ------------------------------
   Layout Helpers
------------------------------ */
.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

button, .btn {
  background-color: var(--color-primary);
  color: var(--color-neutral);
  border: none;
  padding: 0.7em 1.2em;
  font-family: var(--font-body);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
button:hover, .btn:hover {
  background-color: var(--color-accent);
}







/* Home Template Styling */
.wr-home section {
  padding: 3rem 1.5rem;
  text-align: center;
}

.wr-hero {
  background: var(--color-primary);
  color: var(--color-neutral);
  padding: 5rem 1.5rem;
}
.wr-hero h1 {
  color: var(--color-secondary);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.wr-hero .subtitle {
  font-size: 1.3rem;
  color: var(--color-secondary);
}

.wr-story {
  background-color: var(--color-neutral);
  color: var(--color-dark);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.wr-map {
  background-color: var(--color-secondary);
  padding: 3rem 0;
}
#ralph-map {
  height: 400px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}





/* ==============================
   Check-In Form Styling
   ============================== */
.wr-form {
  background-color: var(--color-neutral);
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.wr-form h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Form layout */
.wr-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Labels */
.wr-form label {
  font-weight: 500;
  color: var(--color-primary);
  text-align: left;
}

/* Text fields, textareas, selects */
.wr-form input[type="text"],
.wr-form input[type="hidden"],
.wr-form input[type="file"],
.wr-form select,
.wr-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.wr-form input:focus,
.wr-form textarea:focus,
.wr-form select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(123,175,212,0.25);
  outline: none;
}

/* File input styling */
.wr-form input[type="file"] {
  padding: 0.4rem;
  border: 1px solid #bbb;
  background-color: #fff;
  cursor: pointer;
}
.wr-form input[type="file"]::-webkit-file-upload-button {
  background-color: var(--color-primary);
  color: var(--color-neutral);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.wr-form input[type="file"]::-webkit-file-upload-button:hover {
  background-color: var(--color-accent);
}

/* Consent checkbox */
.wr-form .wr-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-dark);
}
.wr-form input[type="checkbox"] {
  width: auto;
  transform: scale(1.2);
  cursor: pointer;
}

/* Submit button */
.wr-form button {
  align-self: center;
  background-color: var(--color-primary);
  color: var(--color-neutral);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.wr-form button:hover {
  background-color: var(--color-accent);
}

/* Response message */
#checkin-response {
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-primary);
}

.wr-logo {
  margin: 1.5rem 0;
}
.wr-logo img {
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.copyright{
	text-align:center;
}

.wr-call-ralph {
  margin-top: 20px;
  text-align: center;
}
.btn-call {
  display: inline-block;
  background: #2E4057;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.btn-call:hover {
  background: #00695c;
}

.wr-map-image {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px; /* optional aesthetic */
}

.wr-map-usa {
  opacity: 0.9;          /* subtle difference for fallback */
  filter: brightness(0.97);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.social-icons a img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}














