/* DeMarco Musical Instrument Repair — base stylesheet
   --------------------------------------------------
   Palette is intentionally simple; tweak the :root variables to retheme.
*/

@import url('https://fonts.googleapis.com/css2?family=Sacramento&family=Inter:wght@400;500;600;700&display=swap');

:root {
   --navy:        #1a2745;
   --navy-dark:   #0d162c;
   --brass:       #b8893a;
   --brass-dark:  #8b6628;
   --cream:       #faf6ef;
   --bg:          #ffffff;
   --text:        #1f2937;
   --muted:       #6b7280;
   --border:      #e5e7eb;
   --max-width:   1100px;
   --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.05);
   --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
   margin: 0;
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   font-size: 16px;
   line-height: 1.6;
   color: var(--text);
   background: var(--bg);
}

/* Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
   color: var(--navy);
   line-height: 1.25;
   margin: 0 0 0.5em;
   font-weight: 600;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

a {
   color: var(--brass-dark);
   text-decoration: none;
   transition: color 0.15s;
}
a:hover { color: var(--navy); text-decoration: underline; }

.script {
   font-family: 'Sacramento', 'Brush Script MT', cursive;
   font-weight: 400;
   line-height: 1;
   color: var(--navy);
}

/* Header --------------------------------------------------------------- */
.site-header {
   background: var(--cream);
   border-bottom: 3px solid var(--brass);
   position: sticky;
   top: 0;
   z-index: 100;
   box-shadow: var(--shadow-sm);
}

.header-inner {
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 1rem 1.25rem;
   display: flex;
   align-items: center;
   gap: 1.25rem;
}

