/* =========================================================
   Fetchabl Project - Base Styles
   ========================================================= */

/* Variables */
:root {
    /* Brand Colors */
    --color-primary: #FF6E4A;    /* Main Fetchabl brand color */
    --color-secondary: #364652;  /* Deep neutral (good for nav, footers) */
    --color-accent: #61C9A8;     /* Accent color (for highlights, buttons) */
    --color-highlight: #FFD275;  /* Friendly soft highlight */
    --color-light-accent: #F8F1FF; /* Very light background accent */
  
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-light-grey: #f5f5f5;  /* Light background option */
    --color-grey: #cccccc;        /* Borders, dividers */
    --color-dark-grey: #666666;   /* Text subtle shading */
  
    /* Text Colors */
    --color-text-main: #364652;    /* Main text color (deep neutral) */
    --color-text-light: #ffffff;   /* Light text for dark backgrounds */
  
    /* Background Colors */
    --color-background-main: #ffffff; /* Primary page background */
    --color-background-muted: #F8F1FF; /* Soft background option for sections */
  
    /* Status Colors (optional, future-proof) */
    --color-success: #4CAF50;     /* Green success messages */
    --color-warning: #FFC107;     /* Amber warning messages */
    --color-error: #F44336;       /* Red error messages */
  }
  






/* =========================================================
   CSS Reset - Normalize basic elements
   ========================================================= */

/* Always reserves space for the vertical scrollbar, even on pages short
   enough not to need one (Aug 2026). Without this, centered elements like
   the nav logo (.nav-container has margin: 0 auto) shift a few pixels
   between pages depending on whether that page's content is tall enough
   to trigger a scrollbar - the available width for centering differs. */
html {
    scrollbar-gutter: stable;
}

/* Reset margins, paddings, and set box sizing */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set default font family and text rendering */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-background-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

/* Remove blue tap highlight on devices that can't hover (touch devices) */
@media (hover: none) {
    * {
        -webkit-tap-highlight-color: transparent !important;
    }
    
    button,
    a,
    input,
    select {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    }
}

/* Remove list styles */
ul, ol {
    list-style: none;
}

/* Remove link underline and inherit color */
a {
    text-decoration: none;
    color: inherit;
}

/* Make images and videos easier to manage */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}






/* =========================================================
   Base Styles - Basic elements and typography
   ========================================================= */

/* Sections */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem; /* 16px */
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-background-main);
}

header {
    background-color: #f4f4f4;
    padding: 10px 20px;
}

footer {
    background-color: #f4f4f4;
    padding: 10px 20px;
    text-align: center;
}




/* Typography */
h1 {
    font-size: 2.5rem; /* 40px */
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h2 {
    font-size: 2rem; /* 32px */
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

h3 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

h4 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h5 {
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}



/* Link styles */

a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}



/* =========================================================
   Buttons - single shared source (Aug 2026)
   Previously duplicated with drifting styles across
   home.css/.mission-cta, dog-list.css/.no-dogs-cta and
   about.css & contact.css's own .btn-primary. Consolidated
   here so every CTA button behaves identically site-wide:
   colour change on hover, no movement.
   ========================================================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* color repeated here (Aug 2026): the sitewide `a:hover` rule above is
   narrowly more specific than plain `.btn-primary`, so without this the
   text would flip to var(--color-secondary) on hover instead of staying
   white. */
.btn-primary:hover {
    background-color: #ff5630;
    color: var(--color-text-light);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: #2a3640;
    color: var(--color-text-light);
}

/* Plain text style for low-emphasis actions (e.g. "Cancel" next to a
   primary button in a modal) - no fill, so it doesn't compete visually
   with the real call to action. Matches .btn's padding so it lines up
   evenly when placed next to a filled button. */
.btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.75rem;
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: color 0.3s ease;
}

.btn-tertiary:hover {
    color: #ff5630;
}

/* Nudges any trailing icon slightly right on hover (Aug 2026) - the
   general-purpose treatment for meaningful icons like external-link/flag
   that aren't shaped like an arrow. */
.btn-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease-in-out;
}

.btn-tertiary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Stripe-style chevron-to-arrow morph, for icons that are actually a
   chevron (marked .arrow-chevron) plus a shaft line (marked .arrow-line,
   collapsed/invisible at rest). On hover the chevron nudges right while
   the shaft fades in and grows out behind it. Timing/values matched to
   Stripe's real implementation: ~150ms ease-in-out, chevron 3px,
   shaft scaleX 0.5->1 with an opacity fade. */
.btn-arrow .arrow-chevron {
    transition: transform 0.15s ease-in-out;
}

.btn-arrow .arrow-line {
    opacity: 0;
    transform: scaleX(0.5);
    transform-origin: right center;
    transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.btn-tertiary:hover .btn-arrow .arrow-chevron {
    transform: translateX(3px);
}

.btn-tertiary:hover .btn-arrow .arrow-line {
    opacity: 1;
    transform: scaleX(1);
}

/* For genuinely serious/flagging actions (e.g. "Submit Report" on a
   listing) - kept visually distinct from the everyday orange primary
   button, rather than diluting what "primary" signals across the site. */
.btn-danger {
    background-color: #dc2626;
    color: var(--color-text-light);
}

.btn-danger:hover {
    background-color: #b91c1c;
    color: var(--color-text-light);
}





/* ==========================================================
   Media Queries - Responsive design
   ========================================================= */

/* Mobile First - Default styles here */

/* Small Tablets (optional) */
@media (min-width: 600px) {
    body{
        font-size: 1.125rem; /* 18px */
    }
}

/* Tablets */
@media (min-width: 768px) {
    body{
        font-size: 1.25rem; /* 20px */
    }
}

/* Laptops */
@media (min-width: 1024px) {
    body{
        font-size: 1.375rem; /* 22px */
    }
}

/* Large Desktops (optional) */
@media (min-width: 1200px) {
    body{
        font-size: 1.5rem; /* 24px */
    }
}