.brand {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-logo {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   object-fit: cover;
   border: 2px solid var(--brass);
}

.brand-text { line-height: 1.05; }
.brand-text .script-name {
   font-family: 'Sacramento', 'Brush Script MT', cursive;
   font-size: 2.4rem;
   color: var(--navy);
   display: block;
}
.brand-text .script-sub {
   font-family: 'Sacramento', 'Brush Script MT', cursive;
   font-size: 1.2rem;
   color: var(--brass-dark);
   display: block;
   margin-top: -0.2em;
}

/* Navigation ----------------------------------------------------------- */
.main-nav {
   margin-left: auto;
   display: flex;
   align-items: center;
   gap: 0.25rem;
}
.main-nav a {
   padding: 0.5rem 0.85rem;
   color: var(--navy);
   font-weight: 500;
   font-size: 0.95rem;
   border-radius: 4px;
}
.main-nav a:hover {
   background: var(--brass);
   color: #fff;
   text-decoration: none;
}
.main-nav a.active {
   background: var(--navy);
   color: #fff;
}

/* mobile menu toggle */
.nav-toggle {
   display: none;
   background: transparent;
   border: 2px solid var(--navy);
   color: var(--navy);
   padding: 0.4rem 0.6rem;
   font-size: 1.25rem;
   border-radius: 4px;
   margin-left: auto;
   cursor: pointer;
}

/* Hero ----------------------------------------------------------------- */
.hero {
   background: linear-gradient(135deg, var(--cream) 0%, #ffffff 100%);
   padding: 3rem 1.25rem 2.5rem;
   text-align: center;
}
.hero-inner {
   max-width: var(--max-width);
   margin: 0 auto;
   display: grid;
   grid-template-columns: 1fr auto 1fr;
   align-items: center;
   gap: 2rem;
}
.hero h1 {
   font-size: 2.6rem;
   margin-bottom: 0.5rem;
}
.hero .tagline {
   color: var(--muted);
   font-size: 1.1rem;
   margin-bottom: 1.5rem;
}
.hero-img {
   width: 160px;
   height: 160px;
   object-fit: cover;
   border-radius: 8px;
   box-shadow: var(--shadow-md);
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.btn {
   display: inline-block;
   padding: 0.75rem 1.5rem;
   border-radius: 6px;
   font-weight: 600;
   font-size: 1rem;
   text-decoration: none;
   border: 2px solid transparent;
   cursor: pointer;
   transition: all 0.15s;
}
.btn-primary {
   background: var(--brass);
   color: #fff;
   border-color: var(--brass);
}
.btn-primary:hover {
   background: var(--brass-dark);
   border-color: var(--brass-dark);
   color: #fff;
   text-decoration: none;
}
.btn-secondary {
   background: transparent;
   color: var(--navy);
   border-color: var(--navy);
}
.btn-secondary:hover {
   background: var(--navy);
   color: #fff;
   text-decoration: none;
}

/* Page content shell --------------------------------------------------- */
main { min-height: 60vh; }

.page-header {
   background: var(--navy);
   color: #fff;
   padding: 2.5rem 1.25rem;
   text-align: center;
}
.page-header h1 {
   color: #fff;
   margin: 0;
}
.page-header p {
   color: rgba(255, 255, 255, 0.85);
   margin: 0.5rem 0 0;
}

.section {
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 2.5rem 1.25rem;
}

.section-tight { padding: 1.25rem 1.25rem; }

.card {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: 8px;
   padding: 1.5rem;
   box-shadow: var(--shadow-sm);
   margin-bottom: 1.5rem;
}
.card h2, .card h3 { margin-top: 0; }

.grid-2 {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 1.5rem;
}

.feature-list {
   list-style: none;
   padding: 0;
   margin: 0;
}
.feature-list li {
   padding: 0.5rem 0 0.5rem 1.75rem;
   position: relative;
}
.feature-list li:before {
   content: "♪";
   position: absolute;
   left: 0;
   color: var(--brass);
   font-size: 1.2rem;
   line-height: 1;
   top: 0.6rem;
}

/* Care page ordered lists */
.care-section {
   margin-bottom: 2rem;
}
.care-section h3 {
   border-bottom: 2px solid var(--brass);
   padding-bottom: 0.35rem;
   margin-bottom: 0.75rem;
}
.care-section ol {
   padding-left: 1.5rem;
   margin: 0 0 1rem;
}
.care-section ol li {
   margin-bottom: 0.4rem;
}

/* Contact form --------------------------------------------------------- */
.contact-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2rem;
}
.contact-info dt {
   font-weight: 600;
   color: var(--navy);
   margin-top: 0.75rem;
}
.contact-info dd {
   margin: 0.15rem 0 0.5rem;
   color: var(--text);
}

form.contact-form { display: grid; gap: 0.85rem; }
.form-row { display: grid; gap: 0.3rem; }
.form-row label {
   font-weight: 500;
   font-size: 0.9rem;
   color: var(--navy);
}
.form-row input,
.form-row textarea,
.form-row select {
   padding: 0.55rem 0.7rem;
   font-size: 1rem;
   font-family: inherit;
   border: 1px solid var(--border);
   border-radius: 4px;
   background: #fff;
   transition: border-color 0.15s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
   outline: none;
   border-color: var(--brass);
   box-shadow: 0 0 0 2px rgba(184, 137, 58, 0.25);
}
.form-row.required label:after {
   content: " *";
   color: #c0392b;
}
.form-row-inline {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 0.85rem;
}

.captcha-wrap {
   display: flex;
   align-items: center;
   gap: 0.75rem;
}
.captcha-wrap img {
   border: 1px solid var(--border);
   border-radius: 4px;
   cursor: pointer;
}
.captcha-hint {
   font-size: 0.8rem;
   color: var(--muted);
   margin-top: 0.2rem;
}

/* Status messages */
.alert {
   padding: 1rem 1.25rem;
   border-radius: 6px;
   margin: 1.5rem 0;
}
.alert-success {
   background: #e6f4ea;
   border: 1px solid #a5d6a7;
   color: #1b5e20;
}
.alert-error {
   background: #fdecea;
   border: 1px solid #f5b7b1;
   color: #922b21;
}

/* Links page ----------------------------------------------------------- */
.link-list {
   list-style: none;
   padding: 0;
   margin: 0;
}
.link-list li {
   padding: 1rem 0;
   border-bottom: 1px solid var(--border);
}
.link-list li:last-child { border-bottom: none; }
.link-list a {
   font-weight: 600;
   font-size: 1.05rem;
}
.link-list .link-desc {
   color: var(--muted);
   margin-top: 0.25rem;
}

/* Coming-soon notice */
.coming-soon {
   text-align: center;
   padding: 3rem 1rem;
   background: var(--cream);
   border-radius: 8px;
}
.coming-soon h2 { margin-bottom: 0.5rem; }

/* Footer --------------------------------------------------------------- */
.site-footer {
   background: var(--navy);
   color: #cbd5e1;
   margin-top: 3rem;
   padding: 2.5rem 1.25rem 1.5rem;
}
.footer-inner {
   max-width: var(--max-width);
   margin: 0 auto;
   display: grid;
   grid-template-columns: 2fr 1fr 1fr;
   gap: 2rem;
}
.footer-inner h4 {
   color: #fff;
   font-size: 1rem;
   margin: 0 0 0.75rem;
   text-transform: uppercase;
   letter-spacing: 0.05em;
}
.footer-inner a { color: #cbd5e1; }
.footer-inner a:hover { color: var(--brass); }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner ul li { padding: 0.25rem 0; }

.footer-badges { display: flex; gap: 1rem; align-items: center; margin-top: 0.75rem; flex-wrap: wrap; }
.footer-badges img { max-height: 60px; width: auto; background: #fff; padding: 4px; border-radius: 4px; }

.footer-bottom {
   max-width: var(--max-width);
   margin: 1.5rem auto 0;
   padding-top: 1rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   text-align: center;
   font-size: 0.85rem;
   color: rgba(255, 255, 255, 0.6);
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 800px) {
   .hero-inner { grid-template-columns: 1fr; }
   .hero-inner .hero-img { display: none; }
   .grid-2 { grid-template-columns: 1fr; }
   .contact-grid { grid-template-columns: 1fr; }
   .form-row-inline { grid-template-columns: 1fr; }
   .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
   h1 { font-size: 1.75rem; }
   h2 { font-size: 1.4rem; }
   .hero h1 { font-size: 2rem; }
   .brand-text .script-name { font-size: 1.9rem; }
   .brand-text .script-sub { font-size: 1rem; }
   .brand-logo { width: 52px; height: 52px; }

   .nav-toggle { display: block; }
   .main-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--cream);
      flex-direction: column;
      border-top: 1px solid var(--border);
      padding: 0.5rem 0;
      box-shadow: var(--shadow-md);
   }
   .main-nav.open { display: flex; }
   .main-nav a {
      width: 100%;
      padding: 0.75rem 1.25rem;
      border-radius: 0;
   }
}
